[Debian-med-packaging] Bug#864558: poa FTCBFS: uses the build architecture compiler, runs tests despite DEB_BUILD_OPTIONS=nocheck

Helmut Grohne helmut at subdivi.de
Sat Jun 10 16:01:25 UTC 2017


Source: poa
Version: 2.0+20060928-4
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

poa fails to cross build from source, because it uses the build
architecture compiler. Letting dh_auto_build pass cross compilers to
make fixes this part. It still runs the test suite despite
DEB_BUILD_OPTIONS containing nocheck. After fixing both issues, poa
cross builds successfully. Please consider applying the attached patch
after stretch is released.

Helmut
-------------- next part --------------
diff --minimal -Nru poa-2.0+20060928/debian/changelog poa-2.0+20060928/debian/changelog
--- poa-2.0+20060928/debian/changelog	2016-01-11 12:53:26.000000000 +0100
+++ poa-2.0+20060928/debian/changelog	2017-06-10 17:58:33.000000000 +0200
@@ -1,3 +1,12 @@
+poa (2.0+20060928-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross compilers.
+    + Honour DEB_BUILD_OPTIONS=nocheck.
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 10 Jun 2017 17:58:33 +0200
+
 poa (2.0+20060928-4) unstable; urgency=medium
 
   * moved debian/upstream to debian/upstream/metadata
diff --minimal -Nru poa-2.0+20060928/debian/rules poa-2.0+20060928/debian/rules
--- poa-2.0+20060928/debian/rules	2013-09-12 10:59:00.000000000 +0200
+++ poa-2.0+20060928/debian/rules	2017-06-10 17:58:31.000000000 +0200
@@ -16,8 +16,9 @@
 	$(XP) $(DB2MAN) $<
 
 override_dh_auto_build:
-	$(MAKE) poa
+	dh_auto_build -- poa
 
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 override_dh_auto_test:
 	tmpfile=`mktemp` ; \
 	./$(PKG) -read_fasta multidom.seq -clustal $$tmpfile -v blosum80.mat ; \
@@ -29,3 +30,4 @@
 	    echo "File $$tmpfile is different from $(CURDIR)/multidom.clustal" ; \
 	    exit 1 ; \
 	fi
+endif


More information about the Debian-med-packaging mailing list