Source: blacs-mpi
Severity: important
Tags: patch

blacs-mpi FTBFS with openmpi1.10, as the libraries it should link against have 
changed.
Included is a patch to fix this.

-- System Information:
Debian Release: 8.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.16.0-4-686-pae (SMP w/1 CPU core)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to en_IE.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
diff -urN blacs-mpi-1.1.orig/debian/blacs-mpi-implementations.patch blacs-mpi-1.1/debian/blacs-mpi-implementations.patch
--- blacs-mpi-1.1.orig/debian/blacs-mpi-implementations.patch	2016-02-01 18:31:32.000000000 +0000
+++ blacs-mpi-1.1/debian/blacs-mpi-implementations.patch	2016-02-01 18:32:45.440640475 +0000
@@ -76,7 +76,7 @@
 +   MPIdir = /usr/lib/openmpi
 +   MPILIBdir = $(MPIdir)/lib
 +   MPIINCdir = $(MPIdir)/include
-+   MPILIB = -L/usr/lib/openmpi/lib -lmpi -lmpi_f77
++   MPILIB = $$(pkg-config mpi-fort --libs)
 +   CC = mpicc.openmpi
 +   F77 = mpif90.openmpi
 +   TRANSCOMM = -DUseMpi2
diff -urN blacs-mpi-1.1.orig/debian/changelog blacs-mpi-1.1/debian/changelog
--- blacs-mpi-1.1.orig/debian/changelog	2016-02-01 18:31:32.000000000 +0000
+++ blacs-mpi-1.1/debian/changelog	2016-02-01 18:34:26.505231276 +0000
@@ -1,3 +1,11 @@
+blacs-mpi (1.1-33.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Use `pkg-config mpi-fort --libs` rather than hard-coded libs for
+    openmpi
+
+ -- Alastair McKinstry <mckins...@debian.org>  Mon, 01 Feb 2016 18:33:44 +0000
+
 blacs-mpi (1.1-33.1) unstable; urgency=medium

   * Non-maintainer upload.
diff -urN blacs-mpi-1.1.orig/debian/rules blacs-mpi-1.1/debian/rules
--- blacs-mpi-1.1.orig/debian/rules	2016-02-01 18:31:32.000000000 +0000
+++ blacs-mpi-1.1/debian/rules	2016-02-01 18:32:24.687697787 +0000
@@ -57,7 +57,7 @@
 	  done;\
 	  cd .. ;\
 	  gcc -shared -Wl,-soname=lib$$i-openmpi.so.1 -o lib$$i-openmpi.so.1.1 \
-	    -L/usr/lib/openmpi/lib/ $$(find tmp -name "*.o") -lmpi -lmpi_f77; \
+	    $$(find tmp -name "*.o") $$(pkg-config mpi-fort --libs) \
 	  ln -fs lib$$i-openmpi.so.1.1 lib$$i-openmpi.so.1 ;\
 	  ln -fs lib$$i-openmpi.so.1 lib$$i-openmpi.so ;\
 	  rm -f tmp/tmp/* ; rmdir tmp/tmp ; rm tmp/* ;\

Reply via email to