Source: jigit Version: 1.20-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
jigit fails to cross build from source, because it uses the build architecture compiler (and later dh_strip causes the failure). For libjte, this can be fixed by passing the right flags to ./configure as is done by dh_auto_configure. For the extra programs building, a proper CC variable needs to be passed to make. For a successful cross build, some configure variables need to be exported in addition to applying the patch. At least ac_cv_func_malloc_0_nonnull=yes and ac_cv_func_realloc_0_nonnull=yes are needed here. As these are libc-specific and we are heading to supporting multiple libcs in Debian, I think jigit should not set them and instead rely on the environment providing them. Please consider applying the patch. Helmut
diff --minimal -Nru jigit-1.20/debian/changelog jigit-1.20/debian/changelog --- jigit-1.20/debian/changelog 2015-11-18 01:45:48.000000000 +0100 +++ jigit-1.20/debian/changelog 2016-09-05 21:02:54.000000000 +0200 @@ -1,3 +1,12 @@ +jigit (1.20-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_configure pass relevant cross flags + + Pass triplet-prefixed CC to make + + -- Helmut Grohne <hel...@subdivi.de> Mon, 05 Sep 2016 20:02:51 +0200 + jigit (1.20-2) unstable; urgency=medium * Update the priority of libjte1 to optional, to match libisofs6 that diff --minimal -Nru jigit-1.20/debian/rules jigit-1.20/debian/rules --- jigit-1.20/debian/rules 2013-12-19 15:44:03.000000000 +0100 +++ jigit-1.20/debian/rules 2016-09-05 20:02:47.000000000 +0200 @@ -6,7 +6,11 @@ #export DH_VERBOSE=1 DPKG_EXPORT_BUILDFLAGS = 1 +include /usr/share/dpkg/architecture.mk include /usr/share/dpkg/buildflags.mk +ifeq ($(origin CC),default) + CC = $(DEB_HOST_GNU_TYPE)-gcc +endif build: build-arch build-indep build-arch: build-stamp @@ -17,8 +21,8 @@ # Add here commands to compile the package. AUTOMAKE='automake --foreign' dh_autoreconf - cd libjte && ./configure --prefix=/usr - $(MAKE) + dh_auto_configure --sourcedirectory libjte + $(MAKE) CC=$(CC) touch build-stamp