Source: kcc
Version: 2.3-12.1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

kcc fails to cross build from source, because it does not pass cross
tools to make. The easiest way of doing so - using dh_auto_build - does
not entirely fix the cross build, because it strips with the build
architecture strip via install -s. Doing so also breaks generation of
-dbgsym packages as well as DEB_BUILD_OPTIONS=nostrip. The attached
patch also disables any install-time stripping and solves all mentioned
problems. Please consider applying it.

Helmut
diff -u kcc-2.3/debian/changelog kcc-2.3/debian/changelog
--- kcc-2.3/debian/changelog
+++ kcc-2.3/debian/changelog
@@ -1,3 +1,12 @@
+kcc (2.3-12.2) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Let dh_auto_build pass cross tools to make.
+    + Defer all stripping to dh_strip.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 06 Sep 2020 14:16:37 +0200
+
 kcc (2.3-12.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -u kcc-2.3/debian/rules kcc-2.3/debian/rules
--- kcc-2.3/debian/rules
+++ kcc-2.3/debian/rules
@@ -8,7 +8,7 @@
 #export DH_VERBOSE=1
 
 CFLAGS = -O2 -Wall
-INSTALL = install
+INSTALL = install --strip-program=true
 INSTALL_FILE    = $(INSTALL) -p    -o root -g root  -m  644
 INSTALL_PROGRAM = $(INSTALL) -p    -o root -g root  -m  755
 INSTALL_SCRIPT  = $(INSTALL) -p    -o root -g root  -m  755
@@ -24,10 +24,7 @@
 build: build-stamp
 build-stamp:
        dh_testdir
-
-       # Add here commands to compile the package.
-       $(MAKE) CFLAGS="$(CFLAGS)"
-
+       dh_auto_build -- CFLAGS="$(CFLAGS)"
        touch build-stamp
 
 clean:

Reply via email to