Source: morsegen
Version: 0.2.1-4
Tags: patch
User: [email protected]
Usertags: ftcbfs

morsegen fails to cross build from source, because debian/rules hard
codes the build architecture compiler (gcc). I'm attaching a patch to
use the host one for your convenience.

Helmut
diff --minimal -Nru morsegen-0.2.1/debian/changelog 
morsegen-0.2.1/debian/changelog
--- morsegen-0.2.1/debian/changelog     2022-01-18 15:37:00.000000000 +0100
+++ morsegen-0.2.1/debian/changelog     2024-10-30 15:31:03.000000000 +0100
@@ -1,3 +1,10 @@
+morsegen (0.2.1-4.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Use the host architecture compiler. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Wed, 30 Oct 2024 15:31:03 +0100
+
 morsegen (0.2.1-4) unstable; urgency=medium
 
   * adopted the package. Closes: #920109
diff --minimal -Nru morsegen-0.2.1/debian/rules morsegen-0.2.1/debian/rules
--- morsegen-0.2.1/debian/rules 2022-01-18 15:37:00.000000000 +0100
+++ morsegen-0.2.1/debian/rules 2024-10-30 15:30:53.000000000 +0100
@@ -5,6 +5,8 @@
 export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
 export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
 
+include /usr/share/dpkg/buildtools.mk
+
 CFLAGS   = $(shell dpkg-buildflags --get CFLAGS)
 CPPFLAGS = $(shell dpkg-buildflags --get CPPFLAGS)
 LDFLAGS  = $(shell dpkg-buildflags --get LDFLAGS)
@@ -13,7 +15,7 @@
        $(MAKE) -C debian -f pod2man.mk PACKAGE=morsegen makeman
 
 override_dh_auto_build: man
-       gcc $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o morsegen *.c
+       $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o morsegen *.c
 
 %:
        dh  $@

Reply via email to