mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
kde-plasma/kwayland: Disable Server API part w/o any revdeps left
Avoids running into glibc-2.41 related error. Closes: https://bugs.gentoo.org/949197 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
From fa0425714656919449a53e41c80ac9ad06d89193 Mon Sep 17 00:00:00 2001
|
||||
From: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
Date: Sat, 1 Feb 2025 19:23:24 +0100
|
||||
Subject: Only require Wayland Server component if needed
|
||||
|
||||
It is only required if building the server API, meaning
|
||||
EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.74.0
|
||||
|
||||
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
|
||||
---
|
||||
CMakeLists.txt | 9 +++++----
|
||||
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index a177d29..6a71381 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -51,10 +51,11 @@ if (QT_MAJOR_VERSION STREQUAL "5")
|
||||
pkg_check_modules(XKBCommon REQUIRED IMPORTED_TARGET xkbcommon)
|
||||
endif()
|
||||
|
||||
-find_package(Wayland 1.15 COMPONENTS Client Server)
|
||||
-set_package_properties(Wayland PROPERTIES
|
||||
- TYPE REQUIRED
|
||||
- )
|
||||
+find_package(Wayland 1.15 REQUIRED COMPONENTS Client)
|
||||
+
|
||||
+if(EXCLUDE_DEPRECATED_BEFORE_AND_AT VERSION_LESS 5.74.0)
|
||||
+ find_package(Wayland 1.15 REQUIRED COMPONENTS Server)
|
||||
+endif()
|
||||
|
||||
find_package(WaylandScanner)
|
||||
|
||||
--
|
||||
2.48.1
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
ECM_NONGUI="true"
|
||||
ECM_QTHELP="true"
|
||||
ECM_TEST="true"
|
||||
inherit ecm flag-o-matic frameworks.kde.org
|
||||
|
||||
DESCRIPTION="Qt-style client and server library wrapper for Wayland libraries"
|
||||
HOMEPAGE="https://invent.kde.org/frameworks/kwayland"
|
||||
|
||||
LICENSE="LGPL-2.1"
|
||||
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~x86"
|
||||
IUSE=""
|
||||
|
||||
# All failing, I guess we need a virtual wayland server
|
||||
RESTRICT="test"
|
||||
|
||||
# slot ops: includes qpa/qplatformnativeinterface.h, surface_p.h
|
||||
RDEPEND="
|
||||
dev-libs/wayland
|
||||
dev-qt/qtconcurrent:5
|
||||
dev-qt/qtgui:5=[egl]
|
||||
dev-qt/qtwayland:5=
|
||||
media-libs/libglvnd
|
||||
"
|
||||
DEPEND="${RDEPEND}
|
||||
>=dev-libs/plasma-wayland-protocols-1.9.0
|
||||
dev-libs/wayland-protocols
|
||||
sys-kernel/linux-headers
|
||||
"
|
||||
BDEPEND="
|
||||
dev-qt/qtwaylandscanner:5
|
||||
dev-util/wayland-scanner
|
||||
"
|
||||
|
||||
# Pending upstream MR: https://invent.kde.org/plasma/kwayland/-/merge_requests/128
|
||||
PATCHES=( "${FILESDIR}/${P}-no-server.patch" ) # bug 949197
|
||||
|
||||
src_configure() {
|
||||
filter-lto # bug 866575
|
||||
local mycmakeargs=( -DEXCLUDE_DEPRECATED_BEFORE_AND_AT=5.74.0 )
|
||||
ecm_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user