commit:     8bc459b38f9cdfa980e7fc6257b95cf08dbd2973
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 26 21:57:01 2023 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Thu Jan 26 21:57:36 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bc459b3

sys-libs/glibc: Tests require mtrace and with that perl

Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sys-libs/glibc/glibc-9999.ebuild | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 33d217dc1787..76059f26c5dc 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.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 )
@@ -1016,6 +1018,7 @@ glibc_do_configure() {
                # 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)"
+               use test && ac_cv_path_PERL="${EPREFIX}/usr/bin/perl"
 
                # locale data is arch-independent
                # https://bugs.gentoo.org/753740

Reply via email to