* [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kdbusaddons/, kde-frameworks/kdbusaddons/files/
@ 2024-03-24 21:03 Andreas Sturmlechner
0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2024-03-24 21:03 UTC (permalink / raw
To: gentoo-commits
commit: dcffa1856ce6d56c7f170946e5aae9d2dee4e6b4
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 15 13:36:45 2024 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Mar 24 21:02:14 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcffa185
kde-frameworks/kdbusaddons: Add missing dev-qt/qtbase:6= slot op
See also:
https://invent.kde.org/frameworks/kdbusaddons/-/merge_requests/49
Backporting to 6.0.0, otherwise this dependency fix would only be
introduced by 6.1.0 on April 13th.
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../files/kdbusaddons-6.0.0-cmake.patch | 35 ++++++++++++++++++++++
...ns-6.0.0.ebuild => kdbusaddons-6.0.0-r1.ebuild} | 5 +++-
2 files changed, 39 insertions(+), 1 deletion(-)
diff --git a/kde-frameworks/kdbusaddons/files/kdbusaddons-6.0.0-cmake.patch b/kde-frameworks/kdbusaddons/files/kdbusaddons-6.0.0-cmake.patch
new file mode 100644
index 000000000000..b1ebc6d32bfd
--- /dev/null
+++ b/kde-frameworks/kdbusaddons/files/kdbusaddons-6.0.0-cmake.patch
@@ -0,0 +1,35 @@
+From d307f232232de6e5646fd6a91053fe097b90b35f Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Fri, 15 Mar 2024 14:26:49 +0100
+Subject: [PATCH] Conditionalise Qt6::GuiPrivate on HAVE_X11
+
+qtx11extras_p.h is already conditional behind HAVE_X11
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ src/CMakeLists.txt | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index c47bc15..de5ac6f 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -60,11 +60,11 @@ ecm_generate_export_header(KF6DBusAddons
+ EXCLUDE_DEPRECATED_BEFORE_AND_AT ${EXCLUDE_DEPRECATED_BEFORE_AND_AT}
+ )
+
+-if(TARGET Qt6::Gui)
+- set(_qt_x11_extras_libs Qt6::GuiPrivate) # qtx11extras_p.h
+-endif()
++target_link_libraries(KF6DBusAddons PUBLIC Qt6::DBus)
+
+-target_link_libraries(KF6DBusAddons PUBLIC Qt6::DBus PRIVATE ${_qt_x11_extras_libs})
++if(HAVE_X11)
++ target_link_libraries(KF6DBusAddons PRIVATE Qt6::GuiPrivate) # qtx11extras_p.h
++endif()
+
+ target_include_directories(KF6DBusAddons INTERFACE "$<INSTALL_INTERFACE:${KDE_INSTALL_INCLUDEDIR_KF}/KDBusAddons>")
+
+--
+GitLab
+
diff --git a/kde-frameworks/kdbusaddons/kdbusaddons-6.0.0.ebuild b/kde-frameworks/kdbusaddons/kdbusaddons-6.0.0-r1.ebuild
similarity index 79%
rename from kde-frameworks/kdbusaddons/kdbusaddons-6.0.0.ebuild
rename to kde-frameworks/kdbusaddons/kdbusaddons-6.0.0-r1.ebuild
index 7d0db60a68ee..5c8019cf1755 100644
--- a/kde-frameworks/kdbusaddons/kdbusaddons-6.0.0.ebuild
+++ b/kde-frameworks/kdbusaddons/kdbusaddons-6.0.0-r1.ebuild
@@ -13,13 +13,16 @@ LICENSE="LGPL-2+"
KEYWORDS="~amd64"
IUSE="X"
+# slot op: Uses Qt6::GuiPrivate for qtx11extras_p.h
DEPEND="
>=dev-qt/qtbase-${QTMIN}:6[dbus]
- X? ( >=dev-qt/qtbase-${QTMIN}:6[gui] )
+ X? ( >=dev-qt/qtbase-${QTMIN}:6=[gui] )
"
RDEPEND="${DEPEND}"
BDEPEND=">=dev-qt/qttools-${QTMIN}:6[linguist]"
+PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
+
src_configure() {
local mycmakeargs=(
-DWITH_X11=$(usex X)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-03-24 21:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-24 21:03 [gentoo-commits] repo/gentoo:master commit in: kde-frameworks/kdbusaddons/, kde-frameworks/kdbusaddons/files/ Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox