[mpi-defaults] 05/07: d/rules: add a static list of OPENMPI_ARCHITECTURES and MPICH_ARCHITECTURES, and export them in debian_defaults
Mattia Rizzolo
mattia at debian.org
Tue Feb 16 18:20:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
mattia pushed a commit to branch master
in repository mpi-defaults.
commit 07ef8a626031281c887c1d60813dc91634e349b2
Author: Mattia Rizzolo <mattia at debian.org>
Date: Tue Feb 16 18:01:46 2016 +0000
d/rules: add a static list of OPENMPI_ARCHITECTURES and MPICH_ARCHITECTURES, and export them in debian_defaults
This will need to be updated manually every time there is a new architecture
present, but it's the only way to have that interesting data in the final binary
package.
See https://lists.debian.org/20160215174941.GA29224@chase.mapreri.org for some
discussion about it.
---
debian/rules | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/debian/rules b/debian/rules
index 08a2be6..a7617fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,12 +6,41 @@ d := debian/debian_defaults
MPI=$(shell readlink /etc/alternatives/mpi | sed s/usr//g | sed s/include//g | sed s/lib//g | sed s/\\///g)
+OPENMPI_ARCHITECTURES := \
+ alpha \
+ amd64 \
+ arm64 \
+ armel \
+ armhf \
+ hurd-i386 \
+ i386 \
+ kfreebsd-amd64 \
+ kfreebsd-i386 \
+ mips \
+ mipsel \
+ powerpc \
+ ppc64 \
+ ppc64el \
+ s390x \
+ sparc64 \
+ x32 \
+
+MPICH_ARCHITECTURES := \
+ hppa \
+ m68k \
+ sh4 \
+
+
%:
dh $@
override_dh_auto_build:
echo "# Default MPI implementation on this arch:" > $d
echo "ARCH_DEFAULT_MPI_IMPL=$(MPI)" >> $d
+ echo "# Architectures defaulting to OpenMPI:" >> $d
+ echo OPENMPI_ARCHITECTURES=$(OPENMPI_ARCHITECTURES) >> $d
+ echo "# Architectures defaulting to MPICH:" >> $d
+ echo MPICH_ARCHITECTURES=$(MPICH_ARCHITECTURES) >> $d
override_dh_gencontrol:
rm -f debian/*.substvars
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mpi-defaults.git
More information about the debian-science-commits
mailing list