commit:     ed391779702db6f0385d7fff2e595429bd27103b
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 12 08:41:29 2025 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Sat Jul 12 08:42:28 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed391779

net-wireless/libxtrxll: Fix build with CMake4

Closes: https://bugs.gentoo.org/951855
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 net-wireless/libxtrxll/files/libxtrxll-cmake4.patch         | 13 +++++++++++++
 ...0_p20201202.ebuild => libxtrxll-0.0_p20201202-r1.ebuild} |  6 ++++--
 net-wireless/libxtrxll/libxtrxll-9999.ebuild                |  6 ++++--
 3 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/net-wireless/libxtrxll/files/libxtrxll-cmake4.patch 
b/net-wireless/libxtrxll/files/libxtrxll-cmake4.patch
new file mode 100644
index 000000000000..a0316e9ca4a3
--- /dev/null
+++ b/net-wireless/libxtrxll/files/libxtrxll-cmake4.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 07a8ba1..d9021cb 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,7 +1,7 @@
++cmake_minimum_required(VERSION 3.10)
+ project(libxtrxll C)
+ 
+ set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
+-cmake_minimum_required(VERSION 2.8)
+ 
+ # Set the version information here
+ set(MAJOR_VERSION 0)

diff --git a/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild 
b/net-wireless/libxtrxll/libxtrxll-0.0_p20201202-r1.ebuild
similarity index 91%
rename from net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
rename to net-wireless/libxtrxll/libxtrxll-0.0_p20201202-r1.ebuild
index dbb429f7470d..39f1183fe7ad 100644
--- a/net-wireless/libxtrxll/libxtrxll-0.0_p20201202.ebuild
+++ b/net-wireless/libxtrxll/libxtrxll-0.0_p20201202-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit cmake flag-o-matic
 
@@ -25,6 +25,8 @@ IUSE="usb3380"
 RDEPEND="usb3380? ( net-wireless/libusb3380 )"
 DEPEND="${RDEPEND}"
 
+PATCHES=( "${FILESDIR}"/${PN}-cmake4.patch )
+
 src_configure() {
        # -Werror=strict-aliasing
        # https://bugs.gentoo.org/861932

diff --git a/net-wireless/libxtrxll/libxtrxll-9999.ebuild 
b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
index dbb429f7470d..39f1183fe7ad 100644
--- a/net-wireless/libxtrxll/libxtrxll-9999.ebuild
+++ b/net-wireless/libxtrxll/libxtrxll-9999.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=7
+EAPI=8
 
 inherit cmake flag-o-matic
 
@@ -25,6 +25,8 @@ IUSE="usb3380"
 RDEPEND="usb3380? ( net-wireless/libusb3380 )"
 DEPEND="${RDEPEND}"
 
+PATCHES=( "${FILESDIR}"/${PN}-cmake4.patch )
+
 src_configure() {
        # -Werror=strict-aliasing
        # https://bugs.gentoo.org/861932

Reply via email to