Source: chicken Version: 4.13.0-1 Tags: patch User: helm...@debian.org Usertags: rebootstrap
chicken fails to cross build from source, because it builds for the wrong architecture. The upstream documentation kindly explains that one is supposed a HOSTSYSTEM variable to prefix build tools. It needs to be passed to both the build and the install step, because chicken insists on relinking the library during make install (unless you pass NEEDS_RELINKING=no). So the attached patch makes chicken cross buildable. Please consider applying it. Helmut
diff --minimal -Nru chicken-4.13.0/debian/changelog chicken-4.13.0/debian/changelog --- chicken-4.13.0/debian/changelog 2018-08-03 09:20:43.000000000 +0200 +++ chicken-4.13.0/debian/changelog 2018-12-05 08:12:31.000000000 +0100 @@ -1,3 +1,10 @@ +chicken (4.13.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Tell make about HOSTSYSTEM. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Wed, 05 Dec 2018 08:12:31 +0100 + chicken (4.13.0-1) unstable; urgency=low * New upstream version. diff --minimal -Nru chicken-4.13.0/debian/rules chicken-4.13.0/debian/rules --- chicken-4.13.0/debian/rules 2018-08-03 09:20:43.000000000 +0200 +++ chicken-4.13.0/debian/rules 2018-12-05 08:12:31.000000000 +0100 @@ -2,6 +2,7 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +include /usr/share/dpkg/architecture.mk CFLAGS = $(shell dpkg-buildflags --get CFLAGS) CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS) LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) @@ -36,10 +37,11 @@ tests/tmp3 override_dh_auto_build: - dh_auto_build -- PREFIX=$(PREFIX) C_COMPILER_OPTIMIZATION_OPTIONS="$(CFLAGS) $(CPPFLAGS)" VARDIR=/var/lib/ + dh_auto_build -- HOSTSYSTEM=$(DEB_HOST_GNU_TYPE) PREFIX=$(PREFIX) C_COMPILER_OPTIMIZATION_OPTIONS="$(CFLAGS) $(CPPFLAGS)" VARDIR=/var/lib/ override_dh_auto_install: dh_auto_install -- \ + HOSTSYSTEM=$(DEB_HOST_GNU_TYPE) \ LINKER_LINK_SHARED_DLOADABLE_OPTIONS='-L. -shared $(LDFLAGS)' \ LINKER_LINK_SHARED_PROGRAM_OPTIONS='$(LDFLAGS)' \ LIBCHICKEN_SO_LINKER_OPTIONS='$(LDFLAGS) -Wl,-soname,libchicken.so.8'