Source: pimd
Version: 2.3.2-2
Tags: patch
User: [email protected]
Usertags: ftcbfs

pimd fails to cross build from source, because it uses the build
architecture compiler. Given that it has a ./configure script, debhelper
assumes that ./configure will set up the compiler. However, pimd expects
the compiler to be set for the make invocation. Please consider applying
the attached patch.

Helmut
diff --minimal -Nru pimd-2.3.2/debian/changelog pimd-2.3.2/debian/changelog
--- pimd-2.3.2/debian/changelog 2017-01-23 11:33:14.000000000 +0100
+++ pimd-2.3.2/debian/changelog 2019-10-03 20:10:03.000000000 +0200
@@ -1,3 +1,10 @@
+pimd (2.3.2-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Pass CC to make. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 03 Oct 2019 20:10:03 +0200
+
 pimd (2.3.2-2) unstable; urgency=medium
 
   * Bump Standards to 3.9.8; no changes needed
diff --minimal -Nru pimd-2.3.2/debian/rules pimd-2.3.2/debian/rules
--- pimd-2.3.2/debian/rules     2017-01-23 11:31:49.000000000 +0100
+++ pimd-2.3.2/debian/rules     2019-10-03 20:10:01.000000000 +0200
@@ -5,6 +5,8 @@
 
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 
+include /usr/share/dpkg/buildtools.mk
+
 %:
        dh $@ --with systemd
 
@@ -12,6 +14,9 @@
 override_dh_auto_configure:
        ./configure --prefix=/usr --sysconfdir=/etc
 
+override_dh_auto_build:
+       dh_auto_build -- 'CC=$(CC)'
+
 override_dh_auto_clean:
        touch config.mk
        dh_auto_clean

Reply via email to