[arch-commits] Commit in parallel-netcdf-openmpi/trunk (PKGBUILD)

Bruno Pagani archange at archlinux.org
Thu Jun 22 11:49:35 UTC 2017


    Date: Thursday, June 22, 2017 @ 11:49:34
  Author: archange
Revision: 239538

Build with -fPIC, re-enable i686 by disabling tests for this arch

Modified:
  parallel-netcdf-openmpi/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-06-22 11:41:36 UTC (rev 239537)
+++ PKGBUILD	2017-06-22 11:49:34 UTC (rev 239538)
@@ -4,9 +4,9 @@
 _mpi=openmpi
 pkgname=${_pkg}-${_mpi}
 pkgver=1.8.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A Parallel I/O Library for NetCDF File Access"
-arch=('x86_64') # Tests fail for 'i686'
+arch=('x86_64' 'i686')
 url="https://trac.mcs.anl.gov/projects/parallel-netcdf"
 license=('custom')
 depends=('openmpi')
@@ -21,6 +21,8 @@
 
 build() {
     cd ${_pkg}-${pkgver}
+
+    export CPPFLAGS="${CPPFLAGS} -fPIC"
     ./configure --prefix=/usr
     make
 }
@@ -27,8 +29,12 @@
 
 check() {
     cd ${_pkg}-${pkgver}
-    make check
-    make ptest
+    # Tests failing with i686: https://github.com/open-mpi/ompi/issues/3195
+    if [ ${CARCH} = 'x86_64' ]; then
+        make check
+        make ptest
+    fi
+    # Tests crashing (but no failure) with x86_64: https://github.com/open-mpi/ompi/issues/3695
 }
 
 package() {



More information about the arch-commits mailing list