commit:     604a13c0513639cf788049506e7256df1279b85e
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Wed Jul  2 07:04:48 2025 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Wed Jul  2 07:05:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=604a13c0

net-libs/libhackrf: Fix build with cmake4

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

 .../{libhackrf-9999.ebuild => libhackrf-2024.02.1-r1.ebuild}      | 8 +++++++-
 net-libs/libhackrf/libhackrf-9999.ebuild                          | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/net-libs/libhackrf/libhackrf-9999.ebuild 
b/net-libs/libhackrf/libhackrf-2024.02.1-r1.ebuild
similarity index 85%
copy from net-libs/libhackrf/libhackrf-9999.ebuild
copy to net-libs/libhackrf/libhackrf-2024.02.1-r1.ebuild
index 34034a799963..c4f012b76a37 100644
--- a/net-libs/libhackrf/libhackrf-9999.ebuild
+++ b/net-libs/libhackrf/libhackrf-2024.02.1-r1.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
@@ -29,6 +29,12 @@ RDEPEND="${DEPEND}"
 # https://github.com/greatscottgadgets/hackrf/issues/1193
 PATCHES=( "${FILESDIR}/hackrf-disable-static-2022.09.1.patch" )
 
+# Fix build with cmake4 (see 
https://github.com/greatscottgadgets/hackrf/pull/1514)
+src_prepare() {
+       sed -i -e "s/2.8.12/3.8/" CMakeLists.txt || die
+       cmake_src_prepare
+}
+
 src_configure() {
        local mycmakeargs=(
                -DINSTALL_UDEV_RULES="$(usex udev)"

diff --git a/net-libs/libhackrf/libhackrf-9999.ebuild 
b/net-libs/libhackrf/libhackrf-9999.ebuild
index 34034a799963..c4f012b76a37 100644
--- a/net-libs/libhackrf/libhackrf-9999.ebuild
+++ b/net-libs/libhackrf/libhackrf-9999.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
@@ -29,6 +29,12 @@ RDEPEND="${DEPEND}"
 # https://github.com/greatscottgadgets/hackrf/issues/1193
 PATCHES=( "${FILESDIR}/hackrf-disable-static-2022.09.1.patch" )
 
+# Fix build with cmake4 (see 
https://github.com/greatscottgadgets/hackrf/pull/1514)
+src_prepare() {
+       sed -i -e "s/2.8.12/3.8/" CMakeLists.txt || die
+       cmake_src_prepare
+}
+
 src_configure() {
        local mycmakeargs=(
                -DINSTALL_UDEV_RULES="$(usex udev)"

Reply via email to