commit:     4d7cf0eeaf5bb2224ea449e63f6cfa15cf8a7126
Author:     jinqiang zhang <peeweep <AT> 0x0 <DOT> ee>
AuthorDate: Wed May  3 09:34:02 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed May  3 09:40:00 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4d7cf0ee

sci-libs/gklib: fix no x86 arches compile

Closes: https://bugs.gentoo.org/905642
Signed-off-by: jinqiang zhang <peeweep <AT> 0x0.ee>
Closes: https://github.com/gentoo/gentoo/pull/30853
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-libs/gklib/gklib-5.1.1_p20230327-r1.ebuild | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/sci-libs/gklib/gklib-5.1.1_p20230327-r1.ebuild 
b/sci-libs/gklib/gklib-5.1.1_p20230327-r1.ebuild
index fb97bbd3e2ac..e12efc7216ba 100644
--- a/sci-libs/gklib/gklib-5.1.1_p20230327-r1.ebuild
+++ b/sci-libs/gklib/gklib-5.1.1_p20230327-r1.ebuild
@@ -20,3 +20,13 @@ PATCHES=(
        "${FILESDIR}/${P}-multilib.patch"
        "${FILESDIR}/${P}-respect-user-flags.patch"
 )
+
+src_configure() {
+       local mycmakeargs=()
+       if ! use amd64 && ! use x86; then # bug 905642
+               mycmakeargs+=(
+                       -DNO_X86=ON
+               )
+       fi
+       cmake_src_configure
+}

Reply via email to