Package: libhdf5-mpi-dev
Version: 1.8.4-patch1-2
Severity: important
Tags: patch


The libhdf5-mpi-dev package depends on libopenmpi-dev whether the
platform defaults to openmpi or lam.  This is because it checks
the /etc/alternatives symlink to mpi, which will always point to openmpi
for hdf5, because it build-depends on all of the MPI implementations,
and OpenMPI has the highest priority.

(This was my mistake in copying the old PETSc MPI rule; PETSc's build
process installs only the arch's default MPI so there's only
one /etc/alternatives candidate.)

The attached patch vs. current SVN checks the dependency of the
mpi-default-dev package instead, so it is always consistent with

GPG fingerprint: D54D 1AEE B11C CE9B A02B  C5DD 526F 01E8 564E E4B6

Engineering consulting with open source tools
Index: trunk/debian/changelog
--- trunk/debian/changelog	(revision 2951)
+++ trunk/debian/changelog	(working copy)
@@ -1,3 +1,11 @@
+hdf5 (1.8.4-patch1-3) unstable; urgency=low
+  [ Adam C. Powell, IV ]
+  * Correct the libhdf5-mpi-dev dependency on the default MPI version
+    (closes: #6xxxxx).
+ --
 hdf5 (1.8.4-patch1-2) unstable; urgency=low
   [ Adam C. Powell, IV ]
Index: trunk/debian/rules
--- trunk/debian/rules	(revision 2951)
+++ trunk/debian/rules	(working copy)
@@ -22,7 +22,7 @@
 DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 DEB_BUILD_ARCH      ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
-DEFAULT_MPI=$(shell readlink /etc/alternatives/mpi | sed s/usr//g | sed s/include//g | sed s/lib//g | sed s/\\///g)
+DEFAULT_MPI=$(shell dpkg -s mpi-default-dev | grep Depends | sed "s/Depends: lib//" | sed "s/-dev//" | sed "s/lam4/lam/")
 patch: patch-stamp

Attachment: signature.asc
Description: This is a digitally signed message part

Pkg-grass-devel mailing list

Reply via email to