[opal] add patch to fix cflags on gcc5 build
Peter Robinson
pbrobinson at fedoraproject.org
Mon Mar 2 14:12:22 UTC 2015
commit 5d616948b4b247af73ff985678597a51bc938bcc
Author: Peter Robinson <pbrobinson at gmail.com>
Date: Mon Mar 2 14:12:07 2015 +0000
add patch to fix cflags on gcc5 build
opal-3.10-fix-cflags.patch | 39 +++++++++++++++++++++++++++++++++++++++
opal.spec | 2 ++
2 files changed, 41 insertions(+)
---
diff --git a/opal-3.10-fix-cflags.patch b/opal-3.10-fix-cflags.patch
new file mode 100644
index 0000000..2e0ba98
--- /dev/null
+++ b/opal-3.10-fix-cflags.patch
@@ -0,0 +1,39 @@
+--- opal-3.10.10/configure 2013-02-20 03:18:59.000000000 +0100
++++ opal-3.10.10/configure 2015-03-02 14:03:47.402134349 +0100
+@@ -6952,8 +6952,8 @@ fi
+
+ old_CFLAGS="$CFLAGS"
+ old_LIBS="$LIBS"
+- CFLAGS=
+- LIBS=
++# CFLAGS=
++# LIBS=
+
+ # The cast to long int works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
+--- opal-3.10.10/opal.m4 2013-02-20 03:18:59.000000000 +0100
++++ opal-3.10.10/opal.m4 2015-03-02 14:03:47.402134349 +0100
+@@ -575,8 +575,8 @@ AC_DEFUN([OPAL_SPEEX_TYPES],
+ [
+ old_CFLAGS="$CFLAGS"
+ old_LIBS="$LIBS"
+- CFLAGS=
+- LIBS=
++# CFLAGS=
++# LIBS=
+
+ AC_CHECK_SIZEOF(short)
+ AC_CHECK_SIZEOF(int)
+--- opal-3.10.10/plugins/configure 2013-02-20 03:18:10.000000000 +0100
++++ opal-3.10.10/plugins/configure 2015-03-02 14:08:07.894124027 +0100
+@@ -8637,8 +8637,8 @@ fi
+
+ old_CFLAGS="$CFLAGS"
+ old_LIBS="$LIBS"
+- CFLAGS=
+- LIBS=
++# CFLAGS=
++# LIBS=
+
+ # The cast to long int works around a bug in the HP C Compiler
+ # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
diff --git a/opal.spec b/opal.spec
index 9699c76..72f6724 100644
--- a/opal.spec
+++ b/opal.spec
@@ -12,6 +12,7 @@ Group: System Environment/Libraries
# rm -rf plugins/video/MPEG4-ffmpeg/
# Source0: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/3.10/%{name}-%{version}.tar.xz
Source0: %{name}-%{version}-clean.tar.xz
+Patch0: opal-3.10-fix-cflags.patch
BuildRequires: ptlib-devel = 2.10.10
BuildRequires: openldap-devel
@@ -40,6 +41,7 @@ header files for opal.
%prep
%setup -q
+%patch0 -p1 -b.cf
for file in dll so bin lib exe; do
find . -name "*.$file" -exec rm -f {} \; ;
More information about the scm-commits
mailing list