Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gcc-config/
Date: Fri, 01 Dec 2017 23:40:56
Message-Id: 1512171625.af80621b07f943bce5280a00468f2688c2df23b1.mgorny@gentoo
1 commit: af80621b07f943bce5280a00468f2688c2df23b1
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 1 13:52:51 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 1 23:40:25 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af80621b
7
8 sys-devel/gcc-config: Fix storing libdir & PV in installed executable
9
10 Fix the ebuild to pass libdir & PV during src_compile() rather than
11 delaying it until src_install(). This is necessary since the gcc-config
12 executable is created during the compile phase, and there is no reason
13 why make would recreate it during install. As a result, gcc-config
14 was installed with vanilla 'lib' libdir and 'git' version.
15
16 .../{gcc-config-1.9.0.ebuild => gcc-config-1.9.0-r1.ebuild} | 4 +++-
17 1 file changed, 3 insertions(+), 1 deletion(-)
18
19 diff --git a/sys-devel/gcc-config/gcc-config-1.9.0.ebuild b/sys-devel/gcc-config/gcc-config-1.9.0-r1.ebuild
20 similarity index 93%
21 rename from sys-devel/gcc-config/gcc-config-1.9.0.ebuild
22 rename to sys-devel/gcc-config/gcc-config-1.9.0-r1.ebuild
23 index f6b9422871d..b27cc3b5c41 100644
24 --- a/sys-devel/gcc-config/gcc-config-1.9.0.ebuild
25 +++ b/sys-devel/gcc-config/gcc-config-1.9.0-r1.ebuild
26 @@ -18,7 +18,9 @@ IUSE=""
27 RDEPEND=">=sys-apps/gentoo-functions-0.10"
28
29 src_compile() {
30 - emake CC="$(tc-getCC)"
31 + emake CC="$(tc-getCC)" \
32 + PV="${PV}" \
33 + SUBLIBDIR="$(get_libdir)"
34 }
35
36 src_install() {