[libvorbisidec] 01/02: Fix FTCBFS: Pass --build and --host to ./autogen.sh.

Petter Reinholdtsen pere at moszumanska.debian.org
Fri Apr 6 14:19:19 UTC 2018


This is an automated email from the git hooks/post-receive script.

pere pushed a commit to branch master
in repository libvorbisidec.

commit 20c54e1e278d5f163b945ce5be3ebc29b1f2d036
Author: Petter Reinholdtsen <pere at hungry.com>
Date:   Fri Apr 6 16:05:27 2018 +0200

    Fix FTCBFS: Pass --build and --host to ./autogen.sh.
    
    Patch from Helmut Grohne.
    
    Closes: #847463
---
 debian/rules | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index ea4ed2b..689390c 100755
--- a/debian/rules
+++ b/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.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-xiph/libvorbisidec.git



More information about the pkg-xiph-commits mailing list