Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 746173 - media-libs/libvpx-1.9.0 fails tests on ppc64 (big-endian)
Summary: media-libs/libvpx-1.9.0 fails tests on ppc64 (big-endian)
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: media-video herd
Depends on:
Reported: 2020-10-02 17:42 UTC by Georgy Yakovlev
Modified: 2020-10-02 18:06 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Georgy Yakovlev gentoo-dev 2020-10-02 17:42:19 UTC
fails a lot of tests.

looks like we need to --force-target=generic-gnu on ppc64be (but not le) as well.

I have this diff in mind, currently testing

diff --git a/media-libs/libvpx/libvpx-1.9.0.ebuild b/media-libs/libvpx/libvpx-1.9.0.ebuild
index 7505ae66f662..d9102183b6b1 100644
--- a/media-libs/libvpx/libvpx-1.9.0.ebuild
+++ b/media-libs/libvpx/libvpx-1.9.0.ebuild
@@ -81,11 +81,11 @@ multilib_src_configure() {
        case "${CHOST}" in
                i?86*) export AS=yasm;;
                x86_64*) export AS=yasm;;
+               # powerpc toolchain is not recognized anymore, #694368
+               # apply same workaround for ppc64, but not for ppc64le
+               powerpc-*|powerpc64-*) myconfargs+=( --force-target=generic-gnu );;

-       # powerpc toolchain is not recognized anymore, #694368
-       [[ ${CHOST} == powerpc-* ]] && myconfargs+=( --force-target=generic-gnu )
        # Build with correct toolchain.
        tc-export CC CXX AR NM
        # Link with gcc by default, the build system should override this if needed.
Comment 1 Georgy Yakovlev gentoo-dev 2020-10-02 18:06:07 UTC
disregard the patch, build system already assumes generic-gnu target itself on powerpc64-*-gnu CHOST.