summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2023-05-07 00:28:31 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2023-05-07 00:28:31 +0200
commit4d2dfbde8b72aac769827dc0cbbb415af86f8004 (patch)
tree67a9a79fa219ddb9dede4a71b346cf6e83a1d162 /sys-libs/glibc
parentsys-libs/glibc: update EAPI 7 -> 8, cleanups, minor improvements (diff)
downloadgentoo-4d2dfbde8b72aac769827dc0cbbb415af86f8004.tar.gz
gentoo-4d2dfbde8b72aac769827dc0cbbb415af86f8004.tar.bz2
gentoo-4d2dfbde8b72aac769827dc0cbbb415af86f8004.zip
sys-libs/glibc: Enable perl also for USE=doc
Closes: https://bugs.gentoo.org/904344 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'sys-libs/glibc')
-rw-r--r--sys-libs/glibc/glibc-2.37-r2.ebuild3
-rw-r--r--sys-libs/glibc/glibc-9999.ebuild3
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