Source: asclock Version: 2.0.12-28 Tags: patch User: helm...@debian.org Usertags: rebootstrap
asclock fails to cross build from source, because it uses the build architecture compiler. The easiest way to pass cross tools to make is using dh_auto_build. When doing so, one must pass --buildsystem=makefile, because dh will otherwise assume that ./configure is responsible for configuring cross tools. The attached patch makes asclock cross buildable. Please consider applying it. Helmut
diff --minimal -Nru asclock-2.0.12/debian/changelog asclock-2.0.12/debian/changelog --- asclock-2.0.12/debian/changelog 2017-01-09 16:24:03.000000000 +0100 +++ asclock-2.0.12/debian/changelog 2018-06-24 21:05:44.000000000 +0200 @@ -1,3 +1,10 @@ +asclock (2.0.12-28.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Let dh_auto_build pass cross tools to make. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Sun, 24 Jun 2018 21:05:44 +0200 + asclock (2.0.12-28) unstable; urgency=low * Correct versioned dependendy on debhelper diff --minimal -Nru asclock-2.0.12/debian/rules asclock-2.0.12/debian/rules --- asclock-2.0.12/debian/rules 2016-10-12 20:46:49.000000000 +0200 +++ asclock-2.0.12/debian/rules 2018-06-24 21:05:42.000000000 +0200 @@ -29,7 +29,8 @@ dh_testdir ( echo classic ; echo ) | ./configure # Choose classic theme - make $(shell $(dpkg_buildflags) --export=configure) \ + dh_auto_build --buildsystem=makefile -- \ + $(shell $(dpkg_buildflags) --export=configure) \ EXTRA_LDOPTIONS="$(shell $(dpkg_buildflags) --get LDFLAGS)" cp -ivp asclock.man $(MANDIR) touch $(MANDIR)/asclock.pot