Source: csh
Version: 20110502-5
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

csh fails to cross build from source, because it uses the build
architecture compiler as a bmake default. Exporting a suitable CC fixes
the cross build. Please consider applying the attached patch.

Helmut
diff --minimal -Nru csh-20110502/debian/changelog csh-20110502/debian/changelog
--- csh-20110502/debian/changelog       2019-09-22 10:10:45.000000000 +0200
+++ csh-20110502/debian/changelog       2019-11-19 06:20:44.000000000 +0100
@@ -1,3 +1,10 @@
+csh (20110502-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dpkg's buildtools.mk supply ${CC}. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Tue, 19 Nov 2019 06:20:44 +0100
+
 csh (20110502-5) unstable; urgency=medium
 
   * Fix for segfault on eval. Patch thanks to Keith Thompson, Graham Inggs.
diff --minimal -Nru csh-20110502/debian/rules csh-20110502/debian/rules
--- csh-20110502/debian/rules   2019-09-22 10:10:45.000000000 +0200
+++ csh-20110502/debian/rules   2019-11-19 06:20:42.000000000 +0100
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/buildtools.mk
+export CC
 # Standard options minus `-Wall', since upstream uses `-Werror'.
 # Use -w to disable -Werror, due to #warning misuse in <bsd/vis.h>
 export CFLAGS := -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)  -w

Reply via email to