Package: getdp
Version: 2.2.0-1
Severity: Important
Tags: patch

Ηι,

Package FTBFS because it cannot find the proper paths for petsc and
slepc. The reason is that armhf/armel (which this patch also covers in
case the package is buildable there as well), use a different triplet
than *-linux-gnu. The attached patch fixes that in those two cases.

Regards

Konstantinos
diff -ruN getdp-2.2.0/debian/rules getdp-2.2.0.mine/debian/rules
--- getdp-2.2.0/debian/rules	2012-06-02 15:09:25.000000000 +0000
+++ getdp-2.2.0.mine/debian/rules	2012-09-11 17:51:28.782826910 +0000
@@ -11,10 +11,21 @@
 include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/rules/patchsys-quilt.mk
 
+DEB_HOST_ARCH = $(shell dpkg-architecture -qDEB_HOST_ARCH)
+
 # PETSC_DIR is the location of PETSc.
 export PETSC_DIR=/usr/lib/petscdir/3.2
+ifneq ("", findstring("$(DEB_HOST_ARCH)", "armel armhf"))
+ifeq ("armhf", "$(DEB_HOST_ARCH)")
+export PETSC_ARCH=linux-gnueabihf-c-opt
+endif
+ifeq ("armel", "$(DEB_HOST_ARCH)")
+export PETSC_ARCH=linux-gnueabi-c-opt
+endif
+else
 export PETSC_ARCH=linux-gnu-c-opt
-export SLEPC_DIR=/usr/lib/slepcdir/3.2
+endif
+export SLEPC_DIR=/usr/lib/slepcdir/3.2/
 
 #DEB_MAKE_ENVVARS               := -j2
 

Reply via email to