Source: tree Version: 1.7.0-3 Tags: patch User: [email protected] Usertags: rebootstrap
tree fails to cross build from source, because it uses the build architecture compiler. Fortunately, debhelper 10.2.1 learned to pass cross compilers for the makefile buildsystem, so fixing this issue is a matter of moving to dh_auto_build. Please consider applying the attached patch. Helmut
diff --minimal -Nru tree-1.7.0/debian/changelog tree-1.7.0/debian/changelog --- tree-1.7.0/debian/changelog 2014-10-01 20:52:29.000000000 +0200 +++ tree-1.7.0/debian/changelog 2016-10-04 20:04:32.000000000 +0200 @@ -1,3 +1,10 @@ +tree (1.7.0-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_build pass cross compilers (Closes: #-1) + + -- Helmut Grohne <[email protected]> Tue, 04 Oct 2016 20:04:11 +0200 + tree (1.7.0-3) unstable; urgency=medium * [4cd4c45] simplify hardening, no upstream Makefile patching required diff --minimal -Nru tree-1.7.0/debian/rules tree-1.7.0/debian/rules --- tree-1.7.0/debian/rules 2014-10-01 20:52:29.000000000 +0200 +++ tree-1.7.0/debian/rules 2016-10-04 20:04:05.000000000 +0200 @@ -18,7 +18,7 @@ CFLAGS += -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 override_dh_auto_build: - $(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" + dh_auto_build -- CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" override_dh_auto_install: $(MAKE) install prefix="$(prefix)" MANDIR="$(MANDIR)"

