Source: textdraw
Version: 0.2+ds-0+nmu1
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

textdraw fails to cross build from source, because debian/rules hard
codes the build architecture compiler. I'm attaching a patch for your
convenience.

Helmut
diff --minimal -Nru textdraw-0.2+ds/debian/changelog 
textdraw-0.2+ds/debian/changelog
--- textdraw-0.2+ds/debian/changelog    2013-09-22 13:04:08.000000000 +0200
+++ textdraw-0.2+ds/debian/changelog    2022-11-27 08:54:37.000000000 +0100
@@ -1,3 +1,10 @@
+textdraw (0.2+ds-0+nmu1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Don't hard code the build architecture compiler. (Closes: #-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Sun, 27 Nov 2022 08:54:37 +0100
+
 textdraw (0.2+ds-0+nmu1) unstable; urgency=low
 
   [ Cyril Brulebois ]
diff --minimal -Nru textdraw-0.2+ds/debian/rules textdraw-0.2+ds/debian/rules
--- textdraw-0.2+ds/debian/rules        2013-09-22 13:04:08.000000000 +0200
+++ textdraw-0.2+ds/debian/rules        2022-11-27 08:53:11.000000000 +0100
@@ -1,7 +1,9 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/buildtools.mk
+
 override_dh_auto_build:
-       gcc td.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -Wall -lncurses -lm -o td
+       $(CC) td.c $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -Wall -lncurses -lm -o td
 
 override_dh_auto_install:
        ln -sf td   textdraw

Reply via email to