Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/ispc/
Date: Thu, 10 Sep 2020 02:16:20
Message-Id: 1599704117.95eb535e5071dcef0e6174c4e2f5c39003c35543.sam@gentoo
1 commit: 95eb535e5071dcef0e6174c4e2f5c39003c35543
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 10 02:15:14 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 10 02:15:17 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95eb535e
7
8 dev-lang/ispc: disable x86 build on amd64
9
10 The build system assumes we want an x86 (i686)
11 build on amd64, even if we don't (not a multilib
12 ebuild anyway, but this is a particular issue
13 on non-multilib profiles).
14
15 Bug: https://bugs.gentoo.org/730062
16 Package-Manager: Portage-3.0.4, Repoman-3.0.1
17 Signed-off-by: Sam James <sam <AT> gentoo.org>
18
19 dev-lang/ispc/ispc-1.14.1.ebuild | 12 ++++++++++++
20 dev-lang/ispc/ispc-9999.ebuild | 14 +++++++++++++-
21 2 files changed, 25 insertions(+), 1 deletion(-)
22
23 diff --git a/dev-lang/ispc/ispc-1.14.1.ebuild b/dev-lang/ispc/ispc-1.14.1.ebuild
24 index 0bd27f696f5..0fe93ece37e 100644
25 --- a/dev-lang/ispc/ispc-1.14.1.ebuild
26 +++ b/dev-lang/ispc/ispc-1.14.1.ebuild
27 @@ -42,6 +42,18 @@ PATCHES=(
28 "${FILESDIR}/${PN}-1.13.0-werror.patch"
29 )
30
31 +src_prepare() {
32 + if use amd64; then
33 + # On amd64 systems, build system enables x86/i686 build too.
34 + # This ebuild doesn't even have multilib support, nor need it.
35 + # https://bugs.gentoo.org/730062
36 + elog "Removing auto-x86 build on amd64"
37 + sed -i -e 's:set(target_arch "i686"):return():' cmake/GenerateBuiltins.cmake || die
38 + fi
39 +
40 + cmake_src_prepare
41 +}
42 +
43 src_configure() {
44 local mycmakeargs=(
45 "-DARM_ENABLED=$(usex arm)"
46
47 diff --git a/dev-lang/ispc/ispc-9999.ebuild b/dev-lang/ispc/ispc-9999.ebuild
48 index bba207d71c5..0fe93ece37e 100644
49 --- a/dev-lang/ispc/ispc-9999.ebuild
50 +++ b/dev-lang/ispc/ispc-9999.ebuild
51 @@ -42,6 +42,18 @@ PATCHES=(
52 "${FILESDIR}/${PN}-1.13.0-werror.patch"
53 )
54
55 +src_prepare() {
56 + if use amd64; then
57 + # On amd64 systems, build system enables x86/i686 build too.
58 + # This ebuild doesn't even have multilib support, nor need it.
59 + # https://bugs.gentoo.org/730062
60 + elog "Removing auto-x86 build on amd64"
61 + sed -i -e 's:set(target_arch "i686"):return():' cmake/GenerateBuiltins.cmake || die
62 + fi
63 +
64 + cmake_src_prepare
65 +}
66 +
67 src_configure() {
68 local mycmakeargs=(
69 "-DARM_ENABLED=$(usex arm)"
70 @@ -63,5 +75,5 @@ src_install() {
71
72 src_test() {
73 # Inject path to prevent using system ispc
74 - PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing failed with ${EPYTHON}"
75 + PATH="${BUILD_DIR}/bin:${PATH}" ${EPYTHON} run_tests.py || die "Testing failed under ${EPYTHON}"
76 }