Bug#838395: libvdpau FTCBFS: fails to pass --host to configure

Helmut Grohne helmut at subdivi.de
Tue Sep 20 19:43:51 UTC 2016


Source: libvdpau
Version: 1.1.1-3
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

libvdpau fails to cross build from source, because it doesn't pass
--host to configure and thus uses the build architecture toolchain.
Replacing the explicit ./configure invocation with dh_auto_configure
fixes the cross build, because dh_auto_configure knows the right flags.
It also simplifies the rules file. Please consider applying the attached
patch.

Helmut
-------------- next part --------------
diff --minimal -Nru libvdpau-1.1.1/debian/changelog libvdpau-1.1.1/debian/changelog
--- libvdpau-1.1.1/debian/changelog	2015-10-29 00:47:48.000000000 +0100
+++ libvdpau-1.1.1/debian/changelog	2016-09-20 21:39:55.000000000 +0200
@@ -1,3 +1,10 @@
+libvdpau (1.1.1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass --host. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Tue, 20 Sep 2016 21:39:43 +0200
+
 libvdpau (1.1.1-3) unstable; urgency=medium
 
   [ Luca Boccassi ]
diff --minimal -Nru libvdpau-1.1.1/debian/rules libvdpau-1.1.1/debian/rules
--- libvdpau-1.1.1/debian/rules	2015-10-29 00:47:48.000000000 +0100
+++ libvdpau-1.1.1/debian/rules	2016-09-20 21:39:41.000000000 +0200
@@ -2,9 +2,6 @@
 
 #export DH_VERBOSE=1
 
-DEB_HOST_ARCH       ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
-DEB_HOST_MULTIARCH  ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
-
 # Used to enable documentation if dependencies are available
 define cond_enable
 	$(shell if test -x /usr/bin/doxygen && test -x /usr/bin/dot; \
@@ -24,9 +21,8 @@
 
 override_dh_auto_configure:
 	dh_testdir
-	LDFLAGS="-Wl,--as-needed $$(dpkg-buildflags --get LDFLAGS)" ./configure \
-		--prefix=/usr --sysconfdir=/etc --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
-		$(CONFIGURE_OPTIONS)
+	LDFLAGS="-Wl,--as-needed $$(dpkg-buildflags --get LDFLAGS)" \
+		dh_auto_configure -- $(CONFIGURE_OPTIONS)
 
 override_dh_installdocs:
 	dh_installdocs -X.md5


More information about the pkg-nvidia-devel mailing list