fix build on Power64

This commit is contained in:
Peter Robinson 2016-09-08 11:17:04 +01:00
parent 5a78bff3fc
commit 2eb579950e
2 changed files with 31 additions and 1 deletions

25
gst-1.9.2-fix-ppc.patch Normal file
View File

@ -0,0 +1,25 @@
From 0abb6e1a42332335c139a44b86054c0d8df2541f Mon Sep 17 00:00:00 2001
From: Wim Taymans <wtaymans@redhat.com>
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

View File

@ -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 <pbrobinson@fedoraproject.org> 1.9.2-3
- fix build on Power64
* Thu Sep 01 2016 Wim Taymans <wtaymans@redhat.com> - 1.9.2-2
- fix build on s390x