From d932499e6c89561bd35f7471bc4b3a9a32131af0 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Mon, 3 Apr 2023 15:38:48 +0200 Subject: [PATCH 01/15] 6.5.0 --- .gitignore | 1 + qt6-qtbase.spec | 61 +++++++++++------------ qtbase-tell-truth-about-private-api.patch | 16 ------ qtbase-version-check.patch | 16 +++--- sources | 2 +- 5 files changed, 40 insertions(+), 56 deletions(-) delete mode 100644 qtbase-tell-truth-about-private-api.patch diff --git a/.gitignore b/.gitignore index b90940e..ec64bb4 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ /qtbase-everywhere-src-6.4.1.tar.xz /qtbase-everywhere-src-6.4.2.tar.xz /qtbase-everywhere-src-6.4.3.tar.xz +/qtbase-everywhere-src-6.5.0.tar.xz diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 51ac929..2e19e9c 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -38,8 +38,8 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components -Version: 6.4.3 -Release: 2%{?dist} +Version: 6.5.0 +Release: 1%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -66,11 +66,6 @@ Source6: 10-qt6-check-opengl2.sh # macros Source10: macros.qt6-qtbase -# borrowed from opensuse -# track private api via properly versioned symbols -# downside: binaries produced with these differently-versioned symbols are no longer -# compatible with qt-project.org's Qt binary releases. -Patch1: qtbase-tell-truth-about-private-api.patch Patch2: qtbase-use-qgnomeplatform-as-default-platform-theme-on-gnome.patch # upstreamable patches @@ -336,10 +331,6 @@ popd # check to ensure that can't happen -- rex test -x configure || chmod +x configure -# use proper perl interpretter so autodeps work as expected -sed -i -e "s|^#!/usr/bin/env perl$|#!%{__perl}|" \ - mkspecs/features/data/unix/findclasslist.pl - %build # QT is known not to work properly with LTO at this point. Some of the issues @@ -433,7 +424,7 @@ translationdir=%{_qt6_translationdir} Name: Qt6 Description: Qt6 Configuration -Version: 6.4.3 +Version: 6.5.0 EOF # rpm macros @@ -491,7 +482,7 @@ install -p -m755 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/10 mkdir -p %{buildroot}%{_qt6_headerdir}/QtXcb install -m 644 src/plugins/platforms/xcb/*.h %{buildroot}%{_qt6_headerdir}/QtXcb/ -rm %{buildroot}/%{_bindir}/qt-cmake-private-install.cmake +rm %{buildroot}/%{_qt6_libexecdir}/qt-cmake-private-install.cmake # Use better location for some new scripts in qtbase-6.0.1 mv %{buildroot}/%{_qt6_libexecdir}/ensure_pro_file.cmake %{buildroot}/%{_qt6_libdir}/cmake/Qt6/ensure_pro_file.cmake @@ -563,8 +554,8 @@ make check -k ||: %{_rpmmacrodir}/macros.qt6-qtbase %files devel -%dir %{_qt6_datadir}/modules -%dir %{_qt6_libdir}/metatypes +%dir %{_qt6_libdir}/qt6/modules +%dir %{_qt6_libdir}/qt6/metatypes %dir %{_qt6_libdir}/cmake/Qt6 %dir %{_qt6_libdir}/cmake/Qt6/platforms %dir %{_qt6_libdir}/cmake/Qt6/platforms/Platform @@ -593,7 +584,7 @@ make check -k ||: %dir %{_qt6_libdir}/cmake/Qt6OpenGLWidgets %dir %{_qt6_libdir}/cmake/Qt6PrintSupport %dir %{_qt6_libdir}/cmake/Qt6Sql -%dir %{_qt6_libdir}/cmake/Qt6XcbQpaPrivate +# dir {_qt6_libdir}/cmake/Qt6XcbQpaPrivate %dir %{_qt6_libdir}/cmake/Qt6Test %dir %{_qt6_libdir}/cmake/Qt6Widgets %dir %{_qt6_libdir}/cmake/Qt6WidgetsTools @@ -602,40 +593,43 @@ make check -k ||: %dir %{_qt6_bindir} %endif %{_bindir}/androiddeployqt +%{_bindir}/androiddeployqt6 %{_bindir}/androidtestrunner %{_bindir}/qdbuscpp2xml* %{_bindir}/qdbusxml2cpp* %{_bindir}/qmake* %{_bindir}/qtpaths* %{_bindir}/qt-cmake -%{_bindir}/qt-cmake-private -%{_bindir}/qt-cmake-standalone-test +# {_bindir}/qt-cmake-private +# {_bindir}/qt-cmake-standalone-test %{_bindir}/qt-configure-module %{_libdir}/qt6/bin/qmake6 %{_qt6_bindir}/androiddeployqt +%{_qt6_bindir}/androiddeployqt6 %{_qt6_bindir}/androidtestrunner %{_qt6_bindir}/qdbuscpp2xml %{_qt6_bindir}/qdbusxml2cpp %{_qt6_bindir}/qmake %{_qt6_bindir}/qtpaths* %{_qt6_bindir}/qt-cmake -%{_qt6_bindir}/qt-cmake-private -%{_qt6_bindir}/qt-cmake-private-install.cmake -%{_qt6_bindir}/qt-cmake-standalone-test %{_qt6_bindir}/qt-configure-module +%{_qt6_libexecdir}/qt-cmake-private +%{_qt6_libexecdir}/qt-cmake-standalone-test %{_qt6_libexecdir}/cmake_automoc_parser %{_qt6_libexecdir}/qt-internal-configure-tests -%{_qt6_libexecdir}/syncqt.pl +%{_qt6_libexecdir}/sanitizer-testrunner.py +%{_qt6_libexecdir}/syncqt %{_qt6_libexecdir}/android_emulator_launcher.sh %{_qt6_libexecdir}/moc %{_qt6_libexecdir}/tracegen +%{_qt6_libexecdir}/tracepointgen %{_qt6_libexecdir}/qlalr %{_qt6_libexecdir}/qt-internal-configure-tests %{_qt6_libexecdir}/qvkgen %{_qt6_libexecdir}/rcc %{_qt6_libexecdir}/uic %{_qt6_libexecdir}/qt-testrunner.py -%{_qt6_datadir}/modules/*.json +%{_qt6_libdir}/qt6/modules/*.json %if "%{_qt6_headerdir}" != "%{_includedir}" %dir %{_qt6_headerdir} %endif @@ -679,8 +673,8 @@ make check -k ||: %{_qt6_libdir}/libQt6Test.so %{_qt6_libdir}/libQt6Widgets.prl %{_qt6_libdir}/libQt6Widgets.so -%{_qt6_libdir}/libQt6XcbQpa.prl -%{_qt6_libdir}/libQt6XcbQpa.so +# {_qt6_libdir}/libQt6XcbQpa.prl +# {_qt6_libdir}/libQt6XcbQpa.so %{_qt6_libdir}/libQt6Xml.prl %{_qt6_libdir}/libQt6Xml.so %{_qt6_libdir}/libQt6EglFSDeviceIntegration.prl @@ -695,8 +689,10 @@ make check -k ||: %{_qt6_libdir}/cmake/Qt6/libexec/* %{_qt6_libdir}/cmake/Qt6/platforms/*.cmake %{_qt6_libdir}/cmake/Qt6/platforms/Platform/*.cmake +%{_qt6_libdir}/cmake/Qt6/qbatchedtestrunner.in.cpp %{_qt6_libdir}/cmake/Qt6/ModuleDescription.json.in %{_qt6_libdir}/cmake/Qt6/QtFileConfigure.txt.in +%{_qt6_libdir}/cmake/Qt6/QtConfigureTimeExecutableCMakeLists.txt.in %{_qt6_libdir}/cmake/Qt6/QtSeparateDebugInfo.Info.plist.in %{_qt6_libdir}/cmake/Qt6/3rdparty/extra-cmake-modules/COPYING-CMAKE-SCRIPTS %{_qt6_libdir}/cmake/Qt6/3rdparty/extra-cmake-modules/find-modules/*.cmake @@ -734,9 +730,9 @@ make check -k ||: %{_qt6_libdir}/cmake/Qt6Test/*.cmake %{_qt6_libdir}/cmake/Qt6Widgets/*.cmake %{_qt6_libdir}/cmake/Qt6WidgetsTools/*.cmake -%{_qt6_libdir}/cmake/Qt6XcbQpaPrivate/*.cmake +# {_qt6_libdir}/cmake/Qt6XcbQpaPrivate/*.cmake %{_qt6_libdir}/cmake/Qt6Xml/*.cmake -%{_qt6_libdir}/metatypes/*.json +%{_qt6_libdir}/qt6/metatypes/*.json %{_qt6_libdir}/pkgconfig/*.pc %if 0%{?egl} @@ -800,7 +796,7 @@ make check -k ||: %{_qt6_libdir}/libQt6OpenGLWidgets.so.6* %{_qt6_libdir}/libQt6PrintSupport.so.6* %{_qt6_libdir}/libQt6Widgets.so.6* -%{_qt6_libdir}/libQt6XcbQpa.so.6* +# {_qt6_libdir}/libQt6XcbQpa.so.6* # Generic %{_qt6_plugindir}/generic/libqevdevkeyboardplugin.so %{_qt6_plugindir}/generic/libqevdevmouseplugin.so @@ -828,16 +824,16 @@ make check -k ||: %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-x11-integration.so %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-kms-egldevice-integration.so %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-emu-integration.so -%{_qt6_plugindir}/xcbglintegrations/libqxcb-egl-integration.so +# {_qt6_plugindir}/xcbglintegrations/libqxcb-egl-integration.so %endif # Platforms %{_qt6_plugindir}/platforms/libqlinuxfb.so %{_qt6_plugindir}/platforms/libqminimal.so %{_qt6_plugindir}/platforms/libqoffscreen.so -%{_qt6_plugindir}/platforms/libqxcb.so +# {_qt6_plugindir}/platforms/libqxcb.so %{_qt6_plugindir}/platforms/libqvnc.so %{_qt6_plugindir}/platforms/libqvkkhrdisplay.so -%{_qt6_plugindir}/xcbglintegrations/libqxcb-glx-integration.so +# {_qt6_plugindir}/xcbglintegrations/libqxcb-glx-integration.so # Platformthemes %{_qt6_plugindir}/platformthemes/libqxdgdesktopportal.so %{_qt6_plugindir}/platformthemes/libqgtk3.so @@ -845,6 +841,9 @@ make check -k ||: %changelog +* Mon Apr 03 2023 Jan Grulich - 6.5.0-1 +- 6.5.0 + * Mon Apr 03 2023 Jan Grulich - 6.4.3-2 - Enable zstd support diff --git a/qtbase-tell-truth-about-private-api.patch b/qtbase-tell-truth-about-private-api.patch deleted file mode 100644 index 33e48ad..0000000 --- a/qtbase-tell-truth-about-private-api.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf -index 3cacc8df..469e6f50 100644 ---- a/mkspecs/features/qt_module.prf -+++ b/mkspecs/features/qt_module.prf -@@ -218,9 +218,9 @@ android: CONFIG += qt_android_deps no_linker_version_script - QMAKE_LFLAGS += $${QMAKE_LFLAGS_VERSION_SCRIPT}$$verscript - - internal_module { -- verscript_content = "Qt_$${QT_MAJOR_VERSION}_PRIVATE_API { *; };" -+ verscript_content = "Qt_$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}_PRIVATE_API { *; };" - } else { -- verscript_content = "Qt_$${QT_MAJOR_VERSION}_PRIVATE_API {" \ -+ verscript_content = "Qt_$${QT_MAJOR_VERSION}.$${QT_MINOR_VERSION}.$${QT_PATCH_VERSION}_PRIVATE_API {" \ - " qt_private_api_tag*;" - - private_api_headers = $$SYNCQT.PRIVATE_HEADER_FILES $$SYNCQT.QPA_HEADER_FILES diff --git a/qtbase-version-check.patch b/qtbase-version-check.patch index d9c62b8..9343ade 100644 --- a/qtbase-version-check.patch +++ b/qtbase-version-check.patch @@ -1,13 +1,13 @@ -diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h -index 6e83b78f..6a18cc19 100644 ---- a/src/corelib/global/qglobal.h -+++ b/src/corelib/global/qglobal.h -@@ -59,7 +59,7 @@ +diff --git a/src/corelib/global/qtversionchecks.h b/src/corelib/global/qtversionchecks.h +index d3b7a7b0..a8b9c6f3 100644 +--- a/src/corelib/global/qtversionchecks.h ++++ b/src/corelib/global/qtversionchecks.h +@@ -26,7 +26,7 @@ /* can be used like #if (QT_VERSION >= QT_VERSION_CHECK(6, 4, 0)) */ -#define QT_VERSION_CHECK(major, minor, patch) ((major<<16)|(minor<<8)|(patch)) +#define QT_VERSION_CHECK(qt_version_check_major, qt_version_check_minor, qt_version_check_patch) ((qt_version_check_major<<16)|(qt_version_check_minor<<8)|(qt_version_check_patch)) - - #ifdef QT_BOOTSTRAPPED - #include + + /* + Helper macros to make some simple code active in Qt 6 or Qt 7 only, diff --git a/sources b/sources index 4888dc5..e6d0d33 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (qtbase-everywhere-src-6.4.3.tar.xz) = a2d0779ba7ee8b8b78f5dc8db06177d04d50463fea7cad0b7785721acfc33dbbbaa1a7bfc052edb90ba1d11b488c30004daa43b6924a97126b9b8f82ad1a7f43 +SHA512 (qtbase-everywhere-src-6.5.0.tar.xz) = 29f70b9a9650afdd8e34703a7a8191feab4c3a25d0bc3a41010ea842389335b24e2685721fdb4a03653475ebd9bf8a8e4f4a77bf5d64b1289590b5ca0e4623f3 From 6ba649eb42c966f3cecea4944375c231d8589f95 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Tue, 4 Apr 2023 12:33:10 +0200 Subject: [PATCH 02/15] Cleanup commented files --- qt6-qtbase.spec | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 2e19e9c..60fa129 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -584,7 +584,6 @@ make check -k ||: %dir %{_qt6_libdir}/cmake/Qt6OpenGLWidgets %dir %{_qt6_libdir}/cmake/Qt6PrintSupport %dir %{_qt6_libdir}/cmake/Qt6Sql -# dir {_qt6_libdir}/cmake/Qt6XcbQpaPrivate %dir %{_qt6_libdir}/cmake/Qt6Test %dir %{_qt6_libdir}/cmake/Qt6Widgets %dir %{_qt6_libdir}/cmake/Qt6WidgetsTools @@ -600,8 +599,6 @@ make check -k ||: %{_bindir}/qmake* %{_bindir}/qtpaths* %{_bindir}/qt-cmake -# {_bindir}/qt-cmake-private -# {_bindir}/qt-cmake-standalone-test %{_bindir}/qt-configure-module %{_libdir}/qt6/bin/qmake6 %{_qt6_bindir}/androiddeployqt @@ -673,8 +670,6 @@ make check -k ||: %{_qt6_libdir}/libQt6Test.so %{_qt6_libdir}/libQt6Widgets.prl %{_qt6_libdir}/libQt6Widgets.so -# {_qt6_libdir}/libQt6XcbQpa.prl -# {_qt6_libdir}/libQt6XcbQpa.so %{_qt6_libdir}/libQt6Xml.prl %{_qt6_libdir}/libQt6Xml.so %{_qt6_libdir}/libQt6EglFSDeviceIntegration.prl @@ -730,7 +725,6 @@ make check -k ||: %{_qt6_libdir}/cmake/Qt6Test/*.cmake %{_qt6_libdir}/cmake/Qt6Widgets/*.cmake %{_qt6_libdir}/cmake/Qt6WidgetsTools/*.cmake -# {_qt6_libdir}/cmake/Qt6XcbQpaPrivate/*.cmake %{_qt6_libdir}/cmake/Qt6Xml/*.cmake %{_qt6_libdir}/qt6/metatypes/*.json %{_qt6_libdir}/pkgconfig/*.pc @@ -796,7 +790,6 @@ make check -k ||: %{_qt6_libdir}/libQt6OpenGLWidgets.so.6* %{_qt6_libdir}/libQt6PrintSupport.so.6* %{_qt6_libdir}/libQt6Widgets.so.6* -# {_qt6_libdir}/libQt6XcbQpa.so.6* # Generic %{_qt6_plugindir}/generic/libqevdevkeyboardplugin.so %{_qt6_plugindir}/generic/libqevdevmouseplugin.so @@ -824,16 +817,13 @@ make check -k ||: %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-x11-integration.so %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-kms-egldevice-integration.so %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-emu-integration.so -# {_qt6_plugindir}/xcbglintegrations/libqxcb-egl-integration.so %endif # Platforms %{_qt6_plugindir}/platforms/libqlinuxfb.so %{_qt6_plugindir}/platforms/libqminimal.so %{_qt6_plugindir}/platforms/libqoffscreen.so -# {_qt6_plugindir}/platforms/libqxcb.so %{_qt6_plugindir}/platforms/libqvnc.so %{_qt6_plugindir}/platforms/libqvkkhrdisplay.so -# {_qt6_plugindir}/xcbglintegrations/libqxcb-glx-integration.so # Platformthemes %{_qt6_plugindir}/platformthemes/libqxdgdesktopportal.so %{_qt6_plugindir}/platformthemes/libqgtk3.so From 6a5e0a5ba5d6414dac2541059f0e58e327f24a87 Mon Sep 17 00:00:00 2001 From: Marie Loise Nolden Date: Fri, 7 Apr 2023 21:31:35 +0000 Subject: [PATCH 03/15] fix qt6-qtbase build for xcb platform plugin, cleanup - fix xcb plugin with new dependency xcb-cursor instead of Xcursor introduction with qt 6.5, add firebird sql plugin cleanly, clean up spec file --- qt6-qtbase.spec | 76 +++++++++++++++++++------------------------------ 1 file changed, 29 insertions(+), 47 deletions(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 60fa129..1afe6b1 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -1,4 +1,3 @@ - # See http://bugzilla.redhat.com/223663 %global multilib_archs x86_64 %{ix86} %{?mips} ppc64 ppc s390x s390 sparc64 sparcv9 %global multilib_basearchs x86_64 %{?mips64} ppc64 s390x sparc64 @@ -39,7 +38,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components Version: 6.5.0 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -81,9 +80,6 @@ Patch51: qtbase-moc-macros.patch # drop -O3 and make -O2 by default Patch54: qtbase-cxxflag.patch -# support firebird version 3.x -Patch55: qtbase-firebird.patch - # fix for new mariadb Patch56: qtbase-mysql.patch @@ -120,6 +116,7 @@ BuildRequires: libjpeg-devel BuildRequires: libmng-devel BuildRequires: libtiff-devel BuildRequires: libzstd-devel +BuildRequires: mtdev-devel BuildRequires: tslib-devel BuildRequires: pkgconfig(alsa) # required for -accessibility @@ -133,6 +130,7 @@ BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gtk+-3.0) BuildRequires: pkgconfig(libproxy-1.0) +BuildRequires: pkgconfig(libsctp) # xcb-sm BuildRequires: pkgconfig(ice) pkgconfig(sm) BuildRequires: pkgconfig(libpng) @@ -153,6 +151,8 @@ BuildRequires: pkgconfig(egl) BuildRequires: pkgconfig(gbm) BuildRequires: pkgconfig(libglvnd) BuildRequires: pkgconfig(x11) +# only needed for GLES2 and GLES3 builds +#BuildRequires: pkgconfig(glesv2) %global sqlite 1 BuildRequires: pkgconfig(sqlite3) >= 3.7 @@ -162,7 +162,7 @@ BuildRequires: pkgconfig(libpcre2-posix) >= 10.20 BuildRequires: pkgconfig(libpcre) >= 8.0 %global pcre 1 BuildRequires: pkgconfig(xcb-xkb) -BuildRequires: pkgconfig(xcb) pkgconfig(xcb-glx) pkgconfig(xcb-icccm) pkgconfig(xcb-image) pkgconfig(xcb-keysyms) pkgconfig(xcb-renderutil) +BuildRequires: pkgconfig(xcb) pkgconfig(xcb-glx) pkgconfig(xcb-icccm) pkgconfig(xcb-image) pkgconfig(xcb-keysyms) pkgconfig(xcb-renderutil) pkgconfig(xcb-cursor) BuildRequires: pkgconfig(zlib) BuildRequires: perl BuildRequires: perl-generators @@ -180,18 +180,10 @@ BuildRequires: xorg-x11-server-Xvfb Requires: %{name}-common = %{version}-%{release} ## Sql drivers -# FIXME: disable for now, they don't seem to be implemented in Qt 6.0.0 -# if rhel -%global no_ibase 1 -%global no_tds 1 -# endif - -# workaround gold linker bug(s) by not using it -# https://bugzilla.redhat.com/1458003 -# https://sourceware.org/bugzilla/show_bug.cgi?id=21074 -# reportedly fixed or worked-around, re-enable if there's evidence of problems -- rex -# https://bugzilla.redhat.com/show_bug.cgi?id=1635973 -%global use_gold_linker 0 +%if 0%{?fedora} || 0%{?epel} +%global ibase 1 +%endif + %description Qt is a software toolkit for developing applications. @@ -221,15 +213,12 @@ Requires: qt6-rpm-macros %if 0%{?use_clang} Requires: clang >= 3.7.0 %endif -%if 0%{?no_ibase} == 0 +%if 0%{?ibase} Requires: %{name}-ibase%{?_isa} = %{version}-%{release} %endif Requires: %{name}-mysql%{?_isa} = %{version}-%{release} Requires: %{name}-odbc%{?_isa} = %{version}-%{release} Requires: %{name}-postgresql%{?_isa} = %{version}-%{release} -%if 0%{?no_tds} == 0 -Requires: %{name}-tds%{?_isa} = %{version}-%{release} -%endif %description devel %{summary}. @@ -260,7 +249,7 @@ Requires: pkgconfig(zlib) %description static %{summary}. -%if 0%{?no_ibase} == 0 +%if 0%{?ibase} %package ibase Summary: IBase driver for Qt6's SQL classes BuildRequires: firebird-devel @@ -294,22 +283,11 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %description postgresql %{summary}. -%if 0%{?no_tds} == 0 -%package tds -Summary: TDS driver for Qt6's SQL classes -BuildRequires: freetds-devel -Requires: %{name}%{?_isa} = %{version}-%{release} -%description tds -%{summary}. -%endif - # debating whether to do 1 subpkg per library or not -- rex %package gui Summary: Qt6 GUI-related libraries Requires: %{name}%{?_isa} = %{version}-%{release} -%if 0%{?fedora} > 20 Recommends: mesa-dri-drivers -%endif # for Source6: 10-qt6-check-opengl2.sh: # glxinfo Requires: glx-utils @@ -367,12 +345,15 @@ export MAKEFLAGS="%{?_smp_mflags}" -DQT_FEATURE_enable_new_dtags=ON \ -DQT_FEATURE_journald=%{?journald:ON}%{!?journald:OFF} \ -DQT_FEATURE_openssl_linked=ON \ + -DQT_FEATURE_libproxy=ON \ + -DQT_FEATURE_sctp=ON \ -DQT_FEATURE_separate_debug_info=OFF \ -DQT_FEATURE_reduce_relocations=OFF \ -DQT_FEATURE_relocatable=OFF \ -DQT_FEATURE_system_jpeg=ON \ -DQT_FEATURE_system_png=ON \ -DQT_FEATURE_system_zlib=ON \ + %{?ibase:-DQT_FEATURE_sql_ibase=ON} \ -DQT_FEATURE_sql_odbc=ON \ -DQT_FEATURE_sql_mysql=ON \ -DQT_FEATURE_sql_psql=ON \ @@ -382,9 +363,6 @@ export MAKEFLAGS="%{?_smp_mflags}" %{?dbus_linked:-DQT_FEATURE_dbus_linked=ON} \ %{?pcre:-DQT_FEATURE_system_pcre2=ON} \ %{?sqlite:-DQT_FEATURE_system_sqlite=ON} \ - %{?no_tds:-DQT_FEATURE_sql_tds=OFF}%{!?no_tds:-DQT_FEATURE_sql_tds=ON} \ - %{?no_ibase:-DQT_FEATURE_sql_ibase=OFF}%{!?no_ibase:-DQT_FEATURE_sql_ibase=ON} \ - %{?use_gold_linker:-DQT_FEATURE_use_gold_linker=OFF} \ -DBUILD_SHARED_LIBS=ON \ -DQT_BUILD_EXAMPLES=%{?examples:ON}%{!?examples:OFF} \ -DQT_BUILD_TESTS=%{?tests:ON}%{!?tests:OFF} \ @@ -577,7 +555,6 @@ make check -k ||: %dir %{_qt6_libdir}/cmake/Qt6Gui %dir %{_qt6_libdir}/cmake/Qt6GuiTools %dir %{_qt6_libdir}/cmake/Qt6HostInfo -%dir %{_qt6_libdir}/cmake/Qt6FbSupportPrivate %dir %{_qt6_libdir}/cmake/Qt6KmsSupportPrivate %dir %{_qt6_libdir}/cmake/Qt6Network %dir %{_qt6_libdir}/cmake/Qt6OpenGL @@ -621,7 +598,6 @@ make check -k ||: %{_qt6_libexecdir}/tracegen %{_qt6_libexecdir}/tracepointgen %{_qt6_libexecdir}/qlalr -%{_qt6_libexecdir}/qt-internal-configure-tests %{_qt6_libexecdir}/qvkgen %{_qt6_libexecdir}/rcc %{_qt6_libexecdir}/uic @@ -670,6 +646,8 @@ make check -k ||: %{_qt6_libdir}/libQt6Test.so %{_qt6_libdir}/libQt6Widgets.prl %{_qt6_libdir}/libQt6Widgets.so +%{_qt6_libdir}/libQt6XcbQpa.prl +%{_qt6_libdir}/libQt6XcbQpa.so %{_qt6_libdir}/libQt6Xml.prl %{_qt6_libdir}/libQt6Xml.so %{_qt6_libdir}/libQt6EglFSDeviceIntegration.prl @@ -720,11 +698,12 @@ make check -k ||: %{_qt6_libdir}/cmake/Qt6OpenGL/*.cmake %{_qt6_libdir}/cmake/Qt6OpenGLWidgets/*.cmake %{_qt6_libdir}/cmake/Qt6PrintSupport/*.cmake -%{_qt6_libdir}/cmake/Qt6Sql/*.cmake +%{_qt6_libdir}/cmake/Qt6Sql/Qt6Sql*.cmake %{_qt6_libdir}/cmake/Qt6Sql/Qt6QSQLiteDriverPlugin*.cmake %{_qt6_libdir}/cmake/Qt6Test/*.cmake %{_qt6_libdir}/cmake/Qt6Widgets/*.cmake %{_qt6_libdir}/cmake/Qt6WidgetsTools/*.cmake +%{_qt6_libdir}/cmake/Qt6XcbQpaPrivate/*.cmake %{_qt6_libdir}/cmake/Qt6Xml/*.cmake %{_qt6_libdir}/qt6/metatypes/*.json %{_qt6_libdir}/pkgconfig/*.pc @@ -756,10 +735,10 @@ make check -k ||: %{_qt6_examplesdir}/ %endif -%if 0%{?no_ibase} == 0 +%if 0%{?ibase} %files ibase %{_qt6_plugindir}/sqldrivers/libqsqlibase.so - +%{_qt6_libdir}/cmake/Qt6Sql/Qt6QIBaseDriverPlugin*.cmake %endif %files mysql @@ -774,11 +753,6 @@ make check -k ||: %{_qt6_plugindir}/sqldrivers/libqsqlpsql.so %{_qt6_libdir}/cmake/Qt6Sql/Qt6QPSQLDriverPlugin*.cmake -%if 0%{?no_tds} == 0 -%files tds -%{_qt6_plugindir}/sqldrivers/libqsqltds.so -%endif - %ldconfig_scriptlets gui %files gui @@ -790,6 +764,7 @@ make check -k ||: %{_qt6_libdir}/libQt6OpenGLWidgets.so.6* %{_qt6_libdir}/libQt6PrintSupport.so.6* %{_qt6_libdir}/libQt6Widgets.so.6* +%{_qt6_libdir}/libQt6XcbQpa.so.6* # Generic %{_qt6_plugindir}/generic/libqevdevkeyboardplugin.so %{_qt6_plugindir}/generic/libqevdevmouseplugin.so @@ -817,13 +792,16 @@ make check -k ||: %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-x11-integration.so %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-kms-egldevice-integration.so %{_qt6_plugindir}/egldeviceintegrations/libqeglfs-emu-integration.so +%{_qt6_plugindir}/xcbglintegrations/libqxcb-egl-integration.so %endif # Platforms %{_qt6_plugindir}/platforms/libqlinuxfb.so %{_qt6_plugindir}/platforms/libqminimal.so %{_qt6_plugindir}/platforms/libqoffscreen.so +%{_qt6_plugindir}/platforms/libqxcb.so %{_qt6_plugindir}/platforms/libqvnc.so %{_qt6_plugindir}/platforms/libqvkkhrdisplay.so +%{_qt6_plugindir}/xcbglintegrations/libqxcb-glx-integration.so # Platformthemes %{_qt6_plugindir}/platformthemes/libqxdgdesktopportal.so %{_qt6_plugindir}/platformthemes/libqgtk3.so @@ -831,6 +809,10 @@ make check -k ||: %changelog +* Fri Apr 7 2023 Marie Loise Nolden - 6.5.0-2 +- fix xcb plugin with new dependency xcb-cursor instead of Xcursor + introduction with qt 6.5, add firebird sql plugin cleanly, clean up spec file + * Mon Apr 03 2023 Jan Grulich - 6.5.0-1 - 6.5.0 From 3aeb3c66cf12df412534c10656a89defa2ddd089 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Tue, 9 May 2023 09:07:41 +0200 Subject: [PATCH 04/15] Restore 'tell-truth-about-private-API' patch --- qt6-qtbase.spec | 1 + qtbase-tell-the-truth-about-private-API.patch | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 qtbase-tell-the-truth-about-private-API.patch diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 1afe6b1..9064abf 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -65,6 +65,7 @@ Source6: 10-qt6-check-opengl2.sh # macros Source10: macros.qt6-qtbase +Patch1: qtbase-tell-the-truth-about-private-API.patch Patch2: qtbase-use-qgnomeplatform-as-default-platform-theme-on-gnome.patch # upstreamable patches diff --git a/qtbase-tell-the-truth-about-private-API.patch b/qtbase-tell-the-truth-about-private-API.patch new file mode 100644 index 0000000..d98fd60 --- /dev/null +++ b/qtbase-tell-the-truth-about-private-API.patch @@ -0,0 +1,28 @@ +From 25e78cce15fdf737cc48ed5d7683ad1d01b55621 Mon Sep 17 00:00:00 2001 +From: Christophe Giboudeaux +Date: Sun, 20 Sep 2020 09:57:22 +0200 +Subject: [PATCH] Tell the truth about private API + +Mark private API with symbols only for the current patch release + +This change is a port of the libqt5-qtbase patch which was +added during the Qt 5.6 cycle. +--- + cmake/QtFlagHandlingHelpers.cmake | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/cmake/QtFlagHandlingHelpers.cmake b/cmake/QtFlagHandlingHelpers.cmake +index d8597326cc..f9da7b2171 100644 +--- a/cmake/QtFlagHandlingHelpers.cmake ++++ b/cmake/QtFlagHandlingHelpers.cmake +@@ -23,7 +23,7 @@ function(qt_internal_add_linker_version_script target) + endif() + + if(TEST_ld_version_script) +- set(contents "Qt_${PROJECT_VERSION_MAJOR}_PRIVATE_API {\n qt_private_api_tag*;\n") ++ set(contents "Qt_${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}_PRIVATE_API {\n qt_private_api_tag*;\n") + if(arg_PRIVATE_HEADERS) + foreach(ph ${arg_PRIVATE_HEADERS}) + string(APPEND contents " @FILE:${ph}@\n") +-- +2.40.0 From 43d39197e0865501e5666162c005eeb402c9d71f Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 24 May 2023 12:48:13 +0200 Subject: [PATCH 05/15] 6.5.1 --- .gitignore | 1 + qt6-qtbase.spec | 17 ++++++++++++++--- sources | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ec64bb4..4d48cf6 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ /qtbase-everywhere-src-6.4.2.tar.xz /qtbase-everywhere-src-6.4.3.tar.xz /qtbase-everywhere-src-6.5.0.tar.xz +/qtbase-everywhere-src-6.5.1.tar.xz diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 9064abf..5175dcc 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -37,8 +37,8 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components -Version: 6.5.0 -Release: 2%{?dist} +Version: 6.5.1 +Release: 1%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -403,7 +403,7 @@ translationdir=%{_qt6_translationdir} Name: Qt6 Description: Qt6 Configuration -Version: 6.5.0 +Version: 6.5.1 EOF # rpm macros @@ -466,6 +466,9 @@ rm %{buildroot}/%{_qt6_libexecdir}/qt-cmake-private-install.cmake # Use better location for some new scripts in qtbase-6.0.1 mv %{buildroot}/%{_qt6_libexecdir}/ensure_pro_file.cmake %{buildroot}/%{_qt6_libdir}/cmake/Qt6/ensure_pro_file.cmake +# FIXME why is this being installed? +rm %{buildroot}/%{_qt6_libdir}/objects-RelWithDebInfo/ExampleIconsPrivate_resources_1/.rcc/qrc_example_icons.cpp.o + %check # verify Qt6.pc export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig @@ -552,6 +555,7 @@ make check -k ||: %dir %{_qt6_libdir}/cmake/Qt6EglFSDeviceIntegrationPrivate %dir %{_qt6_libdir}/cmake/Qt6EglFsKmsGbmSupportPrivate %dir %{_qt6_libdir}/cmake/Qt6EglFsKmsSupportPrivate +%dir %{_qt6_libdir}/cmake/Qt6ExampleIconsPrivate %dir %{_qt6_libdir}/cmake/Qt6FbSupportPrivate %dir %{_qt6_libdir}/cmake/Qt6Gui %dir %{_qt6_libdir}/cmake/Qt6GuiTools @@ -611,6 +615,7 @@ make check -k ||: %{_qt6_headerdir}/QtCore/ %{_qt6_headerdir}/QtDBus/ %{_qt6_headerdir}/QtInputSupport +%{_qt6_headerdir}/QtExampleIcons %{_qt6_headerdir}/QtGui/ %{_qt6_headerdir}/QtNetwork/ %{_qt6_headerdir}/QtOpenGL/ @@ -689,6 +694,7 @@ make check -k ||: %{_qt6_libdir}/cmake/Qt6EglFSDeviceIntegrationPrivate/*.cmake %{_qt6_libdir}/cmake/Qt6EglFsKmsGbmSupportPrivate/*.cmake %{_qt6_libdir}/cmake/Qt6EglFsKmsSupportPrivate/*.cmake +%{_qt6_libdir}/cmake/Qt6ExampleIconsPrivate/*.cmake %{_qt6_libdir}/cmake/Qt6FbSupportPrivate/*.cmake %{_qt6_libdir}/cmake/Qt6Gui/*.cmake %{_qt6_libdir}/cmake/Qt6GuiTools/*.cmake @@ -723,6 +729,8 @@ make check -k ||: %{_qt6_headerdir}/QtDeviceDiscoverySupport %{_qt6_libdir}/libQt6DeviceDiscoverySupport.*a %{_qt6_libdir}/libQt6DeviceDiscoverySupport.prl +%{_qt6_libdir}/libQt6ExampleIcons.a +%{_qt6_libdir}/libQt6ExampleIcons.prl %{_qt6_headerdir}/QtFbSupport %{_qt6_libdir}/libQt6FbSupport.*a %{_qt6_libdir}/libQt6FbSupport.prl @@ -810,6 +818,9 @@ make check -k ||: %changelog +* Mon May 22 2023 Jan Grulich - 6.5.1-1 +- 6.5.1 + * Fri Apr 7 2023 Marie Loise Nolden - 6.5.0-2 - fix xcb plugin with new dependency xcb-cursor instead of Xcursor introduction with qt 6.5, add firebird sql plugin cleanly, clean up spec file diff --git a/sources b/sources index e6d0d33..30de32d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (qtbase-everywhere-src-6.5.0.tar.xz) = 29f70b9a9650afdd8e34703a7a8191feab4c3a25d0bc3a41010ea842389335b24e2685721fdb4a03653475ebd9bf8a8e4f4a77bf5d64b1289590b5ca0e4623f3 +SHA512 (qtbase-everywhere-src-6.5.1.tar.xz) = 7f7b20bbc25cda65266d6067cdd68e3e077636988d67dbf5783f79a61186135fb3a36d57ac72cfe4501012035b630ab1f5849148e4817726d4f459fa1937e91a From 840cea88e57b3b894cc289e1f2e978f2963caa6b Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Tue, 30 May 2023 07:15:10 +0200 Subject: [PATCH 06/15] Don't track patch version for private API version --- qtbase-tell-the-truth-about-private-API.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtbase-tell-the-truth-about-private-API.patch b/qtbase-tell-the-truth-about-private-API.patch index d98fd60..fd2ac7a 100644 --- a/qtbase-tell-the-truth-about-private-API.patch +++ b/qtbase-tell-the-truth-about-private-API.patch @@ -20,7 +20,7 @@ index d8597326cc..f9da7b2171 100644 if(TEST_ld_version_script) - set(contents "Qt_${PROJECT_VERSION_MAJOR}_PRIVATE_API {\n qt_private_api_tag*;\n") -+ set(contents "Qt_${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}_PRIVATE_API {\n qt_private_api_tag*;\n") ++ set(contents "Qt_${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}_PRIVATE_API {\n qt_private_api_tag*;\n") if(arg_PRIVATE_HEADERS) foreach(ph ${arg_PRIVATE_HEADERS}) string(APPEND contents " @FILE:${ph}@\n") From 8abd8fe46163d46150eef3a95459ef6835a0cbbf Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 10 Jul 2023 13:31:19 -0400 Subject: [PATCH 07/15] Update PCRE build dependencies The runtime builds show a proper dependency on libpcre2-16, so an immediate revbump and rebuild doesn't seem necessary. --- qt6-qtbase.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 5175dcc..f5d4a48 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -159,8 +159,7 @@ BuildRequires: pkgconfig(x11) BuildRequires: pkgconfig(sqlite3) >= 3.7 BuildRequires: pkgconfig(harfbuzz) >= 0.9.42 BuildRequires: pkgconfig(icu-i18n) -BuildRequires: pkgconfig(libpcre2-posix) >= 10.20 -BuildRequires: pkgconfig(libpcre) >= 8.0 +BuildRequires: pkgconfig(libpcre2-16) >= 10.20 %global pcre 1 BuildRequires: pkgconfig(xcb-xkb) BuildRequires: pkgconfig(xcb) pkgconfig(xcb-glx) pkgconfig(xcb-icccm) pkgconfig(xcb-image) pkgconfig(xcb-keysyms) pkgconfig(xcb-renderutil) pkgconfig(xcb-cursor) From 9911d344d7a6bac52abb1094164ed4ec2781d1c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Tue, 11 Jul 2023 22:21:36 +0200 Subject: [PATCH 08/15] Rebuilt for ICU 73.2 --- qt6-qtbase.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index f5d4a48..0e68530 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -38,7 +38,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components Version: 6.5.1 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -817,6 +817,9 @@ make check -k ||: %changelog +* Tue Jul 11 2023 František Zatloukal - 6.5.1-2 +- Rebuilt for ICU 73.2 + * Mon May 22 2023 Jan Grulich - 6.5.1-1 - 6.5.1 From d487a7a9a03c7c0ebc7f17c616db64a79845a21f Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Wed, 12 Jul 2023 12:58:51 +0200 Subject: [PATCH 09/15] Bump build for private API version change --- qt6-qtbase.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 0e68530..b9cd20e 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -38,7 +38,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components Version: 6.5.1 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -817,6 +817,9 @@ make check -k ||: %changelog +* Wed Jul 12 2023 Jan Grulich - 6.5.1-3 +- Bump build for private API version change + * Tue Jul 11 2023 František Zatloukal - 6.5.1-2 - Rebuilt for ICU 73.2 From b4166db60ea66aaf735cc80db92b783c86d6b419 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= Date: Wed, 12 Jul 2023 17:00:21 +0200 Subject: [PATCH 10/15] Rebuilt for ICU 73.2 --- qt6-qtbase.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index b9cd20e..68ad3b6 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -38,7 +38,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components Version: 6.5.1 -Release: 3%{?dist} +Release: 4%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -817,6 +817,9 @@ make check -k ||: %changelog +* Wed Jul 12 2023 František Zatloukal - 6.5.1-4 +- Rebuilt for ICU 73.2 + * Wed Jul 12 2023 Jan Grulich - 6.5.1-3 - Bump build for private API version change From e0efab4a30c73804acb32e59e2cbd5cdbcfa57b9 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Fri, 21 Jul 2023 10:28:02 +0200 Subject: [PATCH 11/15] 6.5.2 --- .gitignore | 1 + qt6-qtbase.spec | 9 ++++++--- sources | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 4d48cf6..f96fe9b 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ /qtbase-everywhere-src-6.4.3.tar.xz /qtbase-everywhere-src-6.5.0.tar.xz /qtbase-everywhere-src-6.5.1.tar.xz +/qtbase-everywhere-src-6.5.2.tar.xz diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 68ad3b6..f307c54 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -37,8 +37,8 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components -Version: 6.5.1 -Release: 4%{?dist} +Version: 6.5.2 +Release: 1%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -402,7 +402,7 @@ translationdir=%{_qt6_translationdir} Name: Qt6 Description: Qt6 Configuration -Version: 6.5.1 +Version: 6.5.2 EOF # rpm macros @@ -817,6 +817,9 @@ make check -k ||: %changelog +* Fri Jul 21 2023 Jan Grulich - 6.5.2-1 +- 6.5.2 + * Wed Jul 12 2023 František Zatloukal - 6.5.1-4 - Rebuilt for ICU 73.2 diff --git a/sources b/sources index 30de32d..5151a6f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (qtbase-everywhere-src-6.5.1.tar.xz) = 7f7b20bbc25cda65266d6067cdd68e3e077636988d67dbf5783f79a61186135fb3a36d57ac72cfe4501012035b630ab1f5849148e4817726d4f459fa1937e91a +SHA512 (qtbase-everywhere-src-6.5.2.tar.xz) = 8d97029aae5b73a3e03624c9a8495dbf2fe54a4f5e992071c06f3d93935e64c80f2121b33eeb60a92d96ceb288cb25d74906a5bf47b45bb018d859d4a2d13f20 From 3e8f6395e97cb5cee45da5be601ee8acf414b0a8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 21 Jul 2023 16:11:01 +0000 Subject: [PATCH 12/15] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- qt6-qtbase.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index f307c54..4aecef6 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -38,7 +38,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components Version: 6.5.2 -Release: 1%{?dist} +Release: 2%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -817,6 +817,9 @@ make check -k ||: %changelog +* Fri Jul 21 2023 Fedora Release Engineering - 6.5.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Fri Jul 21 2023 Jan Grulich - 6.5.2-1 - 6.5.2 From fed7db12b2eb21d598d45815f596297e1a8bfe86 Mon Sep 17 00:00:00 2001 From: Jan Grulich Date: Fri, 11 Aug 2023 14:52:10 +0200 Subject: [PATCH 13/15] Don't use QGnomePlatform by default on F39+ --- qt6-qtbase.spec | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 4aecef6..1d6f264 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -38,7 +38,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components Version: 6.5.2 -Release: 2%{?dist} +Release: 3%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -66,7 +66,6 @@ Source6: 10-qt6-check-opengl2.sh Source10: macros.qt6-qtbase Patch1: qtbase-tell-the-truth-about-private-API.patch -Patch2: qtbase-use-qgnomeplatform-as-default-platform-theme-on-gnome.patch # upstreamable patches # namespace QT_VERSION_CHECK to workaround major/minor being pre-defined (#1396755) @@ -90,6 +89,11 @@ Patch58: qtbase-libglvnd.patch # gcc-11 Patch90: qtbase-gcc11.patch +%if 0%{?fedora} < 39 +# Latest QGnomePlatform needs to be specified to be used +Patch100: qtbase-use-qgnomeplatform-as-default-platform-theme-on-gnome.patch +%endif + ## upstream patches # Do not check any files in %%{_qt6_plugindir}/platformthemes/ for requires. @@ -817,6 +821,9 @@ make check -k ||: %changelog +* Fri Aug 11 2023 Jan Grulich - 6.5.2-3 +- Don't use QGnomePlatform by default on F39+ + * Fri Jul 21 2023 Fedora Release Engineering - 6.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 7f9c50ebd7a99aa45fc51b53b1fb1ed4a057dbe5 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 28 Aug 2023 21:01:29 -0400 Subject: [PATCH 14/15] Use bundled libb2 in RHEL builds Standalone libb2 is unwanted in RHEL. --- qt6-qtbase.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 1d6f264..72f8967 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -38,7 +38,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components Version: 6.5.2 -Release: 3%{?dist} +Release: 4%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -116,7 +116,11 @@ BuildRequires: cups-devel BuildRequires: desktop-file-utils BuildRequires: findutils BuildRequires: double-conversion-devel +%if 0%{?fedora} || 0%{?epel} BuildRequires: libb2-devel +%else +Provides: bundled(libb2) +%endif BuildRequires: libjpeg-devel BuildRequires: libmng-devel BuildRequires: libtiff-devel @@ -821,6 +825,9 @@ make check -k ||: %changelog +* Mon Aug 28 2023 Yaakov Selkowitz - 6.5.2-4 +- Use bundled libb2 in RHEL builds + * Fri Aug 11 2023 Jan Grulich - 6.5.2-3 - Don't use QGnomePlatform by default on F39+ From ca477f48a64a0a0d3bbc0d033f50ceeb9624ae13 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Sun, 3 Sep 2023 15:54:34 +0200 Subject: [PATCH 15/15] Unbreak CMake Qt6::ExampleIconsPrivate package This fixes build for the following CMakeLists.txt: cmake_minimum_required(VERSION 3.18) project(hello) find_package(Qt6 COMPONENTS ExampleIconsPrivate) --- qt6-qtbase.spec | 10 ++-- ...stall-objects-files-into-ARCHDATADIR.patch | 51 +++++++++++++++++++ 2 files changed, 57 insertions(+), 4 deletions(-) create mode 100644 qtbase-CMake-Install-objects-files-into-ARCHDATADIR.patch diff --git a/qt6-qtbase.spec b/qt6-qtbase.spec index 72f8967..6a8b26c 100644 --- a/qt6-qtbase.spec +++ b/qt6-qtbase.spec @@ -38,7 +38,7 @@ BuildRequires: pkgconfig(libsystemd) Name: qt6-qtbase Summary: Qt6 - QtBase components Version: 6.5.2 -Release: 4%{?dist} +Release: 5%{?dist} License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0 Url: http://qt-project.org/ @@ -66,6 +66,7 @@ Source6: 10-qt6-check-opengl2.sh Source10: macros.qt6-qtbase Patch1: qtbase-tell-the-truth-about-private-API.patch +Patch2: qtbase-CMake-Install-objects-files-into-ARCHDATADIR.patch # upstreamable patches # namespace QT_VERSION_CHECK to workaround major/minor being pre-defined (#1396755) @@ -473,9 +474,6 @@ rm %{buildroot}/%{_qt6_libexecdir}/qt-cmake-private-install.cmake # Use better location for some new scripts in qtbase-6.0.1 mv %{buildroot}/%{_qt6_libexecdir}/ensure_pro_file.cmake %{buildroot}/%{_qt6_libdir}/cmake/Qt6/ensure_pro_file.cmake -# FIXME why is this being installed? -rm %{buildroot}/%{_qt6_libdir}/objects-RelWithDebInfo/ExampleIconsPrivate_resources_1/.rcc/qrc_example_icons.cpp.o - %check # verify Qt6.pc export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig @@ -720,6 +718,7 @@ make check -k ||: %{_qt6_libdir}/cmake/Qt6XcbQpaPrivate/*.cmake %{_qt6_libdir}/cmake/Qt6Xml/*.cmake %{_qt6_libdir}/qt6/metatypes/*.json +%{_qt6_libdir}/qt6/objects-RelWithDebInfo/ExampleIconsPrivate_resources_1/.rcc/qrc_example_icons.cpp.o %{_qt6_libdir}/pkgconfig/*.pc %if 0%{?egl} @@ -825,6 +824,9 @@ make check -k ||: %changelog +* Sun Sep 03 2023 LuK1337 - 6.5.2-5 +- Unbreak CMake Qt6::ExampleIconsPrivate package + * Mon Aug 28 2023 Yaakov Selkowitz - 6.5.2-4 - Use bundled libb2 in RHEL builds diff --git a/qtbase-CMake-Install-objects-files-into-ARCHDATADIR.patch b/qtbase-CMake-Install-objects-files-into-ARCHDATADIR.patch new file mode 100644 index 0000000..5d7bc91 --- /dev/null +++ b/qtbase-CMake-Install-objects-files-into-ARCHDATADIR.patch @@ -0,0 +1,51 @@ +From 4e517492a03b6c0b710a2d9a3df05922ac233992 Mon Sep 17 00:00:00 2001 +From: Christophe Marin +Date: Wed, 24 May 2023 11:23:39 +0200 +Subject: [PATCH] CMake: Install objects files into 'ARCHDATADIR' + +Change-Id: I917a9ef4d83f93eb5c3e47964bf1814d1b53fdab +--- + cmake/QtResourceHelpers.cmake | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/cmake/QtResourceHelpers.cmake b/cmake/QtResourceHelpers.cmake +index 2df1fed50f..e4f34b5ff1 100644 +--- a/cmake/QtResourceHelpers.cmake ++++ b/cmake/QtResourceHelpers.cmake +@@ -38,7 +38,7 @@ function(qt_internal_add_resource target resourceName) + if (out_targets) + qt_install(TARGETS ${out_targets} + EXPORT "${INSTALL_CMAKE_NAMESPACE}${target}Targets" +- DESTINATION "${INSTALL_LIBDIR}" ++ DESTINATION "${INSTALL_ARCHDATADIR}" + ) + qt_internal_add_targets_to_additional_targets_export_file( + TARGETS ${out_targets} +@@ -47,7 +47,7 @@ function(qt_internal_add_resource target resourceName) + + qt_internal_install_resource_pdb_files("${out_targets}") + qt_internal_record_rcc_object_files("${target}" "${out_targets}" +- INSTALL_DIRECTORY "${INSTALL_LIBDIR}") ++ INSTALL_DIRECTORY "${INSTALL_ARCHDATADIR}") + endif() + + if (arg_OUTPUT_TARGETS) +@@ -77,7 +77,7 @@ function(qt_internal_record_rcc_object_files target resource_targets) + # It's comprised of thee following path parts: + # + # part (1) INSTALL_DIRECTORY. +- # A usual value is '${INSTALL_LIBDIR}/' for libraries ++ # A usual value is '${INSTALL_ARCHDATADIR}/' for libraries + # and '${INSTALL_QMLDIR}/foo/bar/' for qml plugin resources. + # + # part (2) the value computed by CMake's computeInstallObjectDir comprised of an +@@ -128,6 +128,6 @@ function(qt_internal_install_resource_pdb_files objlib_targets) + _qt_resource_generated_cpp_relative_path) + get_filename_component(rel_obj_file_dir "${generated_cpp_file_relative_path}" DIRECTORY) + qt_internal_install_pdb_files(${target} +- "${INSTALL_LIBDIR}/objects-$/${target}/${rel_obj_file_dir}") ++ "${INSTALL_ARCHDATADIR}/objects-$/${target}/${rel_obj_file_dir}") + endforeach() + endfunction() +-- +2.40.1