Source: chntpw
Version: 1.0-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

chntpw fails to cross build from source, because it uses the build
architecture compiler. The easiest way of passing cross tools to make is
using dh_auto_build. After doing so, chntpw cross builds successfully.
Please consider applying the attached patch.

Helmut
diff -u chntpw-1.0/debian/changelog chntpw-1.0/debian/changelog
--- chntpw-1.0/debian/changelog
+++ chntpw-1.0/debian/changelog
@@ -1,3 +1,11 @@
+chntpw (1.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1)
+  * Remove unused/wrong INSTALL_PROGRAM variable.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 27 Jun 2018 19:08:50 +0200
+
 chntpw (1.0-1) unstable; urgency=low
 
   * Update to latest upstream release, published in 2014-02-01
diff -u chntpw-1.0/debian/control chntpw-1.0/debian/control
--- chntpw-1.0/debian/control
+++ chntpw-1.0/debian/control
@@ -2,7 +2,7 @@
 Section: admin
 Priority: optional
 Maintainer: Javier Fernandez-Sanguino Peña <j...@debian.org>
-Build-Depends: debhelper (>= 5), libgcrypt11-dev | libgcrypt-dev, sharutils, 
quilt, dpkg-dev ( >= 1.16.1~)
+Build-Depends: debhelper (>= 7), libgcrypt11-dev | libgcrypt-dev, sharutils, 
quilt, dpkg-dev ( >= 1.16.1~)
 Standards-Version: 3.9.5
 Homepage: http://pogostick.net/~pnh/ntpasswd/
 
diff -u chntpw-1.0/debian/rules chntpw-1.0/debian/rules
--- chntpw-1.0/debian/rules
+++ chntpw-1.0/debian/rules
@@ -17,9 +17,6 @@
 ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -g
 endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-       INSTALL_PROGRAM += -s
-endif
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
         CFLAGS += -O0
 else
@@ -31,7 +28,7 @@
 build-indep: build-stamp
 build-stamp: $(QUILT_STAMPFN)
        dh_testdir
-       $(MAKE) CFLAGS="$(CFLAGS)"
+       dh_auto_build -- CFLAGS="$(CFLAGS)"
        touch build-stamp
 
 clean: unpatch

Reply via email to