Source: pps-tools
Version: 1.0.2-1
Tags: patch
User: [email protected]
Usertags: rebootstrap

pps-tools fails to cross build from source, because it uses the build
architecture compiler. It actually uses the cross compiler during
dh_auto_build, but then proceeds to rebuild the whole thing again in
dh_auto_install without cross tools. This is because the default target
also creates a .depend file which instructs the Makefile to create new
intermediate .o files, which were missing in the first pass. If you
first build the .depend file, the second build during dh_auto_install is
avoided. This not only speeds up the build, but also makes pps-tools
cross buildable. Please consider applying the attached patch.

Helmut
diff --minimal -Nru pps-tools-1.0.2/debian/changelog 
pps-tools-1.0.2/debian/changelog
--- pps-tools-1.0.2/debian/changelog    2018-02-04 01:05:11.000000000 +0100
+++ pps-tools-1.0.2/debian/changelog    2019-05-19 11:29:00.000000000 +0200
@@ -1,3 +1,10 @@
+pps-tools (1.0.2-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Only build during dh_auto_build. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sun, 19 May 2019 11:29:00 +0200
+
 pps-tools (1.0.2-1) unstable; urgency=medium
 
   * [efb1ff7] Merge branch 'master' into debian
diff --minimal -Nru pps-tools-1.0.2/debian/rules pps-tools-1.0.2/debian/rules
--- pps-tools-1.0.2/debian/rules        2018-02-04 01:05:11.000000000 +0100
+++ pps-tools-1.0.2/debian/rules        2019-05-19 11:29:00.000000000 +0200
@@ -7,3 +7,6 @@
 %:
        dh $@
 
+override_dh_auto_build:
+       dh_auto_build -- dep
+       dh_auto_build

Reply via email to