From e98152105039b86d7ffeb652a91f27d2513132f7 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Wed, 14 Apr 2021 04:35:49 -0400 Subject: [PATCH] games-arcade/xscavenger: fix build with -native-symlinks wrt bug #739120 with clang/llvm toolchain, it now gets past ld/gcc missing but will fail due to traditional cpp. Can workaround with a gcc exception: IMAKECPP=cpp However will finally fail trivially due a lacking return value in non-void main() that clang doesn't like. Bug: https://bugs.gentoo.org/739120 Closes: https://bugs.gentoo.org/730814 Signed-off-by: Ionen Wolkens Signed-off-by: Joonas Niilola --- games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild b/games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild index 78c6be00a5a67..26f6aeae2f8d3 100644 --- a/games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild +++ b/games-arcade/xscavenger/xscavenger-1.4.4-r2.ebuild @@ -14,7 +14,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" -BDEPEND="x11-misc/imake" +BDEPEND=">=x11-misc/imake-1.0.8-r1" RDEPEND="x11-libs/libXext" DEPEND="${RDEPEND}" @@ -33,7 +33,8 @@ src_prepare() { } src_configure() { - xmkmf || die + CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \ + IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf || die } src_compile() {