sys-devel/binutils: fix *.mo file collision in live ebuild, bug #641036
authorSergei Trofimovich <slyfox@gentoo.org>
Mon, 8 Jan 2018 22:21:53 +0000 (22:21 +0000)
committerSergei Trofimovich <slyfox@gentoo.org>
Mon, 8 Jan 2018 22:22:00 +0000 (22:22 +0000)
Upstream commit ca39c2f4dd0fedcaaee348be7a913f0c14876796
(https://sourceware.org/git/?p=binutils-gdb.git;a=commitdiff;h=ca39c2f4dd0fedcaaee348be7a913f0c14876796)
added support for overriding datarootdir without need for sed hack we had.

It broke our hack but we can remove it completely and use
--datarootdir= instead.

Thanks to Manuel Lauss!

Fixed-by: Manuel Lauss
Closes: https://bugs.gentoo.org/641036
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sys-devel/binutils/binutils-9999.ebuild

index 3c7b8b3b06a122033e51c16afa6b0eef13d26f3c..16b853f51c7e4776f799b75ff822d28b81e3313c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -124,12 +124,6 @@ src_prepare() {
                sed -i 's:\<getline\>:get_line:g' libiberty/testsuite/test-demangle.c
        fi
 
-       # Fix po Makefile generators
-       sed -i \
-               -e '/^datadir = /s:$(prefix)/@DATADIRNAME@:@datadir@:' \
-               -e '/^gnulocaledir = /s:$(prefix)/share:$(datadir):' \
-               */po/Make-in || die "sed po's failed"
-
        # Apply things from PATCHES and user dirs
        default
 
@@ -215,6 +209,7 @@ src_configure() {
                --host=${CHOST}
                --target=${CTARGET}
                --datadir="${EPREFIX}"${DATAPATH}
+               --datarootdir="${EPREFIX}"${DATAPATH}
                --infodir="${EPREFIX}"${DATAPATH}/info
                --mandir="${EPREFIX}"${DATAPATH}/man
                --bindir="${EPREFIX}"${BINPATH}