commit:     47c0313dd95bf0284fd9eef981f742124f1d2d01
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 29 07:39:06 2018 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Fri Jun 29 07:39:16 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47c0313d

media-libs/x265: backport upstream patch to fix build error

Package-Manager: Portage-2.3.41, Repoman-2.3.9

 media-libs/x265/files/non_x86.patch | 20 ++++++++++++++++++++
 media-libs/x265/x265-2.8.ebuild     |  1 +
 2 files changed, 21 insertions(+)

diff --git a/media-libs/x265/files/non_x86.patch 
b/media-libs/x265/files/non_x86.patch
new file mode 100644
index 00000000000..3c7e389329a
--- /dev/null
+++ b/media-libs/x265/files/non_x86.patch
@@ -0,0 +1,20 @@
+# HG changeset patch
+# User Jayashree <[email protected]>
+# Date 1527224165 -19800
+#      Fri May 25 10:26:05 2018 +0530
+# Node ID 4504219210793536d921ee4e0b3058698c630bf4
+# Parent  cc2c5e46f3c87d27e3602af30b06ba6a0fbe2704
+Fix build error on on ppc64le
+
+diff -r cc2c5e46f3c8 -r 450421921079 source/common/param.cpp
+--- a/source/common/param.cpp  Mon May 21 18:42:29 2018 +0530
++++ b/source/common/param.cpp  Fri May 25 10:26:05 2018 +0530
+@@ -633,7 +633,7 @@
+         if (bValueWasNull)
+             p->cpuid = atobool(value);
+         else
+-            p->cpuid = parseCpuName(value, bError);
++            p->cpuid = parseCpuName(value, bError, false);
+ #endif
+     }
+     OPT("fps")

diff --git a/media-libs/x265/x265-2.8.ebuild b/media-libs/x265/x265-2.8.ebuild
index b7f4c3f2050..7f60a7f1134 100644
--- a/media-libs/x265/x265-2.8.ebuild
+++ b/media-libs/x265/x265-2.8.ebuild
@@ -31,6 +31,7 @@ PATCHES=(
        "${FILESDIR}/arm.patch"
        "${FILESDIR}/neon.patch"
        "${FILESDIR}/ppc64.patch"
+       "${FILESDIR}/non_x86.patch"
 )
 
 src_unpack() {

Reply via email to