Source: libvorbisidec
Version: 1.0.2+svn18153-0.2
Tags: patch
User: [email protected]
Usertags: rebootstrap
Since libvorbisidec overrides dh_auto_configure, it cannot benefit from
it automatically handling cross compilation. Configuring without
mentioning the host architecture means building for the build
architecture and thus configure fails to find dependencies.
libvorbisidec is a bit strange in that it wraps ./configure through
./autogen.sh, so adding suitable --build and --host flags there is
sufficient for fixing the cross build. Please consider applying the
attached patch.
Helmut
diff -u libvorbisidec-1.0.2+svn18153/debian/rules
libvorbisidec-1.0.2+svn18153/debian/rules
--- libvorbisidec-1.0.2+svn18153/debian/rules
+++ libvorbisidec-1.0.2+svn18153/debian/rules
@@ -1,9 +1,15 @@
#!/usr/bin/make -f
+include /usr/share/dpkg/architecture.mk
+CONFIGURE_ARGS = --prefix=/usr
+ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH))
+CONFIGURE_ARGS += --build=$(DEB_BUILD_GNU_TYPE) --host=$(DEB_HOST_GNU_TYPE)
+endif
+
%:
dh $@
override_dh_auto_configure:
- ./autogen.sh --prefix=/usr
+ ./autogen.sh $(CONFIGURE_ARGS)
# fetch a new version of the upstream source, if anything has changed
# in our directory since the last clean upload.
diff -u libvorbisidec-1.0.2+svn18153/debian/changelog
libvorbisidec-1.0.2+svn18153/debian/changelog
--- libvorbisidec-1.0.2+svn18153/debian/changelog
+++ libvorbisidec-1.0.2+svn18153/debian/changelog
@@ -1,3 +1,10 @@
+libvorbisidec (1.0.2+svn18153-0.3) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: Pass --build and --host to ./autogen.sh (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]> Thu, 08 Dec 2016 13:23:07 +0100
+
libvorbisidec (1.0.2+svn18153-0.2) unstable; urgency=low
* Non-maintainer upload.