The package rpms/legion.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/legion.git/commit/?id=7f4215f08ad....
Change:
-%ifnarch s390x
Thanks.
Full change:
============
commit 7f4215f08ade4ac1efc21598756e8a298dc8df58
Author: Christoph Junghans <junghans(a)lanl.gov>
Date: Fri Aug 4 11:12:34 2017 -0600
Added patch for s390x (bug #1477749), enable gasnet of s390x
diff --git a/legion.spec b/legion.spec
index 3556db8..75d7eac 100644
--- a/legion.spec
+++ b/legion.spec
@@ -1,18 +1,17 @@
Name: legion
Version: 17.05.0
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: A data-centric parallel programming system
License: ASL 2.0
Url:
http://legion.stanford.edu/
Source0:
https://github.com/StanfordLegion/legion/archive/%{name}-%{version}.tar.g...
+#patch for s390x (bug #1477749)
+Patch0: s390x.patch
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: hwloc-devel
-#no gasnet on s390x (bug #1453092)
-%ifnarch s390x
BuildRequires: gasnet-devel
-%endif
BuildRequires: %{?fedora:cmake >= 3.1}%{?rhel:cmake3 >= 3.1}
%description
@@ -28,7 +27,6 @@ data in the memory hierarchy and assignment of tasks to processors in a
way that
is orthogonal to correctness, thereby enabling easy porting and tuning of Legion
applications to new architectures.
-%ifnarch s390x
%package openmpi
Summary: Legion Open MPI binaries and libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
@@ -70,17 +68,14 @@ is orthogonal to correctness, thereby enabling easy porting and tuning
of Legion
applications to new architectures.
Legion compiled with MPICH, package incl. binaries and libraries
-%endif
%package devel
Summary: Development headers and libraries for %{name} library
Requires: %{name}%{?_isa} = %{version}-%{release}
-%ifnarch s390x
Requires: %{name}-openmpi%{?_isa} = %{version}
Requires: %{name}-mpich%{?_isa} = %{version}
Requires: mpich-devel
Requires: openmpi-devel
-%endif
%description devel
Legion is a data-centric parallel programming system for writing portable
@@ -99,6 +94,9 @@ This package contains development headers and libraries for the legion
library
%prep
%setup -q -n %{name}-%{name}-%{version}
+%ifnarch s390x
+%patch0 -p1
+%endif
%build
mkdir serial openmpi mpich
@@ -110,7 +108,6 @@ export LDFLAGS="%{__global_ldflags} -Wl,--as-needed"
%make_build
popd
-%ifnarch s390x
pushd openmpi
%{_openmpi_load}
export LDFLAGS="%{__global_ldflags} -Wl,--as-needed"
@@ -130,18 +127,15 @@ export LDFLAGS="%{__global_ldflags} -Wl,--as-needed"
%make_build
%{_mpich_unload}
popd
-%endif
%install
%make_install -C serial
-%ifnarch s390x
%{_openmpi_load}
%make_install -C openmpi
%{_openmpi_unload}
%{_mpich_load}
%make_install -C mpich
%{_mpich_unload}
-%endif
%check
#some tests are broken on ppc64
@@ -158,14 +152,12 @@ popd
%endif
make -C serial test %{testargs}
-%ifnarch s390x
%{_openmpi_load}
make -C openmpi test %{testargs}
%{_openmpi_unload}
%{_mpich_load}
make -C mpich test %{testargs}
%{_mpich_unload}
-%endif
#move cmake files in a place where cmake can find them
mkdir -p %{buildroot}%{_libdir}/cmake
@@ -191,7 +183,6 @@ mv %{buildroot}{%{_datadir}/Legion,%{_libdir}/cmake/%{name}}
%{_includedir}/realm
%{_libdir}/lib*.so
%{_libdir}/cmake/%{name}
-%ifnarch s390x
%{_libdir}/openmpi*/lib/lib*.so
%{_libdir}/mpich*/lib/lib*.so
@@ -200,9 +191,11 @@ mv %{buildroot}{%{_datadir}/Legion,%{_libdir}/cmake/%{name}}
%files mpich
%{_libdir}/mpich*/lib/lib*.so.1
-%endif
%changelog
+* Wed Aug 04 2017 Christoph Junghans <junghans(a)votca.org> - 17.05.0-4
+- Added patch for s390x (bug #1477749), enable gasnet of s390x
+
* Thu Aug 03 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
17.05.0-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
diff --git a/s390x.patch b/s390x.patch
new file mode 100644
index 0000000..a776c8a
--- /dev/null
+++ b/s390x.patch
@@ -0,0 +1,14 @@
+--- legion-legion-17.05.0/runtime/realm/numa/numasysif.cc 2017/06/15 14:00:13 1.1
++++ legion-legion-17.05.0/runtime/realm/numa/numasysif.cc 2017/06/15 14:01:01
+@@ -27,10 +27,11 @@
+
+ #include <vector>
+
+ #ifdef __linux__
+ #include <unistd.h>
++#include <asm-generic/unistd.h>
+ #include <sys/syscall.h>
+ #include <linux/mempolicy.h>
+ #include <dirent.h>
+ #include <sched.h>
+ #include <ctype.h>