commit:     763246f9f9c17c795b8a299e9d97347a81df9a28
Author:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Mon Oct 28 23:59:46 2019 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Oct 28 23:59:56 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=763246f9

sys-libs/binutils-libs: drop texinfo from DEPENDs, bug #622652

Don't crash the build if texinfo is not installed. It's a port
of a hack we have in sys-devel/binutils.

Reported-by: William Throwe
Closes: https://bugs.gentoo.org/622652
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-libs/binutils-libs/binutils-libs-2.32-r1.ebuild | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/sys-libs/binutils-libs/binutils-libs-2.32-r1.ebuild 
b/sys-libs/binutils-libs/binutils-libs-2.32-r1.ebuild
index 1d047890a61..193bdfdaded 100644
--- a/sys-libs/binutils-libs/binutils-libs-2.32-r1.ebuild
+++ b/sys-libs/binutils-libs/binutils-libs-2.32-r1.ebuild
@@ -25,7 +25,6 @@ KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc 
ppc64 ~riscv s390 sh sp
 
 COMMON_DEPEND="sys-libs/zlib[${MULTILIB_USEDEP}]"
 DEPEND="${COMMON_DEPEND}
-       >=sys-apps/texinfo-4.7
        nls? ( sys-devel/gettext )"
 # Need a newer binutils-config that'll reset include/lib symlinks for us.
 RDEPEND="${COMMON_DEPEND}
@@ -105,6 +104,12 @@ multilib_src_configure() {
 
        ECONF_SOURCE=${S} \
        econf "${myconf[@]}"
+
+       # Prevent makeinfo from running as we don't build docs here.
+       # bug #622652
+       sed -i \
+               -e '/^MAKEINFO/s:=.*:= true:' \
+               Makefile || die
 }
 
 multilib_src_install() {

Reply via email to