From 2eb579950e0ed4e5bf8d0119c19fe0d9e57e7819 Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Thu, 8 Sep 2016 11:17:04 +0100 Subject: [PATCH] fix build on Power64 --- gst-1.9.2-fix-ppc.patch | 25 +++++++++++++++++++++++++ gstreamer1.spec | 7 ++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 gst-1.9.2-fix-ppc.patch diff --git a/gst-1.9.2-fix-ppc.patch b/gst-1.9.2-fix-ppc.patch new file mode 100644 index 0000000..4fe22ca --- /dev/null +++ b/gst-1.9.2-fix-ppc.patch @@ -0,0 +1,25 @@ +From 0abb6e1a42332335c139a44b86054c0d8df2541f Mon Sep 17 00:00:00 2001 +From: Wim Taymans +Date: Mon, 5 Sep 2016 09:50:17 +0200 +Subject: config: newer gcc doesn't know __ppc__ and __ppc64__ anymore + +__ppc__ and __ppc64__ are non-standard defines, we should use +__powerpc__ and __powerpc64__ instead because newer gcc doesn't know +them anymore. + +diff --git a/gst/gstconfig.h.in b/gst/gstconfig.h.in +index 07c9114..25b50f2 100644 +--- a/gst/gstconfig.h.in ++++ b/gst/gstconfig.h.in +@@ -106,7 +106,7 @@ + */ + #if defined(__alpha__) || defined(__arm__) || defined(__aarch64__) || defined(__bfin) || defined(__hppa__) || defined(__mips__) || defined(__sh__) || defined(__sparc__) || defined(__sparc) || defined(__ia64__) || defined(_M_ALPHA) || defined(_M_ARM) || defined(_M_IA64) + # define GST_HAVE_UNALIGNED_ACCESS 0 +-#elif defined(__i386__) || defined(__i386) || defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__) || defined(__m68k__) || defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || defined(__s390__) || defined(__zarch__) ++#elif defined(__i386__) || defined(__i386) || defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__) || defined(__powerpc__) || defined(__powerpc64__) || defined(__m68k__) || defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || defined(__s390__) || defined(__zarch__) + # define GST_HAVE_UNALIGNED_ACCESS 1 + #else + # error "Could not detect architecture; don't know whether it supports unaligned access! Please file a bug." +-- +cgit v0.10.2 + diff --git a/gstreamer1.spec b/gstreamer1.spec index b6bcc74..2bc855b 100644 --- a/gstreamer1.spec +++ b/gstreamer1.spec @@ -10,7 +10,7 @@ Name: gstreamer1 Version: 1.9.2 -Release: 2%{?gitcommit:.git%{shortcommit}}%{?dist} +Release: 3%{?gitcommit:.git%{shortcommit}}%{?dist} Summary: GStreamer streaming media framework runtime License: LGPLv2+ @@ -25,6 +25,7 @@ Source0: http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{versi ## For GStreamer RPM provides Patch0: gstreamer-inspect-rpm-format.patch Patch1: 0001-config-support-System-z.patch +Patch2: gst-1.9.2-fix-ppc.patch Source1: gstreamer1.prov Source2: gstreamer1.attr @@ -94,6 +95,7 @@ GStreamer streaming media framework. %setup -q -n gstreamer-%{version} %patch0 -p1 -b .rpm-provides %patch1 -p1 -b .patch1 +%patch2 -p1 -b .ppc %build @@ -216,6 +218,9 @@ install -m0644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/gstreamer %changelog +* Thu Sep 8 2016 Peter Robinson 1.9.2-3 +- fix build on Power64 + * Thu Sep 01 2016 Wim Taymans - 1.9.2-2 - fix build on s390x