commit: 4a2215f694022a6705b614cf5173a931f8774699 Author: Johannes Huber <johu <AT> gmx <DOT> de> AuthorDate: Wed May 28 15:54:49 2025 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sat May 31 09:55:07 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a2215f6
x11-misc/xss-lock: fix build w/ cmake 4 Closes: https://bugs.gentoo.org/953544 Signed-off-by: Johannes Huber <johu <AT> gmx.de> Part-of: https://github.com/gentoo/gentoo/pull/42298 Closes: https://github.com/gentoo/gentoo/pull/42298 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> .../files/xss-lock-0.3.0_p20140302-cmake4.patch | 23 ++++++++++++++++++++++ .../xss-lock/xss-lock-0.3.0_p20140302-r2.ebuild | 4 +++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/x11-misc/xss-lock/files/xss-lock-0.3.0_p20140302-cmake4.patch b/x11-misc/xss-lock/files/xss-lock-0.3.0_p20140302-cmake4.patch new file mode 100644 index 000000000000..2cfbae1a77cd --- /dev/null +++ b/x11-misc/xss-lock/files/xss-lock-0.3.0_p20140302-cmake4.patch @@ -0,0 +1,23 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b1e96a4..9c6bcf0 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-cmake_minimum_required(VERSION 2.8) ++cmake_minimum_required(VERSION 3.10) + project(xss-lock C) + set(PROJECT_VERSION 0.3.0) + +diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt +index c7036ec..e575ba6 100644 +--- a/src/CMakeLists.txt ++++ b/src/CMakeLists.txt +@@ -22,8 +22,6 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}) + add_executable(xss-lock + xss-lock.c + xcb_utils.c +- xcb_utils.h +- config.h + ) + + target_link_libraries(xss-lock ${GLIB2_LIBRARIES} ${XCB_LIBRARIES}) diff --git a/x11-misc/xss-lock/xss-lock-0.3.0_p20140302-r2.ebuild b/x11-misc/xss-lock/xss-lock-0.3.0_p20140302-r2.ebuild index a8dc3542b071..958495612993 100644 --- a/x11-misc/xss-lock/xss-lock-0.3.0_p20140302-r2.ebuild +++ b/x11-misc/xss-lock/xss-lock-0.3.0_p20140302-r2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -21,6 +21,8 @@ RDEPEND="dev-libs/glib:2 DEPEND="${RDEPEND}" BDEPEND="man? ( dev-python/docutils )" +PATCHES=( "${FILESDIR}"/${P}-cmake4.patch ) + src_install() { cmake_src_install
