summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-09-10 02:15:14 +0000
committerSam James <sam@gentoo.org>2020-09-10 02:15:17 +0000
commit95eb535e5071dcef0e6174c4e2f5c39003c35543 (patch)
tree221f693b027bd1c50c0a0704315895190a0a2758 /dev-lang/ispc
parentdev-lang/ispc: cleanup old (diff)
downloadgentoo-95eb535e5071dcef0e6174c4e2f5c39003c35543.tar.gz
gentoo-95eb535e5071dcef0e6174c4e2f5c39003c35543.tar.bz2
gentoo-95eb535e5071dcef0e6174c4e2f5c39003c35543.zip
dev-lang/ispc: disable x86 build on amd64
The build system assumes we want an x86 (i686) build on amd64, even if we don't (not a multilib ebuild anyway, but this is a particular issue on non-multilib profiles). Bug: https://bugs.gentoo.org/730062 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/ispc')
-rw-r--r--dev-lang/ispc/ispc-1.14.1.ebuild12
-rw-r--r--dev-lang/ispc/ispc-9999.ebuild14
2 files changed, 25 insertions, 1 deletions
diff --git a/dev-lang/ispc/ispc-1.14.1.ebuild b/dev-lang/ispc/ispc-1.14.1.ebuild
index 0bd27f696f53..0fe93ece37e0 100644
--- a/dev-lang/ispc/ispc-1.14.1.ebuild
+++ b/dev-lang/ispc/ispc-1.14.1.ebuild
@@ -42,6 +42,18 @@ PATCHES=(
"${FILESDIR}/${PN}-1.13.0-werror.patch"
)
+src_prepare() {
+ if use amd64; then
+ # On amd64 systems, build system enables x86/i686 build too.
+ # This ebuild doesn't even have multilib support, nor need it.
+ # https://bugs.gentoo.org/730062
+ elog "Removing auto-x86 build on amd64"
+ sed -i -e 's:set(target_arch "i686"):return():' cmake/GenerateBuiltins.cmake || die
+ fi
+
+ cmake_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
"-DARM_ENABLED=$(usex arm)"
diff --git a/dev-lang/ispc/ispc-9999.ebuild b/dev-lang/ispc/ispc-9999.ebuild
index bba207d71c50..0fe93ece37e0 100644
--- a/dev-lang/ispc/ispc-9999.ebuild
+++ b/dev-lang/ispc/ispc-9999.ebuild
@@ -42,6 +42,18 @@ PATCHES=(
"${FILESDIR}/${PN}-1.13.0-werror.patch"
)
+src_prepare() {
+ if use amd64; then
+ # On amd64 systems, build system enables x86/i686 build too.
+ # This ebuild doesn't even have multilib support, nor need it.
+ # https://bugs.gentoo.org/730062
+ elog "Removing auto-x86 build on amd64"
+ sed -i -e 's:set(target_arch "i686"):return():' cmake/GenerateBuiltins.cmake || die
+ fi
+
+ cmake_src_prepare
+}
+
src_configure() {
local mycmakeargs=(
"-DARM_ENABLED=$(usex arm)"
@@ -63,5 +75,5 @@ src_install() {
src_test() {
# Inject path to prevent using system ispc
- PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing failed with ${EPYTHON}"
+ PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing failed under ${EPYTHON}"
}