1 |
commit: 73388d195c967accd3e9e7330a546bd9a81401da |
2 |
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Aug 7 18:44:36 2019 +0000 |
4 |
Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Aug 7 18:49:03 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73388d19 |
7 |
|
8 |
media-libs/libvpx: add ppc64le patch for 1.8.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/688138 |
11 |
Acked-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
13 |
Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> |
14 |
|
15 |
.../files/libvpx-1.8.0-ppc64le-disable-vsx.patch | 28 ++++++++++++++++++++++ |
16 |
media-libs/libvpx/libvpx-1.8.0-r1.ebuild | 1 + |
17 |
media-libs/libvpx/libvpx-1.8.0.ebuild | 1 + |
18 |
3 files changed, 30 insertions(+) |
19 |
|
20 |
diff --git a/media-libs/libvpx/files/libvpx-1.8.0-ppc64le-disable-vsx.patch b/media-libs/libvpx/files/libvpx-1.8.0-ppc64le-disable-vsx.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..5c6a36ca867 |
23 |
--- /dev/null |
24 |
+++ b/media-libs/libvpx/files/libvpx-1.8.0-ppc64le-disable-vsx.patch |
25 |
@@ -0,0 +1,28 @@ |
26 |
+From 7bf48f92e884fc01c28a4652ea0883b28744519d Mon Sep 17 00:00:00 2001 |
27 |
+From: Johann <johannkoenig@××××××.com> |
28 |
+Date: Mon, 10 Jun 2019 14:35:03 -0700 |
29 |
+Subject: [PATCH] ppc: disable vsx optimizations with hbd |
30 |
+ |
31 |
+vsx optimizations do not support 32 bit tran_low_t values. |
32 |
+ |
33 |
+BUG=webm:1563 |
34 |
+ |
35 |
+Change-Id: I9e6348078f6e4855acfd381133eb840a435b7f81 |
36 |
+--- |
37 |
+ |
38 |
+diff --git a/build/make/configure.sh b/build/make/configure.sh |
39 |
+index e950353..4a874f1 100644 |
40 |
+--- a/build/make/configure.sh |
41 |
++++ b/build/make/configure.sh |
42 |
+@@ -1239,7 +1239,10 @@ |
43 |
+ ppc64le*) |
44 |
+ link_with_cc=gcc |
45 |
+ setup_gnu_toolchain |
46 |
+- check_gcc_machine_option "vsx" |
47 |
++ # Only enable vsx optimizations when vp9_highbitdepth is not enabled. |
48 |
++ # https://bugs.chromium.org/p/webm/issues/detail?id=1538 |
49 |
++ enabled vp9_highbitdepth || check_gcc_machine_option "vsx" |
50 |
++ enabled vsx || RTCD_OPTIONS="${RTCD_OPTIONS}--disable-vsx " |
51 |
+ if [ -n "${tune_cpu}" ]; then |
52 |
+ case ${tune_cpu} in |
53 |
+ power?) |
54 |
|
55 |
diff --git a/media-libs/libvpx/libvpx-1.8.0-r1.ebuild b/media-libs/libvpx/libvpx-1.8.0-r1.ebuild |
56 |
index b75c00c5ca4..c45449b70d2 100644 |
57 |
--- a/media-libs/libvpx/libvpx-1.8.0-r1.ebuild |
58 |
+++ b/media-libs/libvpx/libvpx-1.8.0-r1.ebuild |
59 |
@@ -42,6 +42,7 @@ DEPEND="abi_x86_32? ( dev-lang/yasm ) |
60 |
|
61 |
PATCHES=( |
62 |
"${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
63 |
+ "${FILESDIR}/libvpx-1.8.0-ppc64le-disable-vsx.patch" #688138 |
64 |
) |
65 |
|
66 |
src_configure() { |
67 |
|
68 |
diff --git a/media-libs/libvpx/libvpx-1.8.0.ebuild b/media-libs/libvpx/libvpx-1.8.0.ebuild |
69 |
index 73214ce5133..cc1164e1ea8 100644 |
70 |
--- a/media-libs/libvpx/libvpx-1.8.0.ebuild |
71 |
+++ b/media-libs/libvpx/libvpx-1.8.0.ebuild |
72 |
@@ -46,6 +46,7 @@ DEPEND="abi_x86_32? ( dev-lang/yasm ) |
73 |
|
74 |
PATCHES=( |
75 |
"${FILESDIR}/libvpx-1.3.0-sparc-configure.patch" # 501010 |
76 |
+ "${FILESDIR}/libvpx-1.8.0-ppc64le-disable-vsx.patch" #688138 |
77 |
) |
78 |
|
79 |
src_configure() { |