commit:     abbc4ee764485b39ca6e9861fc3f54b4c793a99b
Author:     Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 17 22:26:52 2017 +0000
Commit:     Andreas Hüttel <dilfridge <AT> gentoo <DOT> org>
CommitDate: Sun Dec 17 22:27:11 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abbc4ee7

sys-libs/glibc: Add useflag doc; controlls installation of manual and 
dependency on texinfo, bug 616190

Closes: https://bugs.gentoo.org/616190
Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sys-libs/glibc/glibc-2.26-r3.ebuild | 11 +++++++++--
 sys-libs/glibc/glibc-9999.ebuild    | 11 +++++++++--
 2 files changed, 18 insertions(+), 4 deletions(-)

diff --git a/sys-libs/glibc/glibc-2.26-r3.ebuild 
b/sys-libs/glibc/glibc-2.26-r3.ebuild
index 88a9cd4b5b3..ceb5b684685 100644
--- a/sys-libs/glibc/glibc-2.26-r3.ebuild
+++ b/sys-libs/glibc/glibc-2.26-r3.ebuild
@@ -32,7 +32,7 @@ PATCH_VER=4
 SRC_URI+=" 
https://dev.gentoo.org/~dilfridge/distfiles/${P}-patches-${PATCH_VER}.tar.bz2";
 SRC_URI+=" multilib? ( 
https://dev.gentoo.org/~dilfridge/distfiles/gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2
 )"
 
-IUSE="audit caps debug gd hardened multilib nscd selinux systemtap profile 
suid vanilla crosscompile_opts_headers-only"
+IUSE="audit caps debug doc gd hardened multilib nscd selinux systemtap profile 
suid vanilla crosscompile_opts_headers-only"
 
 # Min kernel version glibc requires
 : ${NPTL_KERN_VER:="3.2.0"}
@@ -80,6 +80,7 @@ DEPEND="${COMMON_DEPEND}
        >=app-misc/pax-utils-0.1.10
        !<sys-apps/sandbox-1.6
        !<sys-apps/portage-2.1.2
+       doc? ( sys-apps/texinfo )
 "
 RDEPEND="${COMMON_DEPEND}
        !sys-kernel/ps3-sources
@@ -286,8 +287,14 @@ glibc_do_configure() {
 
        einfo "Configuring glibc for $1"
 
+       if use doc ; then
+               export MAKEINFO=makeinfo
+       else
+               export MAKEINFO=/dev/null
+       fi
+
        local v
-       for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD 
{AS,C,CPP,CXX,LD}FLAGS ; do
+       for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD 
{AS,C,CPP,CXX,LD}FLAGS MAKEINFO ; do
                einfo " $(printf '%15s' ${v}:)   ${!v}"
        done
 

diff --git a/sys-libs/glibc/glibc-9999.ebuild b/sys-libs/glibc/glibc-9999.ebuild
index a3b427221e2..68d17a22469 100644
--- a/sys-libs/glibc/glibc-9999.ebuild
+++ b/sys-libs/glibc/glibc-9999.ebuild
@@ -33,7 +33,7 @@ PATCH_VER="3"
 SRC_URI+=" 
https://dev.gentoo.org/~dilfridge/distfiles/${P}-patches-${PATCH_VER}.tar.bz2";
 SRC_URI+=" multilib? ( 
https://dev.gentoo.org/~dilfridge/distfiles/gcc-${GCC_BOOTSTRAP_VER}-multilib-bootstrap.tar.bz2
 )"
 
-IUSE="audit caps compile-locales debug gd hardened multilib nscd selinux 
systemtap profile suid vanilla crosscompile_opts_headers-only"
+IUSE="audit caps compile-locales debug doc gd hardened multilib nscd selinux 
systemtap profile suid vanilla crosscompile_opts_headers-only"
 
 # Min kernel version glibc requires
 : ${NPTL_KERN_VER:="3.2.0"}
@@ -85,6 +85,7 @@ DEPEND="${COMMON_DEPEND}
        >=app-misc/pax-utils-0.1.10
        !<sys-apps/sandbox-1.6
        !<sys-apps/portage-2.1.2
+       doc? ( sys-apps/texinfo )
 "
 RDEPEND="${COMMON_DEPEND}
        !sys-kernel/ps3-sources
@@ -298,8 +299,14 @@ glibc_do_configure() {
 
        einfo "Configuring glibc for nptl"
 
+       if use doc ; then
+               export MAKEINFO=makeinfo
+       else
+               export MAKEINFO=/dev/null
+       fi
+
        local v
-       for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD 
{AS,C,CPP,CXX,LD}FLAGS ; do
+       for v in ABI CBUILD CHOST CTARGET CBUILD_OPT CTARGET_OPT CC CXX LD 
{AS,C,CPP,CXX,LD}FLAGS MAKEINFO ; do
                einfo " $(printf '%15s' ${v}:)   ${!v}"
        done
 

Reply via email to