[xrootd/epel7] Fix ppc compilation
Mattias Ellert
ellert at fedoraproject.org
Fri Nov 28 20:28:37 UTC 2014
commit 85473ffcd5deb503f6bb89a01b33b1e3e21532cb
Author: Mattias Ellert <mattias.ellert at fysast.uu.se>
Date: Fri Nov 28 21:27:42 2014 +0100
Fix ppc compilation
xrootd-signed-char.patch | 12 ++++++++++++
xrootd.spec | 2 ++
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/xrootd-signed-char.patch b/xrootd-signed-char.patch
new file mode 100644
index 0000000..1c5b81a
--- /dev/null
+++ b/xrootd-signed-char.patch
@@ -0,0 +1,12 @@
+diff --git a/src/Xrd/XrdConfig.hh b/src/Xrd/XrdConfig.hh
+index 1a381eb..e640fa6 100644
+--- a/src/Xrd/XrdConfig.hh
++++ b/src/Xrd/XrdConfig.hh
+@@ -117,6 +117,6 @@ int AdminMode;
+ int repInt;
+ char repOpts;
+ char ppNet;
+-char coreV;
++signed char coreV;
+ };
+ #endif
diff --git a/xrootd.spec b/xrootd.spec
index a2806e9..0476b40 100644
--- a/xrootd.spec
+++ b/xrootd.spec
@@ -16,6 +16,7 @@ Group: System Environment/Daemons
License: LGPLv3+
URL: http://xrootd.org/
Source0: http://xrootd.org/download/v%{version}/%{name}-%{version}.tar.gz
+Patch0: %{name}-signed-char.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake
@@ -206,6 +207,7 @@ This package contains the API documentation of the xrootd libraries.
%prep
%setup -q
+%patch0 -p1
%if %{?fedora}%{!?fedora:0} <= 9 && %{?rhel}%{!?rhel:0} <= 5
# Older versions of SELinux do not have policy for open
More information about the scm-commits
mailing list