sys-devel/gcc-config: Fix storing libdir & PV in installed executable
authorMichał Górny <mgorny@gentoo.org>
Fri, 1 Dec 2017 13:52:51 +0000 (14:52 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 1 Dec 2017 23:40:25 +0000 (00:40 +0100)
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.

sys-devel/gcc-config/gcc-config-1.9.0-r1.ebuild [moved from sys-devel/gcc-config/gcc-config-1.9.0.ebuild with 93% similarity]

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 f6b9422871d95ce87c87f3d5c4d68b869d6f7dce..b27cc3b5c4191f169112c085172be95d492fbc5b 100644 (file)
@@ -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() {