mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
lxqt-base/lxqt-powermanagement: backport CMake 'findxcb' fix
Going straight to stable, as r0 is currently broken at configure time with Qt 6.9.1 that got stabilised as well. Closes: https://bugs.gentoo.org/959285 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org>
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
- https://bugs.gentoo.org/959285
|
||||
- https://github.com/lxqt/lxqt-powermanagement/commit/067d2260049
|
||||
|
||||
From 067d2260049fb5edef87a5716feaefb610b11248 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Lu=C3=ADs=20Pereira?= <luis.artur.pereira@gmail.com>
|
||||
Date: Thu, 17 Apr 2025 18:13:17 +0100
|
||||
Subject: [PATCH] Use Qt provided FindXCB module
|
||||
|
||||
---
|
||||
CMakeLists.txt | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index d4f38ce..111aca7 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -29,7 +29,7 @@ find_package(KF6IdleTime ${KF6_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(KF6Solid ${KF6_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(lxqt ${LXQT_MINIMUM_VERSION} REQUIRED)
|
||||
find_package(lxqt-globalkeys-ui ${LXQT_GLOBALKEYS_MINIMUM_VERSION} REQUIRED)
|
||||
-find_package(XCB REQUIRED COMPONENTS xcb-dpms xcb-screensaver)
|
||||
+find_package(XCB REQUIRED COMPONENTS DPMS SCREENSAVER)
|
||||
|
||||
message(STATUS "Building with Qt${Qt6Core_VERSION}")
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake xdg
|
||||
|
||||
DESCRIPTION="LXQt daemon for power management and auto-suspend"
|
||||
HOMEPAGE="https://lxqt-project.org/"
|
||||
|
||||
MY_PV="$(ver_cut 1-2)"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/lxqt/${PN}.git"
|
||||
else
|
||||
SRC_URI="https://github.com/lxqt/${PN}/releases/download/${PV}/${P}.tar.xz"
|
||||
KEYWORDS="amd64 arm64 ~ppc64 ~riscv ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="LGPL-2.1 LGPL-2.1+"
|
||||
SLOT="0"
|
||||
|
||||
BDEPEND="
|
||||
>=dev-qt/qttools-6.6:6[linguist]
|
||||
>=dev-util/lxqt-build-tools-2.2.0
|
||||
virtual/pkgconfig
|
||||
"
|
||||
DEPEND="
|
||||
>=dev-libs/libqtxdg-4.2.0
|
||||
>=dev-qt/qtbase-6.6:6[dbus,gui,widgets]
|
||||
>=dev-qt/qtsvg-6.6:6
|
||||
kde-frameworks/kwindowsystem:6
|
||||
kde-frameworks/kidletime:6
|
||||
kde-frameworks/solid:6
|
||||
=lxqt-base/liblxqt-${MY_PV}*:=
|
||||
=lxqt-base/lxqt-globalkeys-${MY_PV}*
|
||||
sys-power/upower
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
PATCHES=(
|
||||
# https://bugs.gentoo.org/959285
|
||||
"${FILESDIR}/${PN}-2.2.0-use-qt-findxcb.patch"
|
||||
)
|
||||
Reference in New Issue
Block a user