commit:     4d2dfbde8b72aac769827dc0cbbb415af86f8004
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sat May  6 22:28:31 2023 +0000
Commit:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sat May  6 22:28:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d2dfbde

sys-libs/glibc: Enable perl also for USE=doc

Closes: https://bugs.gentoo.org/904344
Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>

 sys-libs/glibc/glibc-2.37-r2.ebuild | 3 ++-
 sys-libs/glibc/glibc-9999.ebuild    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-libs/glibc/glibc-2.37-r2.ebuild 
b/sys-libs/glibc/glibc-2.37-r2.ebuild
index 6e9fa3dcb8b2..3b760ddcf5b3 100644
--- a/sys-libs/glibc/glibc-2.37-r2.ebuild
+++ b/sys-libs/glibc/glibc-2.37-r2.ebuild
@@ -131,6 +131,7 @@ DEPEND="${COMMON_DEPEND}
                sys-apps/grep
                app-alternatives/awk
        )
+       doc? ( dev-lang/perl )
        test? ( >=net-dns/libidn2-2.3.0 )
 "
 RDEPEND="${COMMON_DEPEND}
@@ -1032,7 +1033,7 @@ glibc_do_configure() {
                # execute Perl during configure if we're cross-compiling a 
prefix, but
                # it will just disable mtrace in that case.
                # 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))"
+               ac_cv_path_PERL="$(usex perl "${EPREFIX}"/usr/bin/perl $(usex 
test "${EPREFIX}"/usr/bin/perl $(usex doc "${EPREFIX}"/usr/bin/perl no)))"
 
                # locale data is arch-independent
                # https://bugs.gentoo.org/753740

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index 3a3b70d0d31b..e98524b6b6c8 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -136,6 +136,7 @@ DEPEND="${COMMON_DEPEND}
                sys-apps/grep
                app-alternatives/awk
        )
+       doc? ( dev-lang/perl )
        test? ( >=net-dns/libidn2-2.3.0 )
 "
 RDEPEND="${COMMON_DEPEND}
@@ -1035,7 +1036,7 @@ glibc_do_configure() {
                # execute Perl during configure if we're cross-compiling a 
prefix, but
                # it will just disable mtrace in that case.
                # 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))"
+               ac_cv_path_PERL="$(usex perl "${EPREFIX}"/usr/bin/perl $(usex 
test "${EPREFIX}"/usr/bin/perl $(usex doc "${EPREFIX}"/usr/bin/perl no)))"
 
                # locale data is arch-independent
                # https://bugs.gentoo.org/753740

Reply via email to