commit:     7daa625323da23a6972311c35ffeb0cd792e1a9b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 31 10:02:23 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Dec 31 10:02:23 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7daa6253

dev-lang/ispc: Restore the hack to disable multilib

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-lang/ispc/ispc-1.22.0.ebuild | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/dev-lang/ispc/ispc-1.22.0.ebuild b/dev-lang/ispc/ispc-1.22.0.ebuild
index 60ee837fac5f..fb2b1f2ba1d3 100644
--- a/dev-lang/ispc/ispc-1.22.0.ebuild
+++ b/dev-lang/ispc/ispc-1.22.0.ebuild
@@ -41,6 +41,18 @@ pkg_setup() {
        python-any-r1_pkg_setup
 }
 
+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
+               ewarn "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)

Reply via email to