[packages/qt6] Rel 3; fix build on clang 22; cap parallel jobs to 16
arekm
arekm at pld-linux.org
Thu Apr 16 11:58:00 CEST 2026
commit 7d8f836894c4a2b575629ce474a44f5656608cb4
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Thu Apr 16 11:57:39 2026 +0200
Rel 3; fix build on clang 22; cap parallel jobs to 16
qdoc-clang22.patch | 11 +++++++++++
qt6.spec | 8 +++++++-
2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/qt6.spec b/qt6.spec
index d0e6c25..96e3366 100644
--- a/qt6.spec
+++ b/qt6.spec
@@ -106,6 +106,10 @@
%endif
%define specflags %{!?with_simd:-DDISABLE_SIMD -DPFFFT_SIMD_DISABLE}
+# cmake autogen (moc/uic/rcc) spawns many threads per job; on high-core
+# machines this exhausts RLIMIT_NPROC and aborts the build. Cap to 16.
+%define _smp_ncpus_max 16
+
%define icu_abi 78
%define next_icu_abi %(echo $((%{icu_abi} + 1)))
@@ -129,7 +133,7 @@ Summary: Qt6 Library
Summary(pl.UTF-8): Biblioteka Qt6
Name: qt6
Version: 6.11.0
-Release: 2
+Release: 3
License: LGPL v3 or GPL v2 or GPL v3 or commercial
Group: X11/Libraries
Source0: https://download.qt.io/official_releases/qt/6.11/%{version}/single/qt-everywhere-src-%{version}.tar.xz
@@ -142,6 +146,7 @@ Patch4: x32.patch
Patch5: qtwebengine-cmake-build-type.patch
Patch6: qtquick3d-6.6.2-gcc14.patch
Patch7: glib2.78-glibc2.43.patch
+Patch8: qdoc-clang22.patch
URL: https://www.qt.io/
%{?with_directfb:BuildRequires: DirectFB-devel}
BuildRequires: EGL-devel
@@ -3914,6 +3919,7 @@ narzędzia.
%patch -P5 -p1
%patch -P6 -p1 -d qtquick3d
%patch -P7 -p1
+%patch -P8 -p1
%{__sed} -i -e 's,usr/X11R6/,usr/,g' qtbase/mkspecs/linux-g++-64/qmake.conf
diff --git a/qdoc-clang22.patch b/qdoc-clang22.patch
new file mode 100644
index 0000000..aaf9d34
--- /dev/null
+++ b/qdoc-clang22.patch
@@ -0,0 +1,11 @@
+--- qt-everywhere-src-6.11.0/qttools/src/qdoc/cmake/QDocConfiguration.cmake.orig 2026-03-20 00:00:00.000000000 +0000
++++ qt-everywhere-src-6.11.0/qttools/src/qdoc/cmake/QDocConfiguration.cmake 2026-04-16 00:00:00.000000000 +0000
+@@ -8,7 +8,7 @@
+
+ # List of explicitly supported Clang versions for QDoc
+ set(QDOC_SUPPORTED_CLANG_VERSIONS
+- "21.1" "20.1" "19.1" "18.1" "17.0.6"
++ "22.1" "21.1" "20.1" "19.1" "18.1" "17.0.6"
+ )
+
+ # Check for QDoc coverage dependencies
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/qt6.git/commitdiff/7d8f836894c4a2b575629ce474a44f5656608cb4
More information about the pld-cvs-commit
mailing list