Source: logtool
Version: 1.2.8-10
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

logtool fails to cross build from source, because it does not pass
--host to ./configure. The easiest way of fixing that is using
dh_auto_configure. Even then, it configures again during dh_auto_build
via the upstream makefile as it treats a missing config.cache as a
reason to rerun ./configure without flags. Unfortunately, ./configure
does not create a config.cache. The attached patch makes logtool cross
buildable. Please consider applying it.

Helmut
diff -u logtool-1.2.8/debian/changelog logtool-1.2.8/debian/changelog
--- logtool-1.2.8/debian/changelog
+++ logtool-1.2.8/debian/changelog
@@ -1,3 +1,12 @@
+logtool (1.2.8-10.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Configure only once.
+    + Let dh_auto_configure pass --host to ./configure.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 01 Oct 2019 06:37:35 +0200
+
 logtool (1.2.8-10) unstable; urgency=medium
 
   * Revert the compat bump. This may have side effects that are hard to
diff -u logtool-1.2.8/debian/rules logtool-1.2.8/debian/rules
--- logtool-1.2.8/debian/rules
+++ logtool-1.2.8/debian/rules
@@ -10 +10,2 @@
-       ./configure --prefix=/usr --sysconfdir=/etc/logtool 
--mandir=/usr/share/man
+       touch config.cache # ./configure doesn't create it. keep make from 
rerunning ./configure
+       dh_auto_configure -- --sysconfdir=/etc/logtool

Reply via email to