Source: glimpse Version: 4.18.7-3 Tags: patch User: [email protected] Usertags: rebootstrap
glimpse fails to cross build from source, because it does not pass --host to ./configure. The easiest way of doing so - using dh_auto_configure - almost fixes glimpse. It still hard codes the build architecture compiler in dynfilters/Makefile.in. Instead it needs to pick up the compiler that configure detected. The attached patch fixes both. Please consider applying it. Helmut
diff --minimal -Nru glimpse-4.18.7/debian/changelog glimpse-4.18.7/debian/changelog --- glimpse-4.18.7/debian/changelog 2016-12-14 08:20:54.000000000 +0100 +++ glimpse-4.18.7/debian/changelog 2019-05-15 22:19:52.000000000 +0200 @@ -1,3 +1,12 @@ +glimpse (4.18.7-3.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_configure pass cross tools to make. + + cross.patch: Propagate CC from configure to make. + + -- Helmut Grohne <[email protected]> Wed, 15 May 2019 22:19:52 +0200 + glimpse (4.18.7-3) unstable; urgency=high * updated control to build-depend on libfl-dev, (closes: #848012) diff --minimal -Nru glimpse-4.18.7/debian/patches/cross.patch glimpse-4.18.7/debian/patches/cross.patch --- glimpse-4.18.7/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ glimpse-4.18.7/debian/patches/cross.patch 2019-05-15 22:19:52.000000000 +0200 @@ -0,0 +1,9 @@ +--- glimpse-4.18.7.orig/dynfilters/Makefile.in ++++ glimpse-4.18.7/dynfilters/Makefile.in +@@ -1,5 +1,5 @@ + # Set this variable to the name of your C compiler +-CC=gcc ++CC=@CC@ + + # Provide optimization flages here. These settings are fine for egcs and + # gcc >= 2.95. If you use an older gcc version, change -O3 to -O2. If you diff --minimal -Nru glimpse-4.18.7/debian/patches/series glimpse-4.18.7/debian/patches/series --- glimpse-4.18.7/debian/patches/series 2016-10-26 12:06:51.000000000 +0200 +++ glimpse-4.18.7/debian/patches/series 2019-05-15 22:19:52.000000000 +0200 @@ -1,2 +1,3 @@ 01-makefile 01-manpages +cross.patch diff --minimal -Nru glimpse-4.18.7/debian/rules glimpse-4.18.7/debian/rules --- glimpse-4.18.7/debian/rules 2016-10-26 11:56:51.000000000 +0200 +++ glimpse-4.18.7/debian/rules 2019-05-15 22:19:51.000000000 +0200 @@ -22,7 +22,7 @@ build-stamp: dh_testdir - CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" INSTALL_OPTS="$(INSTALL_OPTS)" ./configure --prefix=/usr --mandir='$${prefix}/share/man' + CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" LDFLAGS="$(LDFLAGS)" INSTALL_OPTS="$(INSTALL_OPTS)" dh_auto_configure $(MAKE) touch $@

