[Debian-ha-maintainers] Bug#921152: drbd-utils FTCBFS: configures for the wrong architecture

Helmut Grohne helmut at subdivi.de
Sat Feb 2 11:36:42 GMT 2019


Source: drbd-utils
Version: 9.5.0-1
Tags: patch
User: helmutg at debian.org
Usertags: rebootstrap

drbd-utils fails to cross build from source, because it does not pass
--host to ./configure. The easiest way of doing so is using
dh_auto_configure. After doing so, drbd-utils still fails to cross build
from source, because it generates its documentation by running the tools
it just built. This is non-trivial to solve and not covered by the
attached patch. Still the patch makes the secondary failure more visible
in QA build logs. Please consider applying it and close this bug when
doing so.

Regarding the documentation issue, options are dim. Let me tell you some
routes, but consider whether this problem is worth solving at all:
 * Split out documentation into an Architecture: all package.
 * Generate documentation at upload time rather than build time. (I very
   much dislike this one, but it solves the cross build issue.)
 * Build drbd-utils twice during cross builds (a build arch build for
   the documentation and a host arch build for the actual package).

None of these options looks particularly attractive to me. To the
contrary, all of them are quite invasive.

Helmut
-------------- next part --------------
diff --minimal -Nru drbd-utils-9.5.0/debian/changelog drbd-utils-9.5.0/debian/changelog
--- drbd-utils-9.5.0/debian/changelog	2018-07-16 19:52:47.000000000 +0200
+++ drbd-utils-9.5.0/debian/changelog	2019-02-02 12:18:53.000000000 +0100
@@ -1,3 +1,10 @@
+drbd-utils (9.5.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Address FTCBFS: Use dh_auto_configure. (Closes: #-1)
+
+ -- Helmut Grohne <helmut at subdivi.de>  Sat, 02 Feb 2019 12:18:53 +0100
+
 drbd-utils (9.5.0-1) unstable; urgency=medium
 
   * New upstream version 9.5.0
diff --minimal -Nru drbd-utils-9.5.0/debian/rules drbd-utils-9.5.0/debian/rules
--- drbd-utils-9.5.0/debian/rules	2018-06-11 16:11:09.000000000 +0200
+++ drbd-utils-9.5.0/debian/rules	2019-02-02 12:18:44.000000000 +0100
@@ -14,7 +14,7 @@
 	rm -f debian/drbd-utils.drbd.init
 
 override_dh_auto_configure:
-	./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc \
+	dh_auto_configure -- \
 		--sbindir=/sbin --with-udev --with-xen \
 		--with-pacemaker --with-rgmanager --with-bashcompletion \
 		--with-initscripttype=sysv \


More information about the Debian-ha-maintainers mailing list