* [PR PATCH] qtcreator: update to 9.0.1.
@ 2023-02-15 17:57 Chocimier
2023-02-15 18:50 ` [PR REVIEW] " Johnnynator
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: Chocimier @ 2023-02-15 17:57 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1211 bytes --]
There is a new pull request by Chocimier against master on the void-packages repository
https://github.com/Chocimier/void-packages-org qtcreator9
https://github.com/void-linux/void-packages/pull/42290
qtcreator: update to 9.0.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: NO
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86-64*)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- **all cross fail**
A patch file from https://github.com/void-linux/void-packages/pull/42290.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qtcreator9-42290.patch --]
[-- Type: text/x-diff, Size: 6302 bytes --]
From 5face040b31150b6448ab6967727ffdc94b6f02f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Wed, 15 Feb 2023 18:55:05 +0100
Subject: [PATCH] qtcreator: update to 9.0.1.
---
.../qtcreator/patches/6.0.2--backtrace.patch | 32 ++++++++---------
.../patches/musl-no-malloc_trim.patch | 35 ++++++++++++-------
srcpkgs/qtcreator/template | 19 +++++-----
3 files changed, 48 insertions(+), 38 deletions(-)
diff --git a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
index c57e1ecc58b2..f4a849e3c182 100644
--- a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
+++ b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
@@ -1,28 +1,28 @@
-From 722d84fee5321ee6909f12c1d10b097c24ba1adc Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
-Date: Sat, 22 Jan 2022 17:29:59 +0100
-Subject: [PATCH] backtrace
+From f178b839d5137f2e8e1e728cbf877f6a3a73346e Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 21:29:41 +0100
+Subject: backtrace
diff --git a/src/libs/utils/qtcassert.cpp b/src/libs/utils/qtcassert.cpp
-index 560df43a..87ca6fd5 100644
+index d371b6f6..40b4cd9b 100644
--- a/src/libs/utils/qtcassert.cpp
+++ b/src/libs/utils/qtcassert.cpp
-@@ -40,7 +40,7 @@ void dumpBacktrace(int maxdepth)
- {
- if (maxdepth == -1)
- maxdepth = 1000;
+@@ -29,7 +29,7 @@ void dumpBacktrace(int maxdepth)
+ const int ArraySize = 1000;
+ if (maxdepth < 0 || maxdepth > ArraySize)
+ maxdepth = ArraySize;
-#if defined(Q_OS_UNIX)
+#if defined(Q_OS_UNIX) && defined(__GLIBC__)
- void *bt[1000] = {nullptr};
- int size = backtrace(bt, sizeof(bt) / sizeof(bt[0]));
+ void *bt[ArraySize] = {nullptr};
+ int size = backtrace(bt, maxdepth);
char **lines = backtrace_symbols(bt, size);
diff --git a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-index a3a9806f..bb6cc30d 100644
+index ba8afd56..2ae4041a 100644
--- a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
+++ b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-@@ -99,7 +99,7 @@ bool Exception::warnAboutException()
- #endif
+@@ -75,7 +75,7 @@ bool Exception::warnAboutException()
+ return s_warnAboutException;
}
-#ifdef Q_OS_LINUX
@@ -30,7 +30,7 @@ index a3a9806f..bb6cc30d 100644
static QString getBackTrace()
{
QString backTrace;
-@@ -137,7 +137,7 @@ Exception::Exception(int line, const QByteArray &function,
+@@ -113,7 +113,7 @@ Exception::Exception(int line, const QByteArray &function,
, m_function(QString::fromUtf8(function))
, m_file(QString::fromUtf8(file))
, m_description(description)
@@ -40,5 +40,5 @@ index a3a9806f..bb6cc30d 100644
#endif
{
--
-2.34.1
+2.39.0
diff --git a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
index 36c850f31046..fd927d763919 100644
--- a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
+++ b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
@@ -1,13 +1,22 @@
---- a/src/app/main.cpp 2020-08-25 13:26:21.000000000 +0200
-+++ b/src/app/main.cpp 2020-09-03 14:21:38.975668939 +0200
-@@ -718,8 +718,10 @@
- {
- m_trimTimer.setSingleShot(true);
- m_trimTimer.setInterval(60000);
-+#if defined(__GLIBC__)
- // glibc may not actually free memory in free().
- connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
-+#endif
- }
-
- bool eventFilter(QObject *, QEvent *e) override
+From b13eb9f3dc96226d2f10a986c7e4d6c565e63c53 Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 23:34:10 +0100
+Subject: malloc_trim
+
+
+diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp
+index 4950eb90..a3cd7f4e 100644
+--- a/src/plugins/coreplugin/mainwindow.cpp
++++ b/src/plugins/coreplugin/mainwindow.cpp
+@@ -216,7 +216,7 @@ MainWindow::MainWindow()
+ m_trimTimer.setSingleShot(true);
+ m_trimTimer.setInterval(60000);
+ // glibc may not actually free memory in free().
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) && defined(__GLIBC__)
+ connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
+ #endif
+ }
+--
+2.39.0
+
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index a53c751a4055..948c6c46da30 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -1,23 +1,24 @@
# Template file for 'qtcreator'
pkgname=qtcreator
-version=8.0.0
+version=9.0.1
revision=1
build_style=cmake
-configure_args="$(vopt_bool qbs BUILD_QBS)"
-hostmakedepends="clang llvm perl pkg-config python3 which qt5-qmake
- qt5-host-tools qt5-tools"
-makedepends="qt5-declarative-devel qt5-script-devel qt5-tools-devel
- qt5-quickcontrols qt5-svg-devel qt5-plugin-odbc qt5-plugin-sqlite
- qt5-plugin-tds qt5-plugin-pgsql qt5-plugin-mysql
+configure_args="$(vopt_bool qbs BUILD_QBS) -DWITH_DOCS=ON"
+hostmakedepends="clang llvm perl pkg-config python3 which
+ qt6-base-devel qt6-tools qtchooser"
+makedepends="qt6-declarative-devel qt6-tools-devel
+ qt6-quick3d-devel qt6-svg-devel qt6-plugin-odbc qt6-plugin-sqlite
+ qt6-plugin-pgsql qt6-plugin-mysql qt6-qt5compat-devel
+ qt6-shadertools-devel qt6-serialport-devel
clang llvm clang-tools-extra"
-depends="qt5-declarative-devel qt5-quickcontrols qt5-plugin-sqlite"
+depends="qt6-declarative-devel qt6-plugin-sqlite"
short_desc="Cross-platform IDE for Qt developers"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-3.0-or-later, custom:QtCompany-GPL-Exception-1.0"
homepage="https://wiki.qt.io/Category:Tools::QtCreator"
changelog="https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changelog/changes-${version}.md"
distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/qt-creator-opensource-src-${version}.tar.xz"
-checksum=323640f96c76d199fe5bf7b02cbf2dd1a3b6489ab7cc0adeaad3957d8dc96f17
+checksum=4e4e881b2635bac07e785c9e889ab9a253ad47a00074e260cbccdb3c0aef189f
replaces="qtcreator-data>=0"
python_version=3
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR REVIEW] qtcreator: update to 9.0.1.
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
@ 2023-02-15 18:50 ` Johnnynator
2023-02-15 18:53 ` Johnnynator
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Johnnynator @ 2023-02-15 18:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 372 bytes --]
New review comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/pull/42290#discussion_r1107567035
Comment:
```suggestion
qt6-base-devel qt6-tools-devel qtchooser"
```
`qt6-tools-devel` can also be removed from makedepends.
Furthermore add `qt6-shadertools-devel qt6-declarative-devel` has to be added to hostmakedepends.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR REVIEW] qtcreator: update to 9.0.1.
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
2023-02-15 18:50 ` [PR REVIEW] " Johnnynator
@ 2023-02-15 18:53 ` Johnnynator
2023-02-15 18:56 ` Johnnynator
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Johnnynator @ 2023-02-15 18:53 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 362 bytes --]
New review comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/pull/42290#discussion_r1107567035
Comment:
```suggestion
qt6-base-devel qt6-tools-devel"
```
`qt6-tools-devel` can also be removed from makedepends.
Furthermore add `qt6-shadertools-devel qt6-declarative-devel` has to be added to hostmakedepends.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR REVIEW] qtcreator: update to 9.0.1.
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
2023-02-15 18:50 ` [PR REVIEW] " Johnnynator
2023-02-15 18:53 ` Johnnynator
@ 2023-02-15 18:56 ` Johnnynator
2023-02-16 21:22 ` [PR PATCH] [Updated] " Chocimier
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Johnnynator @ 2023-02-15 18:56 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 261 bytes --]
New review comment by Johnnynator on void-packages repository
https://github.com/void-linux/void-packages/pull/42290#discussion_r1107574288
Comment:
Scratch that, qt6-tools-devel is also linked against, so the trick to just only have it in host doesn't help.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Updated] qtcreator: update to 9.0.1.
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
` (2 preceding siblings ...)
2023-02-15 18:56 ` Johnnynator
@ 2023-02-16 21:22 ` Chocimier
2023-02-17 22:30 ` Chocimier
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Chocimier @ 2023-02-16 21:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
There is an updated pull request by Chocimier against master on the void-packages repository
https://github.com/Chocimier/void-packages-org qtcreator9
https://github.com/void-linux/void-packages/pull/42290
qtcreator: update to 9.0.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: NO
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86-64*)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- **all cross fail**
A patch file from https://github.com/void-linux/void-packages/pull/42290.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qtcreator9-42290.patch --]
[-- Type: text/x-diff, Size: 6368 bytes --]
From 17e610396467c1f9605e87ab20404d928968873e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Wed, 15 Feb 2023 18:55:05 +0100
Subject: [PATCH] qtcreator: update to 9.0.1.
---
.../qtcreator/patches/6.0.2--backtrace.patch | 32 ++++++++---------
.../patches/musl-no-malloc_trim.patch | 35 ++++++++++++-------
srcpkgs/qtcreator/template | 19 +++++-----
3 files changed, 48 insertions(+), 38 deletions(-)
diff --git a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
index c57e1ecc58b2..f4a849e3c182 100644
--- a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
+++ b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
@@ -1,28 +1,28 @@
-From 722d84fee5321ee6909f12c1d10b097c24ba1adc Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
-Date: Sat, 22 Jan 2022 17:29:59 +0100
-Subject: [PATCH] backtrace
+From f178b839d5137f2e8e1e728cbf877f6a3a73346e Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 21:29:41 +0100
+Subject: backtrace
diff --git a/src/libs/utils/qtcassert.cpp b/src/libs/utils/qtcassert.cpp
-index 560df43a..87ca6fd5 100644
+index d371b6f6..40b4cd9b 100644
--- a/src/libs/utils/qtcassert.cpp
+++ b/src/libs/utils/qtcassert.cpp
-@@ -40,7 +40,7 @@ void dumpBacktrace(int maxdepth)
- {
- if (maxdepth == -1)
- maxdepth = 1000;
+@@ -29,7 +29,7 @@ void dumpBacktrace(int maxdepth)
+ const int ArraySize = 1000;
+ if (maxdepth < 0 || maxdepth > ArraySize)
+ maxdepth = ArraySize;
-#if defined(Q_OS_UNIX)
+#if defined(Q_OS_UNIX) && defined(__GLIBC__)
- void *bt[1000] = {nullptr};
- int size = backtrace(bt, sizeof(bt) / sizeof(bt[0]));
+ void *bt[ArraySize] = {nullptr};
+ int size = backtrace(bt, maxdepth);
char **lines = backtrace_symbols(bt, size);
diff --git a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-index a3a9806f..bb6cc30d 100644
+index ba8afd56..2ae4041a 100644
--- a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
+++ b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-@@ -99,7 +99,7 @@ bool Exception::warnAboutException()
- #endif
+@@ -75,7 +75,7 @@ bool Exception::warnAboutException()
+ return s_warnAboutException;
}
-#ifdef Q_OS_LINUX
@@ -30,7 +30,7 @@ index a3a9806f..bb6cc30d 100644
static QString getBackTrace()
{
QString backTrace;
-@@ -137,7 +137,7 @@ Exception::Exception(int line, const QByteArray &function,
+@@ -113,7 +113,7 @@ Exception::Exception(int line, const QByteArray &function,
, m_function(QString::fromUtf8(function))
, m_file(QString::fromUtf8(file))
, m_description(description)
@@ -40,5 +40,5 @@ index a3a9806f..bb6cc30d 100644
#endif
{
--
-2.34.1
+2.39.0
diff --git a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
index 36c850f31046..fd927d763919 100644
--- a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
+++ b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
@@ -1,13 +1,22 @@
---- a/src/app/main.cpp 2020-08-25 13:26:21.000000000 +0200
-+++ b/src/app/main.cpp 2020-09-03 14:21:38.975668939 +0200
-@@ -718,8 +718,10 @@
- {
- m_trimTimer.setSingleShot(true);
- m_trimTimer.setInterval(60000);
-+#if defined(__GLIBC__)
- // glibc may not actually free memory in free().
- connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
-+#endif
- }
-
- bool eventFilter(QObject *, QEvent *e) override
+From b13eb9f3dc96226d2f10a986c7e4d6c565e63c53 Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 23:34:10 +0100
+Subject: malloc_trim
+
+
+diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp
+index 4950eb90..a3cd7f4e 100644
+--- a/src/plugins/coreplugin/mainwindow.cpp
++++ b/src/plugins/coreplugin/mainwindow.cpp
+@@ -216,7 +216,7 @@ MainWindow::MainWindow()
+ m_trimTimer.setSingleShot(true);
+ m_trimTimer.setInterval(60000);
+ // glibc may not actually free memory in free().
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) && defined(__GLIBC__)
+ connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
+ #endif
+ }
+--
+2.39.0
+
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index a53c751a4055..c454404d667c 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -1,23 +1,24 @@
# Template file for 'qtcreator'
pkgname=qtcreator
-version=8.0.0
+version=9.0.1
revision=1
build_style=cmake
-configure_args="$(vopt_bool qbs BUILD_QBS)"
-hostmakedepends="clang llvm perl pkg-config python3 which qt5-qmake
- qt5-host-tools qt5-tools"
-makedepends="qt5-declarative-devel qt5-script-devel qt5-tools-devel
- qt5-quickcontrols qt5-svg-devel qt5-plugin-odbc qt5-plugin-sqlite
- qt5-plugin-tds qt5-plugin-pgsql qt5-plugin-mysql
+configure_args="$(vopt_bool qbs BUILD_QBS) -DWITH_DOCS=ON -DQT_HOST_PATH=/usr/ -DQT_HOST_PATH_CMAKE_DIR=/usr/lib64/cmake/Qt6 -DBUILD_WITH_PCH=OFF"
+hostmakedepends="clang llvm perl pkg-config python3 which
+ qt6-base-devel qt6-tools qtchooser qt6-shadertools"
+makedepends="qt6-declarative-devel
+ qt6-quick3d-devel qt6-svg-devel qt6-plugin-odbc qt6-plugin-sqlite
+ qt6-plugin-pgsql qt6-plugin-mysql qt6-qt5compat-devel
+ qt6-serialport-devel
clang llvm clang-tools-extra"
-depends="qt5-declarative-devel qt5-quickcontrols qt5-plugin-sqlite"
+depends="qt6-declarative-devel qt6-plugin-sqlite"
short_desc="Cross-platform IDE for Qt developers"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-3.0-or-later, custom:QtCompany-GPL-Exception-1.0"
homepage="https://wiki.qt.io/Category:Tools::QtCreator"
changelog="https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changelog/changes-${version}.md"
distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/qt-creator-opensource-src-${version}.tar.xz"
-checksum=323640f96c76d199fe5bf7b02cbf2dd1a3b6489ab7cc0adeaad3957d8dc96f17
+checksum=4e4e881b2635bac07e785c9e889ab9a253ad47a00074e260cbccdb3c0aef189f
replaces="qtcreator-data>=0"
python_version=3
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Updated] qtcreator: update to 9.0.1.
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
` (3 preceding siblings ...)
2023-02-16 21:22 ` [PR PATCH] [Updated] " Chocimier
@ 2023-02-17 22:30 ` Chocimier
2023-02-18 16:50 ` Chocimier
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: Chocimier @ 2023-02-17 22:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
There is an updated pull request by Chocimier against master on the void-packages repository
https://github.com/Chocimier/void-packages-org qtcreator9
https://github.com/void-linux/void-packages/pull/42290
qtcreator: update to 9.0.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: NO
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86-64*)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- **all cross fail**
A patch file from https://github.com/void-linux/void-packages/pull/42290.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qtcreator9-42290.patch --]
[-- Type: text/x-diff, Size: 6576 bytes --]
From 299d90c64cc2ed6ffc9711119ddaec840f2c4680 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Wed, 15 Feb 2023 18:55:05 +0100
Subject: [PATCH] qtcreator: update to 9.0.1.
---
.../qtcreator/patches/6.0.2--backtrace.patch | 32 ++++++++---------
.../patches/musl-no-malloc_trim.patch | 35 ++++++++++++-------
srcpkgs/qtcreator/template | 20 ++++++-----
3 files changed, 49 insertions(+), 38 deletions(-)
diff --git a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
index c57e1ecc58b2..f4a849e3c182 100644
--- a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
+++ b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
@@ -1,28 +1,28 @@
-From 722d84fee5321ee6909f12c1d10b097c24ba1adc Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
-Date: Sat, 22 Jan 2022 17:29:59 +0100
-Subject: [PATCH] backtrace
+From f178b839d5137f2e8e1e728cbf877f6a3a73346e Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 21:29:41 +0100
+Subject: backtrace
diff --git a/src/libs/utils/qtcassert.cpp b/src/libs/utils/qtcassert.cpp
-index 560df43a..87ca6fd5 100644
+index d371b6f6..40b4cd9b 100644
--- a/src/libs/utils/qtcassert.cpp
+++ b/src/libs/utils/qtcassert.cpp
-@@ -40,7 +40,7 @@ void dumpBacktrace(int maxdepth)
- {
- if (maxdepth == -1)
- maxdepth = 1000;
+@@ -29,7 +29,7 @@ void dumpBacktrace(int maxdepth)
+ const int ArraySize = 1000;
+ if (maxdepth < 0 || maxdepth > ArraySize)
+ maxdepth = ArraySize;
-#if defined(Q_OS_UNIX)
+#if defined(Q_OS_UNIX) && defined(__GLIBC__)
- void *bt[1000] = {nullptr};
- int size = backtrace(bt, sizeof(bt) / sizeof(bt[0]));
+ void *bt[ArraySize] = {nullptr};
+ int size = backtrace(bt, maxdepth);
char **lines = backtrace_symbols(bt, size);
diff --git a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-index a3a9806f..bb6cc30d 100644
+index ba8afd56..2ae4041a 100644
--- a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
+++ b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-@@ -99,7 +99,7 @@ bool Exception::warnAboutException()
- #endif
+@@ -75,7 +75,7 @@ bool Exception::warnAboutException()
+ return s_warnAboutException;
}
-#ifdef Q_OS_LINUX
@@ -30,7 +30,7 @@ index a3a9806f..bb6cc30d 100644
static QString getBackTrace()
{
QString backTrace;
-@@ -137,7 +137,7 @@ Exception::Exception(int line, const QByteArray &function,
+@@ -113,7 +113,7 @@ Exception::Exception(int line, const QByteArray &function,
, m_function(QString::fromUtf8(function))
, m_file(QString::fromUtf8(file))
, m_description(description)
@@ -40,5 +40,5 @@ index a3a9806f..bb6cc30d 100644
#endif
{
--
-2.34.1
+2.39.0
diff --git a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
index 36c850f31046..fd927d763919 100644
--- a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
+++ b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
@@ -1,13 +1,22 @@
---- a/src/app/main.cpp 2020-08-25 13:26:21.000000000 +0200
-+++ b/src/app/main.cpp 2020-09-03 14:21:38.975668939 +0200
-@@ -718,8 +718,10 @@
- {
- m_trimTimer.setSingleShot(true);
- m_trimTimer.setInterval(60000);
-+#if defined(__GLIBC__)
- // glibc may not actually free memory in free().
- connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
-+#endif
- }
-
- bool eventFilter(QObject *, QEvent *e) override
+From b13eb9f3dc96226d2f10a986c7e4d6c565e63c53 Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 23:34:10 +0100
+Subject: malloc_trim
+
+
+diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp
+index 4950eb90..a3cd7f4e 100644
+--- a/src/plugins/coreplugin/mainwindow.cpp
++++ b/src/plugins/coreplugin/mainwindow.cpp
+@@ -216,7 +216,7 @@ MainWindow::MainWindow()
+ m_trimTimer.setSingleShot(true);
+ m_trimTimer.setInterval(60000);
+ // glibc may not actually free memory in free().
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) && defined(__GLIBC__)
+ connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
+ #endif
+ }
+--
+2.39.0
+
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index a53c751a4055..7fac610e7ef9 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -1,23 +1,24 @@
# Template file for 'qtcreator'
pkgname=qtcreator
-version=8.0.0
+version=9.0.1
revision=1
build_style=cmake
-configure_args="$(vopt_bool qbs BUILD_QBS)"
-hostmakedepends="clang llvm perl pkg-config python3 which qt5-qmake
- qt5-host-tools qt5-tools"
-makedepends="qt5-declarative-devel qt5-script-devel qt5-tools-devel
- qt5-quickcontrols qt5-svg-devel qt5-plugin-odbc qt5-plugin-sqlite
- qt5-plugin-tds qt5-plugin-pgsql qt5-plugin-mysql
+configure_args="$(vopt_bool qbs BUILD_QBS) -DWITH_DOCS=ON -DQT_HOST_PATH=/usr/ -DQT_HOST_PATH_CMAKE_DIR=/usr/lib64/cmake/Qt6 -DBUILD_WITH_PCH=OFF"
+hostmakedepends="clang llvm perl pkg-config python3 which
+ qt6-base-devel qt6-tools qtchooser qt6-shadertools"
+makedepends="qt6-declarative-devel
+ qt6-quick3d-devel qt6-svg-devel qt6-plugin-odbc qt6-plugin-sqlite
+ qt6-plugin-pgsql qt6-plugin-mysql qt6-qt5compat-devel
+ qt6-serialport-devel
clang llvm clang-tools-extra"
-depends="qt5-declarative-devel qt5-quickcontrols qt5-plugin-sqlite"
+depends="qt6-declarative-devel qt6-plugin-sqlite"
short_desc="Cross-platform IDE for Qt developers"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-3.0-or-later, custom:QtCompany-GPL-Exception-1.0"
homepage="https://wiki.qt.io/Category:Tools::QtCreator"
changelog="https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changelog/changes-${version}.md"
distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/qt-creator-opensource-src-${version}.tar.xz"
-checksum=323640f96c76d199fe5bf7b02cbf2dd1a3b6489ab7cc0adeaad3957d8dc96f17
+checksum=4e4e881b2635bac07e785c9e889ab9a253ad47a00074e260cbccdb3c0aef189f
replaces="qtcreator-data>=0"
python_version=3
@@ -25,6 +26,7 @@ build_options="qbs"
desc_option_qbs="Build vendored Qbs"
if [ -z "$XBPS_CROSS_BUILD" ]; then
+ makedepends+=" qt6-tools-devel qt6-shadertools-devel"
build_options_default="qbs"
fi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Updated] qtcreator: update to 9.0.1.
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
` (4 preceding siblings ...)
2023-02-17 22:30 ` Chocimier
@ 2023-02-18 16:50 ` Chocimier
2023-02-18 19:11 ` Chocimier
2023-02-18 19:13 ` [PR PATCH] [Merged]: " Chocimier
7 siblings, 0 replies; 9+ messages in thread
From: Chocimier @ 2023-02-18 16:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
There is an updated pull request by Chocimier against master on the void-packages repository
https://github.com/Chocimier/void-packages-org qtcreator9
https://github.com/void-linux/void-packages/pull/42290
qtcreator: update to 9.0.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: NO
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86-64*)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- **all cross fail**
A patch file from https://github.com/void-linux/void-packages/pull/42290.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qtcreator9-42290.patch --]
[-- Type: text/x-diff, Size: 6566 bytes --]
From f7656df1d92da997db5e8588067711ae37d8e2a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Wed, 15 Feb 2023 18:55:05 +0100
Subject: [PATCH] qtcreator: update to 9.0.1.
---
.../qtcreator/patches/6.0.2--backtrace.patch | 32 ++++++++---------
.../patches/musl-no-malloc_trim.patch | 35 ++++++++++++-------
srcpkgs/qtcreator/template | 21 ++++++-----
3 files changed, 50 insertions(+), 38 deletions(-)
diff --git a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
index c57e1ecc58b2..f4a849e3c182 100644
--- a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
+++ b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
@@ -1,28 +1,28 @@
-From 722d84fee5321ee6909f12c1d10b097c24ba1adc Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
-Date: Sat, 22 Jan 2022 17:29:59 +0100
-Subject: [PATCH] backtrace
+From f178b839d5137f2e8e1e728cbf877f6a3a73346e Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 21:29:41 +0100
+Subject: backtrace
diff --git a/src/libs/utils/qtcassert.cpp b/src/libs/utils/qtcassert.cpp
-index 560df43a..87ca6fd5 100644
+index d371b6f6..40b4cd9b 100644
--- a/src/libs/utils/qtcassert.cpp
+++ b/src/libs/utils/qtcassert.cpp
-@@ -40,7 +40,7 @@ void dumpBacktrace(int maxdepth)
- {
- if (maxdepth == -1)
- maxdepth = 1000;
+@@ -29,7 +29,7 @@ void dumpBacktrace(int maxdepth)
+ const int ArraySize = 1000;
+ if (maxdepth < 0 || maxdepth > ArraySize)
+ maxdepth = ArraySize;
-#if defined(Q_OS_UNIX)
+#if defined(Q_OS_UNIX) && defined(__GLIBC__)
- void *bt[1000] = {nullptr};
- int size = backtrace(bt, sizeof(bt) / sizeof(bt[0]));
+ void *bt[ArraySize] = {nullptr};
+ int size = backtrace(bt, maxdepth);
char **lines = backtrace_symbols(bt, size);
diff --git a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-index a3a9806f..bb6cc30d 100644
+index ba8afd56..2ae4041a 100644
--- a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
+++ b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-@@ -99,7 +99,7 @@ bool Exception::warnAboutException()
- #endif
+@@ -75,7 +75,7 @@ bool Exception::warnAboutException()
+ return s_warnAboutException;
}
-#ifdef Q_OS_LINUX
@@ -30,7 +30,7 @@ index a3a9806f..bb6cc30d 100644
static QString getBackTrace()
{
QString backTrace;
-@@ -137,7 +137,7 @@ Exception::Exception(int line, const QByteArray &function,
+@@ -113,7 +113,7 @@ Exception::Exception(int line, const QByteArray &function,
, m_function(QString::fromUtf8(function))
, m_file(QString::fromUtf8(file))
, m_description(description)
@@ -40,5 +40,5 @@ index a3a9806f..bb6cc30d 100644
#endif
{
--
-2.34.1
+2.39.0
diff --git a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
index 36c850f31046..fd927d763919 100644
--- a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
+++ b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
@@ -1,13 +1,22 @@
---- a/src/app/main.cpp 2020-08-25 13:26:21.000000000 +0200
-+++ b/src/app/main.cpp 2020-09-03 14:21:38.975668939 +0200
-@@ -718,8 +718,10 @@
- {
- m_trimTimer.setSingleShot(true);
- m_trimTimer.setInterval(60000);
-+#if defined(__GLIBC__)
- // glibc may not actually free memory in free().
- connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
-+#endif
- }
-
- bool eventFilter(QObject *, QEvent *e) override
+From b13eb9f3dc96226d2f10a986c7e4d6c565e63c53 Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 23:34:10 +0100
+Subject: malloc_trim
+
+
+diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp
+index 4950eb90..a3cd7f4e 100644
+--- a/src/plugins/coreplugin/mainwindow.cpp
++++ b/src/plugins/coreplugin/mainwindow.cpp
+@@ -216,7 +216,7 @@ MainWindow::MainWindow()
+ m_trimTimer.setSingleShot(true);
+ m_trimTimer.setInterval(60000);
+ // glibc may not actually free memory in free().
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) && defined(__GLIBC__)
+ connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
+ #endif
+ }
+--
+2.39.0
+
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index a53c751a4055..a45f18579166 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -1,23 +1,25 @@
# Template file for 'qtcreator'
pkgname=qtcreator
-version=8.0.0
+version=9.0.1
revision=1
build_style=cmake
-configure_args="$(vopt_bool qbs BUILD_QBS)"
-hostmakedepends="clang llvm perl pkg-config python3 which qt5-qmake
- qt5-host-tools qt5-tools"
-makedepends="qt5-declarative-devel qt5-script-devel qt5-tools-devel
- qt5-quickcontrols qt5-svg-devel qt5-plugin-odbc qt5-plugin-sqlite
- qt5-plugin-tds qt5-plugin-pgsql qt5-plugin-mysql
+configure_args="$(vopt_bool qbs BUILD_QBS) -DWITH_DOCS=ON -DBUILD_WITH_PCH=OFF
+ -DQT_HOST_PATH=/usr/ -DQT_HOST_PATH_CMAKE_DIR=/usr/lib64/cmake/Qt6"
+hostmakedepends="clang llvm perl pkg-config python3 which
+ qt6-base-devel qt6-tools qtchooser qt6-shadertools-devel"
+makedepends="qt6-declarative-devel
+ qt6-quick3d-devel qt6-svg-devel qt6-plugin-odbc qt6-plugin-sqlite
+ qt6-plugin-pgsql qt6-plugin-mysql qt6-qt5compat-devel
+ qt6-serialport-devel
clang llvm clang-tools-extra"
-depends="qt5-declarative-devel qt5-quickcontrols qt5-plugin-sqlite"
+depends="qt6-declarative-devel qt6-plugin-sqlite"
short_desc="Cross-platform IDE for Qt developers"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-3.0-or-later, custom:QtCompany-GPL-Exception-1.0"
homepage="https://wiki.qt.io/Category:Tools::QtCreator"
changelog="https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changelog/changes-${version}.md"
distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/qt-creator-opensource-src-${version}.tar.xz"
-checksum=323640f96c76d199fe5bf7b02cbf2dd1a3b6489ab7cc0adeaad3957d8dc96f17
+checksum=4e4e881b2635bac07e785c9e889ab9a253ad47a00074e260cbccdb3c0aef189f
replaces="qtcreator-data>=0"
python_version=3
@@ -25,6 +27,7 @@ build_options="qbs"
desc_option_qbs="Build vendored Qbs"
if [ -z "$XBPS_CROSS_BUILD" ]; then
+ hostmakedepends+=" qt6-tools-devel"
build_options_default="qbs"
fi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Updated] qtcreator: update to 9.0.1.
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
` (5 preceding siblings ...)
2023-02-18 16:50 ` Chocimier
@ 2023-02-18 19:11 ` Chocimier
2023-02-18 19:13 ` [PR PATCH] [Merged]: " Chocimier
7 siblings, 0 replies; 9+ messages in thread
From: Chocimier @ 2023-02-18 19:11 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1216 bytes --]
There is an updated pull request by Chocimier against master on the void-packages repository
https://github.com/Chocimier/void-packages-org qtcreator9
https://github.com/void-linux/void-packages/pull/42290
qtcreator: update to 9.0.1.
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: NO
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86-64*)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- **all cross fail**
A patch file from https://github.com/void-linux/void-packages/pull/42290.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-qtcreator9-42290.patch --]
[-- Type: text/x-diff, Size: 6544 bytes --]
From e7b11d2839b63cfbb6b3736a8c672d2ad0937310 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
Date: Wed, 15 Feb 2023 18:55:05 +0100
Subject: [PATCH] qtcreator: update to 9.0.1.
---
.../qtcreator/patches/6.0.2--backtrace.patch | 32 ++++++++---------
.../patches/musl-no-malloc_trim.patch | 35 ++++++++++++-------
srcpkgs/qtcreator/template | 21 ++++++-----
3 files changed, 50 insertions(+), 38 deletions(-)
diff --git a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
index c57e1ecc58b2..f4a849e3c182 100644
--- a/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
+++ b/srcpkgs/qtcreator/patches/6.0.2--backtrace.patch
@@ -1,28 +1,28 @@
-From 722d84fee5321ee6909f12c1d10b097c24ba1adc Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= <chocimier@tlen.pl>
-Date: Sat, 22 Jan 2022 17:29:59 +0100
-Subject: [PATCH] backtrace
+From f178b839d5137f2e8e1e728cbf877f6a3a73346e Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 21:29:41 +0100
+Subject: backtrace
diff --git a/src/libs/utils/qtcassert.cpp b/src/libs/utils/qtcassert.cpp
-index 560df43a..87ca6fd5 100644
+index d371b6f6..40b4cd9b 100644
--- a/src/libs/utils/qtcassert.cpp
+++ b/src/libs/utils/qtcassert.cpp
-@@ -40,7 +40,7 @@ void dumpBacktrace(int maxdepth)
- {
- if (maxdepth == -1)
- maxdepth = 1000;
+@@ -29,7 +29,7 @@ void dumpBacktrace(int maxdepth)
+ const int ArraySize = 1000;
+ if (maxdepth < 0 || maxdepth > ArraySize)
+ maxdepth = ArraySize;
-#if defined(Q_OS_UNIX)
+#if defined(Q_OS_UNIX) && defined(__GLIBC__)
- void *bt[1000] = {nullptr};
- int size = backtrace(bt, sizeof(bt) / sizeof(bt[0]));
+ void *bt[ArraySize] = {nullptr};
+ int size = backtrace(bt, maxdepth);
char **lines = backtrace_symbols(bt, size);
diff --git a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-index a3a9806f..bb6cc30d 100644
+index ba8afd56..2ae4041a 100644
--- a/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
+++ b/src/plugins/qmldesigner/designercore/exceptions/exception.cpp
-@@ -99,7 +99,7 @@ bool Exception::warnAboutException()
- #endif
+@@ -75,7 +75,7 @@ bool Exception::warnAboutException()
+ return s_warnAboutException;
}
-#ifdef Q_OS_LINUX
@@ -30,7 +30,7 @@ index a3a9806f..bb6cc30d 100644
static QString getBackTrace()
{
QString backTrace;
-@@ -137,7 +137,7 @@ Exception::Exception(int line, const QByteArray &function,
+@@ -113,7 +113,7 @@ Exception::Exception(int line, const QByteArray &function,
, m_function(QString::fromUtf8(function))
, m_file(QString::fromUtf8(file))
, m_description(description)
@@ -40,5 +40,5 @@ index a3a9806f..bb6cc30d 100644
#endif
{
--
-2.34.1
+2.39.0
diff --git a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
index 36c850f31046..fd927d763919 100644
--- a/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
+++ b/srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
@@ -1,13 +1,22 @@
---- a/src/app/main.cpp 2020-08-25 13:26:21.000000000 +0200
-+++ b/src/app/main.cpp 2020-09-03 14:21:38.975668939 +0200
-@@ -718,8 +718,10 @@
- {
- m_trimTimer.setSingleShot(true);
- m_trimTimer.setInterval(60000);
-+#if defined(__GLIBC__)
- // glibc may not actually free memory in free().
- connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
-+#endif
- }
-
- bool eventFilter(QObject *, QEvent *e) override
+From b13eb9f3dc96226d2f10a986c7e4d6c565e63c53 Mon Sep 17 00:00:00 2001
+From: Piotr Wójcik <chocimier@tlen.pl>
+Date: Sat, 21 Jan 2023 23:34:10 +0100
+Subject: malloc_trim
+
+
+diff --git a/src/plugins/coreplugin/mainwindow.cpp b/src/plugins/coreplugin/mainwindow.cpp
+index 4950eb90..a3cd7f4e 100644
+--- a/src/plugins/coreplugin/mainwindow.cpp
++++ b/src/plugins/coreplugin/mainwindow.cpp
+@@ -216,7 +216,7 @@ MainWindow::MainWindow()
+ m_trimTimer.setSingleShot(true);
+ m_trimTimer.setInterval(60000);
+ // glibc may not actually free memory in free().
+-#ifdef Q_OS_LINUX
++#if defined(Q_OS_LINUX) && defined(__GLIBC__)
+ connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
+ #endif
+ }
+--
+2.39.0
+
diff --git a/srcpkgs/qtcreator/template b/srcpkgs/qtcreator/template
index a53c751a4055..e42840bf6fe4 100644
--- a/srcpkgs/qtcreator/template
+++ b/srcpkgs/qtcreator/template
@@ -1,23 +1,25 @@
# Template file for 'qtcreator'
pkgname=qtcreator
-version=8.0.0
+version=9.0.1
revision=1
build_style=cmake
-configure_args="$(vopt_bool qbs BUILD_QBS)"
-hostmakedepends="clang llvm perl pkg-config python3 which qt5-qmake
- qt5-host-tools qt5-tools"
-makedepends="qt5-declarative-devel qt5-script-devel qt5-tools-devel
- qt5-quickcontrols qt5-svg-devel qt5-plugin-odbc qt5-plugin-sqlite
- qt5-plugin-tds qt5-plugin-pgsql qt5-plugin-mysql
+configure_args="$(vopt_bool qbs BUILD_QBS) -DWITH_DOCS=ON -DBUILD_WITH_PCH=OFF
+ -DQT_HOST_PATH=/usr/ -DQT_HOST_PATH_CMAKE_DIR=/usr/lib64/cmake/Qt6"
+hostmakedepends="clang llvm perl pkg-config python3 which
+ qt6-base-devel qt6-tools qtchooser qt6-shadertools-devel"
+makedepends="qt6-declarative-devel
+ qt6-quick3d-devel qt6-svg-devel qt6-plugin-odbc qt6-plugin-sqlite
+ qt6-plugin-pgsql qt6-plugin-mysql qt6-qt5compat-devel
+ qt6-serialport-devel
clang llvm clang-tools-extra"
-depends="qt5-declarative-devel qt5-quickcontrols qt5-plugin-sqlite"
+depends="qt6-plugin-sqlite"
short_desc="Cross-platform IDE for Qt developers"
maintainer="Piotr Wójcik <chocimier@tlen.pl>"
license="LGPL-3.0-or-later, custom:QtCompany-GPL-Exception-1.0"
homepage="https://wiki.qt.io/Category:Tools::QtCreator"
changelog="https://code.qt.io/cgit/qt-creator/qt-creator.git/plain/dist/changelog/changes-${version}.md"
distfiles="https://download.qt.io/official_releases/qtcreator/${version%.*}/${version}/qt-creator-opensource-src-${version}.tar.xz"
-checksum=323640f96c76d199fe5bf7b02cbf2dd1a3b6489ab7cc0adeaad3957d8dc96f17
+checksum=4e4e881b2635bac07e785c9e889ab9a253ad47a00074e260cbccdb3c0aef189f
replaces="qtcreator-data>=0"
python_version=3
@@ -25,6 +27,7 @@ build_options="qbs"
desc_option_qbs="Build vendored Qbs"
if [ -z "$XBPS_CROSS_BUILD" ]; then
+ hostmakedepends+=" qt6-tools-devel"
build_options_default="qbs"
fi
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PR PATCH] [Merged]: qtcreator: update to 9.0.1.
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
` (6 preceding siblings ...)
2023-02-18 19:11 ` Chocimier
@ 2023-02-18 19:13 ` Chocimier
7 siblings, 0 replies; 9+ messages in thread
From: Chocimier @ 2023-02-18 19:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]
There's a merged pull request on the void-packages repository
qtcreator: update to 9.0.1.
https://github.com/void-linux/void-packages/pull/42290
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: briefly
<!--
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (x86-64*)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv6l
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-02-18 19:13 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-15 17:57 [PR PATCH] qtcreator: update to 9.0.1 Chocimier
2023-02-15 18:50 ` [PR REVIEW] " Johnnynator
2023-02-15 18:53 ` Johnnynator
2023-02-15 18:56 ` Johnnynator
2023-02-16 21:22 ` [PR PATCH] [Updated] " Chocimier
2023-02-17 22:30 ` Chocimier
2023-02-18 16:50 ` Chocimier
2023-02-18 19:11 ` Chocimier
2023-02-18 19:13 ` [PR PATCH] [Merged]: " Chocimier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).