Source: setcd
Version: 1.5-6
Tags: patch
User: [email protected]
Usertags: rebootstrap

setcd fails to cross build from source, because it uses the build
architecture compiler. The easiest way of passing cross tools to make is
letting dh_auto_build do it and that is sufficient for making setcd
cross buildable. Please consider applying the attached patch.

Helmut
diff -u setcd-1.5/debian/control setcd-1.5/debian/control
--- setcd-1.5/debian/control
+++ setcd-1.5/debian/control
@@ -2,7 +2,7 @@
 Section: utils
 Priority: optional
 Maintainer: LENART Janos <[email protected]>
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 7)
 Standards-Version: 3.8.1
 
 Package: setcd
diff -u setcd-1.5/debian/rules setcd-1.5/debian/rules
--- setcd-1.5/debian/rules
+++ setcd-1.5/debian/rules
@@ -10,7 +10,7 @@
 build: build-stamp
 build-stamp:
        dh_testdir
-       $(MAKE) CFLAGS=-O2 setcd
+       dh_auto_build -- CFLAGS=-O2 setcd
        touch build-stamp
 
 clean:
diff -u setcd-1.5/debian/changelog setcd-1.5/debian/changelog
--- setcd-1.5/debian/changelog
+++ setcd-1.5/debian/changelog
@@ -1,3 +1,10 @@
+setcd (1.5-6.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Thu, 28 Jun 2018 06:59:37 +0200
+
 setcd (1.5-6) unstable; urgency=low
 
   * Adopting the package. (closes: #406134)

Reply via email to