commit:     30c9b19ddf6cd39453bd0f8775f31dd8e6dfa2bd
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 14 10:46:10 2026 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Feb 14 10:46:10 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30c9b19d

net-analyzer/ike-scan: fix musl build

Closes: https://bugs.gentoo.org/836575
Closes: https://bugs.gentoo.org/945318
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../ike-scan/files/ike-scan-1.9.5-musl-getopt.patch        | 14 ++++++++++++++
 net-analyzer/ike-scan/ike-scan-1.9.5.ebuild                |  6 +++++-
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/net-analyzer/ike-scan/files/ike-scan-1.9.5-musl-getopt.patch 
b/net-analyzer/ike-scan/files/ike-scan-1.9.5-musl-getopt.patch
new file mode 100644
index 000000000000..84dbde003397
--- /dev/null
+++ b/net-analyzer/ike-scan/files/ike-scan-1.9.5-musl-getopt.patch
@@ -0,0 +1,14 @@
+Minor variations in getopt() output causing musl test failures.
+https://bugs.gentoo.org/836575
+
+--- a/check-error
++++ b/check-error
+@@ -119,7 +119,7 @@
+    echo "FAILED"
+    exit 1
+ fi
+-grep 'ike-scan: unrecognized option ' $TMPFILE >/dev/null
++grep 'ike-scan: unrecognized option' $TMPFILE >/dev/null
+ if test $? -ne 0; then
+    rm -f $TMPFILE
+    echo "FAILED"

diff --git a/net-analyzer/ike-scan/ike-scan-1.9.5.ebuild 
b/net-analyzer/ike-scan/ike-scan-1.9.5.ebuild
index da10ef3cd21b..53ff3d12d350 100644
--- a/net-analyzer/ike-scan/ike-scan-1.9.5.ebuild
+++ b/net-analyzer/ike-scan/ike-scan-1.9.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -20,6 +20,7 @@ RDEPEND="${DEPEND}"
 PATCHES=(
        "${FILESDIR}"/${PN}-1.9.5-clang-16.patch
        "${FILESDIR}"/${PN}-1.9.5-openssl-libdir.patch
+       "${FILESDIR}"/${PN}-1.9.5-musl-getopt.patch
 )
 
 src_prepare() {
@@ -36,6 +37,9 @@ src_prepare() {
 src_configure() {
        econf \
                $(use_with ssl openssl "${ESYSROOT}"/usr)
+
+       # bug 945318, remove bundled "getopt.h"
+       rm getopt.h || die
 }
 
 src_install() {

Reply via email to