Source: gpsbabel Version: 1.5.4-2 Tags: patch User: helm...@debian.org Usertags: rebootstrap
gpsbabel fails to cross build from source, because it configures for the build architecture. The simplest way of passing the missing --host flag to ./configure is deferring that to dh_auto_configure. The attached patch implements that, but it does not make gpsbabel cross buildable, because it fails later running help2man. I don't have any good solutions for help2man. The known ones include: 1. Do not use help2man. 2. Put help2man output into arch:all packages. 3. Ship pregenerated manual pages in the source package. 4. Build the package twice: Once for help2man and once for real. None of these are particularly attractive. Please consider applying the attached patch anyway and close this bug when doing so. That will make the help2man issue more visible to other contributors. Helmut
diff -u gpsbabel-1.5.4/debian/changelog gpsbabel-1.5.4/debian/changelog --- gpsbabel-1.5.4/debian/changelog +++ gpsbabel-1.5.4/debian/changelog @@ -1,3 +1,11 @@ +gpsbabel (1.5.4-2.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Improve cross building: Let dh_auto_configure pass --host to + ./configure. (Closes: #-1) + + -- Helmut Grohne <hel...@subdivi.de> Tue, 24 Oct 2017 20:12:25 +0200 + gpsbabel (1.5.4-2) unstable; urgency=medium * [cc58f71] Move git repository to github. diff -u gpsbabel-1.5.4/debian/rules gpsbabel-1.5.4/debian/rules --- gpsbabel-1.5.4/debian/rules +++ gpsbabel-1.5.4/debian/rules @@ -39,7 +39,7 @@ dh_testdir dh_autotools-dev_updateconfig mkdir -p xmldoc/autogen - $(CONFENV) ./configure \ + $(CONFENV) dh_auto_configure -- \ --with-zlib=system \ --with-doc=$(DOCTEMP) \ --prefix=/usr