Source: xinput-calibrator
Version: 0.7.5+git20140201-1
Tags: patch
User: helm...@debian.org
Usertags: rebootstrap

xinput-calibrator fails to cross build from source, because it
configures for the build architecture. It actually configures twice.
Once via autogen.sh (for the wrong architecture) and once via
dh_auto_configure. It also runs autoreconf twice. Once via dh_autoreconf
and once via autogen.sh. So it seems that autogen.sh is rather
counterproductive. The only thing it changes is passing
--enable-maintainer-mode to ./configure, but we can tell
dh_auto_configure to do that. Once dropping the autogen.sh call,
xinput-calibrator cross builds successfully. Please consider applying
the attached patch.

Helmut
diff --minimal -Nru xinput-calibrator-0.7.5+git20140201/debian/changelog 
xinput-calibrator-0.7.5+git20140201/debian/changelog
--- xinput-calibrator-0.7.5+git20140201/debian/changelog        2014-02-09 
12:36:38.000000000 +0100
+++ xinput-calibrator-0.7.5+git20140201/debian/changelog        2019-01-17 
05:48:50.000000000 +0100
@@ -1,3 +1,10 @@
+xinput-calibrator (0.7.5+git20140201-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: ./configure once only via dh_auto_configure. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 17 Jan 2019 05:48:50 +0100
+
 xinput-calibrator (0.7.5+git20140201-1) unstable; urgency=low
 
   * Initial release. (Closes: #592073)
diff --minimal -Nru xinput-calibrator-0.7.5+git20140201/debian/rules 
xinput-calibrator-0.7.5+git20140201/debian/rules
--- xinput-calibrator-0.7.5+git20140201/debian/rules    2014-02-09 
12:28:25.000000000 +0100
+++ xinput-calibrator-0.7.5+git20140201/debian/rules    2019-01-17 
05:48:44.000000000 +0100
@@ -5,5 +5,4 @@
        dh $@ --with autoreconf
 
 override_dh_auto_configure:
-       ./autogen.sh
-       dh_auto_configure
+       dh_auto_configure -- --enable-maintainer-mode

Reply via email to