public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/qt6-qtlocation] epel9: CMake: Don't publicly propagate private Qt modules for public modules
@ 2026-10-08 20:01 Jan Grulich
  0 siblings, 0 replies; only message in thread
From: Jan Grulich @ 2026-10-08 20:01 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/qt6-qtlocation
Branch : epel9
Commit : 46eadaacf1b7674e6f02b0d03fba772bc8996652
Author : Jan Grulich <jgrulich@redhat.com>
Date   : 2025-09-23T10:48:54+02:00
Stats  : +47/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/qt6-qtlocation/c/46eadaacf1b7674e6f02b0d03fba772bc8996652?branch=epel9

Log:
CMake: Don't publicly propagate private Qt modules for public modules

---
diff --git a/qt6-qtlocation.spec b/qt6-qtlocation.spec
index 69ec1b7..1611cdb 100644
--- a/qt6-qtlocation.spec
+++ b/qt6-qtlocation.spec
@@ -11,7 +11,7 @@
 Summary: Qt6 - Location Libraries
 Name:    qt6-%{qt_module}
 Version: 6.9.2
-Release: 1%{?dist}
+Release: 2%{?dist}
 
 # Rest of the licenses are for Qt code in src/location and src/plugins
 License: LGPL-3.0-only OR GPL-3.0-only WITH Qt-GPL-exception-1.0
@@ -25,6 +25,9 @@ Source0: https://download.qt.io/development_releases/qt/%{majmin}/%{qt_version}/
 Source0: https://download.qt.io/official_releases/qt/%{majmin}/%{version}/submodules/%{qt_module}-everywhere-src-%{version}.tar.xz
 %endif
 
+# Remove with Qt 6.10
+Patch0:  qtlocation-cmake-dont-publicly-propagate-private-qt-modules-for-public-modules.patch
+
 # filter plugin/qml provides
 %global __provides_exclude_from ^(%{_qt6_archdatadir}/qml/.*\\.so|%{_qt6_plugindir}/.*\\.so)$
 
@@ -126,6 +129,9 @@ popd
 %endif
 
 %changelog
+* Tue Sep 23 2025 Jan Grulich <jgrulich@redhat.com> - 6.9.2-2
+- CMake: Don't publicly propagate private Qt modules for public modules
+
 * Thu Aug 28 2025 Jan Grulich <jgrulich@redhat.com> - 6.9.2-1
 - 6.9.2
 

diff --git a/qtlocation-cmake-dont-publicly-propagate-private-qt-modules-for-public-modules.patch b/qtlocation-cmake-dont-publicly-propagate-private-qt-modules-for-public-modules.patch
new file mode 100644
index 0000000..eb1d7e5
--- /dev/null
+++ b/qtlocation-cmake-dont-publicly-propagate-private-qt-modules-for-public-modules.patch
@@ -0,0 +1,40 @@
+From 5571a1e37ea6b9ddf717125b10e26234e7827bc8 Mon Sep 17 00:00:00 2001
+From: Alexandru Croitor <alexandru.croitor@qt.io>
+Date: Mon, 28 Jul 2025 12:59:39 +0200
+Subject: [PATCH] CMake: Don't publicly propagate private Qt modules for public
+ modules
+
+This causes user projects to automatically find the private Qt module
+packages and expose the Private targets and their headers, without the
+user project explicitly opting into this, and without showing them a
+warning.
+
+Pick-to: 6.10
+Task-number: QTBUG-138712
+Change-Id: I63db9259bc6145cb247523896bcfd9f8f163f0f7
+Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
+---
+ src/location/CMakeLists.txt | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/src/location/CMakeLists.txt b/src/location/CMakeLists.txt
+index a7f49374c..acde933ab 100644
+--- a/src/location/CMakeLists.txt
++++ b/src/location/CMakeLists.txt
+@@ -85,14 +85,15 @@ qt_internal_add_module(Location
+         Qt::PositioningQuickPrivate
+         Qt::Qml
+         Qt::Quick
++        Qt::QuickShapesPrivate
+     PUBLIC_LIBRARIES
+         Qt::Core
+         Qt::Positioning
+         Qt::PositioningQuick
+-        Qt::QuickShapesPrivate
+     PRIVATE_MODULE_INTERFACE
+         Qt::CorePrivate
+         Qt::QuickPrivate
++        Qt::QuickShapesPrivate
+         Qt::PositioningPrivate
+         Qt::PositioningQuickPrivate
+ )

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-08 20:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-08 20:01 [rpms/qt6-qtlocation] epel9: CMake: Don't publicly propagate private Qt modules for public modules Jan Grulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox