Source: pgpdump
Version: 0.31-0.2
Tags: patch
User: [email protected]
Usertags: rebootstrap

pgpdump fails to cross build from source. One reason is that the
upstream build system fails to propagate the correctly detected cross
compiler to the Makefile. The other is that the Debian packaging fails
running tests despite DBE_BUILD_OPTIONS=nocheck. The attached patch
fixes both issues. Please consider applying it.

Helmut
diff --minimal -Nru pgpdump-0.32/debian/changelog pgpdump-0.32/debian/changelog
--- pgpdump-0.32/debian/changelog       2017-05-31 15:16:17.000000000 +0200
+++ pgpdump-0.32/debian/changelog       2018-03-26 16:51:35.000000000 +0200
@@ -1,3 +1,12 @@
+pgpdump (0.32-0.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + cross.patch: Propagate CC from ./configure to make.
+    + Honour DEB_BUILD_OPTIONS=nocheck.
+
+ -- Helmut Grohne <[email protected]>  Mon, 26 Mar 2018 16:51:35 +0200
+
 pgpdump (0.32-0.1) experimental; urgency=medium
 
   * Non-maintainer upload to experimental
diff --minimal -Nru pgpdump-0.32/debian/patches/cross.patch 
pgpdump-0.32/debian/patches/cross.patch
--- pgpdump-0.32/debian/patches/cross.patch     1970-01-01 01:00:00.000000000 
+0100
+++ pgpdump-0.32/debian/patches/cross.patch     2018-03-26 16:51:34.000000000 
+0200
@@ -0,0 +1,12 @@
+Index: pgpdump-0.32/Makefile.in
+===================================================================
+--- pgpdump-0.32.orig/Makefile.in
++++ pgpdump-0.32/Makefile.in
+@@ -5,6 +5,7 @@
+ LIBS = @LIBS@
+ CFLAGS  = @CFLAGS@ -O -Wall
+ LDFLAGS = @LDFLAGS@
++CC = @CC@
+ VERSION = `git tag | tail -1 | sed -e 's/v//'`
+ 
+ RM = rm -f
diff --minimal -Nru pgpdump-0.32/debian/patches/series 
pgpdump-0.32/debian/patches/series
--- pgpdump-0.32/debian/patches/series  1970-01-01 01:00:00.000000000 +0100
+++ pgpdump-0.32/debian/patches/series  2018-03-26 16:51:19.000000000 +0200
@@ -0,0 +1 @@
+cross.patch
diff --minimal -Nru pgpdump-0.32/debian/rules pgpdump-0.32/debian/rules
--- pgpdump-0.32/debian/rules   2016-11-23 07:23:35.000000000 +0100
+++ pgpdump-0.32/debian/rules   2018-03-26 16:51:35.000000000 +0200
@@ -5,5 +5,7 @@
 %:
        dh $@ --with autoreconf
 
+ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 override_dh_auto_test:
        debian/test
+endif

Reply via email to