Source: ticker Version: 1.11 Tags: patch User: helm...@debian.org Usertags: rebootstrap
ticker fails to cross build from source, because it fails configuring for the build architecture. ./configure is run by make clean during dh_auto_clean. That's bad. Once that is fixed, the Makefile fails to use the cross compiler detected by the real ./configure invocation. The attached patch fixes both and makes ticker cross buildable. Please consider applying it. Helmut
diff --minimal -Nru ticker-1.11/Makefile ticker-1.12/Makefile --- ticker-1.11/Makefile 2015-08-28 04:35:08.000000000 +0200 +++ ticker-1.12/Makefile 2019-04-29 16:24:17.000000000 +0200 @@ -8,7 +8,7 @@ all: ticker ticker: ticker.c - gcc ticker.c -o ticker $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) $(LIBS) + $(CC) ticker.c -o ticker $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) $(LIBS) demo: ticker PATH=.:$$PATH ./ticker "This is a test..." diff --minimal -Nru ticker-1.11/debian/changelog ticker-1.12/debian/changelog --- ticker-1.11/debian/changelog 2015-08-30 23:16:07.000000000 +0200 +++ ticker-1.12/debian/changelog 2019-04-29 16:24:17.000000000 +0200 @@ -1,3 +1,11 @@ +ticker (1.12) UNRELEASED; urgency=medium + + * Fix FTCBFS: (Closes: #-1) + + Don't ./configure during make clean. + + Propagate compiler from ./configure to make. + + -- Helmut Grohne <hel...@subdivi.de> Mon, 29 Apr 2019 16:24:17 +0200 + ticker (1.11) unstable; urgency=medium * QA upload. diff --minimal -Nru ticker-1.11/debian/rules ticker-1.12/debian/rules --- ticker-1.11/debian/rules 2015-08-28 04:35:54.000000000 +0200 +++ ticker-1.12/debian/rules 2019-04-29 16:24:14.000000000 +0200 @@ -5,3 +5,8 @@ %: dh $@ --with autoreconf + +override_dh_auto_clean: + # avoid running ./configure during make clean + touch makeinfo config.status + dh_auto_clean