commit: 8f885be9dfd96f7c102fa059b6d160548f4c54f3
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 3 09:39:10 2019 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Nov 3 09:39:10 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f885be9
app-arch/xar-1.8-r3: fix compile during install
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
app-arch/xar/xar-1.8-r3.ebuild | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/app-arch/xar/xar-1.8-r3.ebuild b/app-arch/xar/xar-1.8-r3.ebuild
index 17416980f25..2b1ae6a93b9 100644
--- a/app-arch/xar/xar-1.8-r3.ebuild
+++ b/app-arch/xar/xar-1.8-r3.ebuild
@@ -45,6 +45,12 @@ src_prepare() {
# strip RPATH pointing to ED
cd "${S}"/src || die
sed -i -e 's/@RPATH@//' Makefile.inc.in || die
+
+ # avoid GNU make (bug?) behaviour of removing xar.o as intermediate
+ # file, this doesn't happen outside portage, but it does from the
+ # ebuild env, causing the install phase to re-compile xar.o and link
+ # the executable
+ echo ".PRECIOUS: @objroot@src/%.o" >> Makefile.inc.in || die
}
multilib_src_configure() {