summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Othón Martínez Vera <cfuga@cfuga.mx>2025-07-21 13:43:14 -0600
committerSam James <sam@gentoo.org>2025-07-23 03:29:57 +0100
commit5fef5e045101a3dfa23e7274e5e231c9e3f768c5 (patch)
tree04e79aa24059f116e4071e49cf5dcac78183d411
parent6a34251e0d7b9c4fb01af062bd452ee5402095e9 (diff)
downloadgentoo-5fef5e045101a3dfa23e7274e5e231c9e3f768c5.tar.gz
gentoo-5fef5e045101a3dfa23e7274e5e231c9e3f768c5.tar.bz2
gentoo-5fef5e045101a3dfa23e7274e5e231c9e3f768c5.zip
dev-perl/Socket6: remove which command from configure and Makefile.PL
Closes: https://bugs.gentoo.org/954831 Signed-off-by: Cristian Othón Martínez Vera <cfuga@cfuga.mx> Part-of: https://github.com/gentoo/gentoo/pull/43103 Closes: https://github.com/gentoo/gentoo/pull/43103 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--dev-perl/Socket6/Socket6-0.290.0-r2.ebuild (renamed from dev-perl/Socket6/Socket6-0.290.0-r1.ebuild)8
-rw-r--r--dev-perl/Socket6/files/Socket6-0.290.0-which.patch23
2 files changed, 30 insertions, 1 deletions
diff --git a/dev-perl/Socket6/Socket6-0.290.0-r1.ebuild b/dev-perl/Socket6/Socket6-0.290.0-r2.ebuild
index b1cdfd4c7e2a..6a7af9c6dfd8 100644
--- a/dev-perl/Socket6/Socket6-0.290.0-r1.ebuild
+++ b/dev-perl/Socket6/Socket6-0.290.0-r2.ebuild
@@ -5,7 +5,7 @@ EAPI=8
DIST_AUTHOR=UMEMOTO
DIST_VERSION=0.29
-inherit perl-module toolchain-funcs
+inherit autotools perl-module toolchain-funcs
DESCRIPTION="IPv6 related part of the C socket.h defines and structure manipulators"
@@ -15,9 +15,15 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv
PATCHES=(
"${FILESDIR}"/${PN}-0.290.0-pointer-warning.patch
+ "${FILESDIR}"/${PN}-0.290.0-which.patch
)
src_unpack() {
default
tc-export CC
}
+
+src_prepare () {
+ default
+ eautoreconf
+}
diff --git a/dev-perl/Socket6/files/Socket6-0.290.0-which.patch b/dev-perl/Socket6/files/Socket6-0.290.0-which.patch
new file mode 100644
index 000000000000..495c0bb73d37
--- /dev/null
+++ b/dev-perl/Socket6/files/Socket6-0.290.0-which.patch
@@ -0,0 +1,23 @@
+Bug: https://bugs.gentoo.org/954831
+--- a/configure.in
++++ b/configure.in
+@@ -35,7 +35,7 @@
+ AC_PROG_CC
+
+ changequote(<<, >>)
+-default_perl_path=`which perl | sed -e 's/\/\/*[^\/]*$//'`
++default_perl_path=`command -v perl | sed -e 's/\/\/*[^\/]*$//'`
+ changequote([,])
+
+ AC_ARG_WITH(perl,[ --with-perl=path-to-perl],
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -34,7 +34,7 @@
+ configure_mswin32();
+ } else {
+ local $ENV{TMPDIR} = $ENV{TMPDIR};
+- my $path_perl = ($^X =~ m!^/!o) ? $^X : `which $^X`;
++ my $path_perl = ($^X =~ m!^/!o) ? $^X : `command -v $^X`;
+ my $cmd = "CC='$Config{cc}' CFLAGS='$Config{ccflags}'";
+ if ($^O eq 'android') {
+ # Work around a bug in Android's sh: