From: Michał Górny Date: Fri, 1 Dec 2017 13:52:51 +0000 (+0100) Subject: sys-devel/gcc-config: Fix storing libdir & PV in installed executable X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=af80621b07f943bce5280a00468f2688c2df23b1;p=gentoo.git sys-devel/gcc-config: Fix storing libdir & PV in installed executable Fix the ebuild to pass libdir & PV during src_compile() rather than delaying it until src_install(). This is necessary since the gcc-config executable is created during the compile phase, and there is no reason why make would recreate it during install. As a result, gcc-config was installed with vanilla 'lib' libdir and 'git' version. --- 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 similarity index 93% rename from sys-devel/gcc-config/gcc-config-1.9.0.ebuild rename to sys-devel/gcc-config/gcc-config-1.9.0-r1.ebuild index f6b9422871d9..b27cc3b5c419 100644 --- a/sys-devel/gcc-config/gcc-config-1.9.0.ebuild +++ b/sys-devel/gcc-config/gcc-config-1.9.0-r1.ebuild @@ -18,7 +18,9 @@ IUSE="" RDEPEND=">=sys-apps/gentoo-functions-0.10" src_compile() { - emake CC="$(tc-getCC)" + emake CC="$(tc-getCC)" \ + PV="${PV}" \ + SUBLIBDIR="$(get_libdir)" } src_install() {