Source: sndio Version: 1.1.0-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
sndio fails to cross build from source, because it uses the build architecture compiler and ultimately fails finding libraries which are requested for the host architecture. Simply passing a triplet-prefixed compiler (which works both cross and natively) to configure fixes the build. Please consider applying the attached patch. Helmut
diff --minimal -Nru sndio-1.1.0/debian/changelog sndio-1.1.0/debian/changelog --- sndio-1.1.0/debian/changelog 2016-03-07 04:32:55.000000000 +0100 +++ sndio-1.1.0/debian/changelog 2016-11-03 14:32:57.000000000 +0100 @@ -1,3 +1,10 @@ +sndio (1.1.0-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: Pass cross compiler to configure (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Thu, 03 Nov 2016 14:32:40 +0100 + sndio (1.1.0-2) unstable; urgency=medium * Upload to unstable diff --minimal -Nru sndio-1.1.0/debian/rules sndio-1.1.0/debian/rules --- sndio-1.1.0/debian/rules 2016-03-07 00:20:05.000000000 +0100 +++ sndio-1.1.0/debian/rules 2016-11-03 14:32:38.000000000 +0100 @@ -7,6 +7,10 @@ DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk +ifeq ($(origin CC),default) +CC = $(DEB_HOST_GNU_TYPE)-gcc +endif + # see FEATURE AREAS in dpkg-buildflags(1) export DEB_BUILD_MAINT_OPTIONS = hardening=+all @@ -24,7 +28,7 @@ dh $@ override_dh_auto_configure: - ./configure --prefix=/usr --includedir=/usr/include --mandir=/usr/share/man --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) --privsep-user=sndiod --with-libbsd "CFLAGS=$(CFLAGS) $(CPPFLAGS)" "LDFLAGS=$(LDFLAGS)" + ./configure --prefix=/usr --includedir=/usr/include --mandir=/usr/share/man --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) --privsep-user=sndiod --with-libbsd "CFLAGS=$(CFLAGS) $(CPPFLAGS)" "LDFLAGS=$(LDFLAGS)" CC="$(CC)" override_dh_installinit: cp contrib/init.d.sndiod debian/sndiod.init