summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-09-30 02:59:51 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-09-30 06:48:09 -0400
commitefcf37fd016d067e816fd73cf0953c06819f799f (patch)
tree3b4477b444f235a02af559c3a608fb63cc3a8ab0 /media-libs
parentmedia-gfx/xli: fix build with clang16 (diff)
downloadgentoo-efcf37fd016d067e816fd73cf0953c06819f799f.tar.gz
gentoo-efcf37fd016d067e816fd73cf0953c06819f799f.tar.bz2
gentoo-efcf37fd016d067e816fd73cf0953c06819f799f.zip
media-libs/nas: force gcc -E for imake's generation
Requires traditional cpp support and is broken in all sort of ways with clang-cpp / -E. Bit messier here because of multilib, hopefully this is right and doesn't affect other arches. If multilib support is ever removed, replace by ":-${CHOST}-gcc -E}" like other ebuilds. wrt #873619, this is still severely broken with >=clang16 Bug: https://bugs.gentoo.org/873619 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'media-libs')
-rw-r--r--media-libs/nas/nas-1.9.5.ebuild11
1 files changed, 7 insertions, 4 deletions
diff --git a/media-libs/nas/nas-1.9.5.ebuild b/media-libs/nas/nas-1.9.5.ebuild
index 5087f4f1231a..d7e197596b34 100644
--- a/media-libs/nas/nas-1.9.5.ebuild
+++ b/media-libs/nas/nas-1.9.5.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit multilib-minimal toolchain-funcs
+inherit multilib multilib-minimal toolchain-funcs
DESCRIPTION="Network Audio System"
HOMEPAGE="https://radscan.com/nas.html"
@@ -24,12 +24,14 @@ RDEPEND="
x11-libs/libXmu
x11-libs/libXpm
x11-libs/libXt[${MULTILIB_USEDEP}]"
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ x11-base/xorg-proto"
BDEPEND="
app-text/rman
sys-devel/bison
sys-devel/flex
- x11-base/xorg-proto
+ sys-devel/gcc
x11-misc/gccmakedep
riscv? ( x11-misc/xorg-cf-files )
>=x11-misc/imake-1.0.8-r1"
@@ -52,7 +54,8 @@ multilib_src_configure() {
econf
popd || die
CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
- IMAKECPP="${IMAKECPP:-$(tc-getCPP)}" xmkmf -a || die
+ IMAKECPP="${IMAKECPP:-$(get_abi_CHOST ${DEFAULT_ABI})-gcc $(get_abi_CFLAGS) -E}" \
+ xmkmf -a || die
}
multilib_src_compile() {