summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-03-10 07:24:08 +0000
committerSam James <sam@gentoo.org>2023-03-10 07:24:56 +0000
commit65bbc208974e82689206465dd8c6c7b2beefe64b (patch)
tree48cc4b253bff83f495dd8f0bdeb9cf85f43cbc07
parentmedia-sound/guitarix: dropped obsolete 0.43.1 (diff)
downloadgentoo-65bbc208974e82689206465dd8c6c7b2beefe64b.tar.gz
gentoo-65bbc208974e82689206465dd8c6c7b2beefe64b.tar.bz2
gentoo-65bbc208974e82689206465dd8c6c7b2beefe64b.zip
sys-libs/glibc: backport perl/mtrace test fixes from 2.37 to 2.36
Closes: https://bugs.gentoo.org/895318 Closes: https://bugs.gentoo.org/900639 See: 805a7923d1d845587bd38ea90808e605fbc2f1d6 See: 8bc459b38f9cdfa980e7fc6257b95cf08dbd2973 Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--sys-libs/glibc/glibc-2.36-r6.ebuild5
-rw-r--r--sys-libs/glibc/glibc-2.36-r7.ebuild5
2 files changed, 8 insertions, 2 deletions
diff --git a/sys-libs/glibc/glibc-2.36-r6.ebuild b/sys-libs/glibc/glibc-2.36-r6.ebuild
index e86bbd923123..d2e3e438e4a2 100644
--- a/sys-libs/glibc/glibc-2.36-r6.ebuild
+++ b/sys-libs/glibc/glibc-2.36-r6.ebuild
@@ -111,6 +111,7 @@ BDEPEND="
sys-apps/grep
app-alternatives/awk
)
+ test? ( dev-lang/perl )
"
COMMON_DEPEND="
gd? ( media-libs/gd:2= )
@@ -119,6 +120,7 @@ COMMON_DEPEND="
caps? ( sys-libs/libcap )
) )
perl? ( dev-lang/perl )
+ test? ( dev-lang/perl )
suid? ( caps? ( sys-libs/libcap ) )
selinux? ( sys-libs/libselinux )
systemtap? ( dev-util/systemtap )
@@ -1015,7 +1017,8 @@ glibc_do_configure() {
# up a Perl from outside the prefix instead. configure will fail to
# execute Perl during configure if we're cross-compiling a prefix, but
# it will just disable mtrace in that case.
- ac_cv_path_PERL="$(usex perl "${EPREFIX}"/usr/bin/perl no)"
+ # Note: mtrace is needed by the test suite.
+ ac_cv_path_PERL="$(usex perl "${EPREFIX}"/usr/bin/perl $(usex test "${EPREFIX}"/usr/bin/perl no))"
# locale data is arch-independent
# https://bugs.gentoo.org/753740
diff --git a/sys-libs/glibc/glibc-2.36-r7.ebuild b/sys-libs/glibc/glibc-2.36-r7.ebuild
index 4d0fecf5932c..c0b4734c003a 100644
--- a/sys-libs/glibc/glibc-2.36-r7.ebuild
+++ b/sys-libs/glibc/glibc-2.36-r7.ebuild
@@ -111,6 +111,7 @@ BDEPEND="
sys-apps/grep
app-alternatives/awk
)
+ test? ( dev-lang/perl )
"
COMMON_DEPEND="
gd? ( media-libs/gd:2= )
@@ -119,6 +120,7 @@ COMMON_DEPEND="
caps? ( sys-libs/libcap )
) )
perl? ( dev-lang/perl )
+ test? ( dev-lang/perl )
suid? ( caps? ( sys-libs/libcap ) )
selinux? ( sys-libs/libselinux )
systemtap? ( dev-util/systemtap )
@@ -1018,7 +1020,8 @@ glibc_do_configure() {
# up a Perl from outside the prefix instead. configure will fail to
# execute Perl during configure if we're cross-compiling a prefix, but
# it will just disable mtrace in that case.
- ac_cv_path_PERL="$(usex perl "${EPREFIX}"/usr/bin/perl no)"
+ # Note: mtrace is needed by the test suite.
+ ac_cv_path_PERL="$(usex perl "${EPREFIX}"/usr/bin/perl $(usex test "${EPREFIX}"/usr/bin/perl no))"
# locale data is arch-independent
# https://bugs.gentoo.org/753740