Source: vzctl
Version: 4.9.4-3
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

vzctl fails to cross build from source, because it fails to pass the
relevant --host flag ./configure. Deferring this task to
dh_auto_configure fixes the cross build. Please consider applying the
attached patch.

Helmut
diff --minimal -Nru vzctl-4.9.4/debian/changelog vzctl-4.9.4/debian/changelog
--- vzctl-4.9.4/debian/changelog        2016-09-11 21:54:53.000000000 +0200
+++ vzctl-4.9.4/debian/changelog        2017-01-26 19:46:19.000000000 +0100
@@ -1,3 +1,10 @@
+vzctl (4.9.4-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_configure pass cross compilers. Closes: #-1.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 26 Jan 2017 19:46:19 +0100
+
 vzctl (4.9.4-3) unstable; urgency=high
 
   * Removed depdendency on hardening wrapper. Closes: #836660.
diff --minimal -Nru vzctl-4.9.4/debian/rules vzctl-4.9.4/debian/rules
--- vzctl-4.9.4/debian/rules    2016-09-11 21:59:35.000000000 +0200
+++ vzctl-4.9.4/debian/rules    2017-01-26 19:46:12.000000000 +0100
@@ -1,13 +1,9 @@
 #!/usr/bin/make -f
-DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
 override_dh_auto_configure:
        # Add here commands to configure the package.
-       vzdir=/var/lib/vz ./configure \
-               --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
-               --prefix=/usr --libexecdir=/usr/lib/vzctl \
-               --sysconfdir=/etc --mandir=/usr/share/man \
-               --localstatedir=/var \
+       vzdir=/var/lib/vz dh_auto_configure -- \
+               --libexecdir=/usr/lib/vzctl \
                --enable-logrotate \
                --enable-bashcomp \
                --with-vz \
@@ -15,10 +11,6 @@
                --with-cgroup \
                --disable-udev          
 
-override_dh_auto_build:
-       # Add here commands to compile the package.
-       $(MAKE)
-
 override_dh_auto_clean:
        # Add here commands to clean up after the build process.
        [ ! -f Makefile ] || $(MAKE) distclean

Reply via email to