summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-08-08 04:42:00 +0000
committerSam James <sam@gentoo.org>2020-08-08 04:42:08 +0000
commitc3b6a9195cdcad8e233e5f570114c8ff18f68327 (patch)
tree0aaccd4de186b706d8fb3ddb21c6f779588c2d11 /media-libs/libjpeg-turbo
parentwww-servers/apache: Stabilize 2.4.46 amd64, #736282 (diff)
downloadgentoo-c3b6a9195cdcad8e233e5f570114c8ff18f68327.tar.gz
gentoo-c3b6a9195cdcad8e233e5f570114c8ff18f68327.tar.bz2
gentoo-c3b6a9195cdcad8e233e5f570114c8ff18f68327.zip
media-libs/libjpeg-turbo: fix tests on ppc
Fix tests on PPC by applying upstream-recommended workaround (-DFLOATTEST=64bit). See https://github.com/libjpeg-turbo/libjpeg-turbo/issues/428 for details. Bug: https://bugs.gentoo.org/727010 Closes: https://bugs.gentoo.org/715406 Thanks-to: ernsteiswuerfel <erhard_f@mailbox.org> Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libjpeg-turbo')
-rw-r--r--media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4-r1.ebuild9
-rw-r--r--media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5.ebuild9
2 files changed, 18 insertions, 0 deletions
diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4-r1.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4-r1.ebuild
index c929f7d5bde..4a05e15dcda 100644
--- a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4-r1.ebuild
+++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.4-r1.ebuild
@@ -81,7 +81,16 @@ multilib_src_configure() {
-DWITH_JAVA="$(multilib_native_usex java)"
-DWITH_MEM_SRCDST=ON
)
+
[[ ${ABI} == "x32" ]] && mycmakeargs+=( -DREQUIRE_SIMD=OFF ) #420239
+
+ if use ppc ; then
+ # Workaround recommended by upstream:
+ # https://bugs.gentoo.org/715406#c9
+ # https://github.com/libjpeg-turbo/libjpeg-turbo/issues/428
+ mycmakeargs+=( -DFLOATTEST="64bit" )
+ fi
+
cmake_src_configure
}
diff --git a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5.ebuild b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5.ebuild
index 66f92e41232..c344f315c60 100644
--- a/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5.ebuild
+++ b/media-libs/libjpeg-turbo/libjpeg-turbo-2.0.5.ebuild
@@ -77,7 +77,16 @@ multilib_src_configure() {
-DWITH_JAVA="$(multilib_native_usex java)"
-DWITH_MEM_SRCDST=ON
)
+
[[ ${ABI} == "x32" ]] && mycmakeargs+=( -DREQUIRE_SIMD=OFF ) #420239
+
+ if use ppc ; then
+ # Workaround recommended by upstream:
+ # https://bugs.gentoo.org/715406#c9
+ # https://github.com/libjpeg-turbo/libjpeg-turbo/issues/428
+ mycmakeargs+=( -DFLOATTEST="64bit" )
+ fi
+
cmake_src_configure
}