Source: cgit
Version: 1.2.1+git2.18.0-1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

cgit fails to cross build from source. It actually successfully runs
dh_auto_build and then during dh_auto_install it notices that the flags
have changed and that it needs to rebuild. This happens, because
debhelper only passes cross tools for dh_auto_build and not for
dh_auto_install. The attached patch also passes them for
dh_auto_install. Please consider applying it.

Helmut
diff --minimal -Nru cgit-1.2.1+git2.18.0/debian/changelog 
cgit-1.2.1+git2.18.0/debian/changelog
--- cgit-1.2.1+git2.18.0/debian/changelog       2018-12-08 18:38:21.000000000 
+0100
+++ cgit-1.2.1+git2.18.0/debian/changelog       2020-03-06 19:49:20.000000000 
+0100
@@ -1,3 +1,10 @@
+cgit (1.2.1+git2.18.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Also pass cross flags to make install. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Fri, 06 Mar 2020 19:49:20 +0100
+
 cgit (1.2.1+git2.18.0-1) unstable; urgency=medium
 
   * New upstream release (Closes: #915659)
diff --minimal -Nru cgit-1.2.1+git2.18.0/debian/rules 
cgit-1.2.1+git2.18.0/debian/rules
--- cgit-1.2.1+git2.18.0/debian/rules   2018-12-08 18:38:21.000000000 +0100
+++ cgit-1.2.1+git2.18.0/debian/rules   2020-03-06 19:49:20.000000000 +0100
@@ -12,6 +12,9 @@
 # package maintainers to append LDFLAGS
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+DPKG_EXPORT_BUILD_TOOLS=1
+-include /usr/share/dpkg/buildtools.mk
+
 %:
        dh $@ --with apache2
 
@@ -22,7 +25,7 @@
        dh_auto_build -- V=1
 
 override_dh_auto_install:
-       dh_auto_install -- install-man
+       dh_auto_install -- 'CC=$(CC)' install-man
        mv debian/cgit/usr/share/cgit/cgit.cgi debian/cgit/usr/lib/cgit
 
 override_dh_auto_test:

Reply via email to