Source: tinyirc
Version: 1:1.1.dfsg.1-3
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

tinyirc fails to cross build from source, because debian rules passes a
build architecture compiler to make. Instead, using dh_auto_build would
pass proper tools. Please consider applying the attached patch.

Helmut
diff --minimal -Nru tinyirc-1.1.dfsg.1/debian/changelog 
tinyirc-1.1.dfsg.1/debian/changelog
--- tinyirc-1.1.dfsg.1/debian/changelog 2012-08-22 15:26:30.000000000 +0200
+++ tinyirc-1.1.dfsg.1/debian/changelog 2020-02-09 20:27:53.000000000 +0100
@@ -1,3 +1,11 @@
+tinyirc (1:1.1.dfsg.1-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Let dh_auto_build pass cross tools to make and stop
+    overriding CC. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 09 Feb 2020 20:27:53 +0100
+
 tinyirc (1:1.1.dfsg.1-3) unstable; urgency=low
 
   * New maintainer (Closes: #660510).
diff --minimal -Nru tinyirc-1.1.dfsg.1/debian/rules 
tinyirc-1.1.dfsg.1/debian/rules
--- tinyirc-1.1.dfsg.1/debian/rules     2012-08-17 15:23:29.000000000 +0200
+++ tinyirc-1.1.dfsg.1/debian/rules     2020-02-09 20:27:51.000000000 +0100
@@ -17,8 +17,8 @@
                -g tinyirc.c -o tinyirc -lncurses
 
 override_dh_auto_build: man
-       $(MAKE) tinyirc \
-               CC='gcc' \
+       dh_auto_build -- \
+               tinyirc \
                CFLAGS='$(CPPFLAGS) $(CFLAGS) $(LDFLAGS)' \
                LIBS='-lncurses' \
                DEFINES='-DPOSIX -DDEFAULTSERVER=\"irc.freenode.org\" 
-DDEFAULTPORT=6667'

Reply via email to