Source: chuck Version: 1.4.2.0-1 Tags: patch User: debian-cr...@lists.debian.org Usertags: ftcbfs
chuck 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 - also makes debian/rules quite a bit simpler. It also makes cross builds work except for the final link invocation. It uses $(LD), which defaults to bare g++ and isn't substituted by debhelper, because it doesn't have uniform meaning in different projects. Defaulting it to $(CXX) makes this just work and is more reasonable anyway. I'm attaching a patch for your convenience. Helmut
diff --minimal -Nru chuck-1.4.2.0/debian/changelog chuck-1.4.2.0/debian/changelog --- chuck-1.4.2.0/debian/changelog 2023-01-23 23:06:26.000000000 +0100 +++ chuck-1.4.2.0/debian/changelog 2023-04-03 07:23:01.000000000 +0200 @@ -1,3 +1,12 @@ +chuck (1.4.2.0-1.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Fix FTCBFS: (Closes: #-1) + + Let dh_auto_build pass cross tools to make. + + cross.patch: Default LD to CXX as dh_auto_build doesn't pass LD. + + -- Helmut Grohne <hel...@subdivi.de> Mon, 03 Apr 2023 07:23:01 +0200 + chuck (1.4.2.0-1) unstable; urgency=medium * Patch to #include <limits.h> instead of <linux/limits.h> diff --minimal -Nru chuck-1.4.2.0/debian/patches/cross.patch chuck-1.4.2.0/debian/patches/cross.patch --- chuck-1.4.2.0/debian/patches/cross.patch 1970-01-01 01:00:00.000000000 +0100 +++ chuck-1.4.2.0/debian/patches/cross.patch 2023-04-03 07:23:01.000000000 +0200 @@ -0,0 +1,11 @@ +--- chuck-1.4.2.0.orig/src/makefile ++++ chuck-1.4.2.0/src/makefile +@@ -80,7 +80,7 @@ + YACC=bison + CC=gcc + CXX=g++ +-LD=g++ ++LD=$(CXX) + + + ############################# COMPILER FLAGS ################################### diff --minimal -Nru chuck-1.4.2.0/debian/patches/series chuck-1.4.2.0/debian/patches/series --- chuck-1.4.2.0/debian/patches/series 2023-01-23 23:06:26.000000000 +0100 +++ chuck-1.4.2.0/debian/patches/series 2023-04-03 07:23:01.000000000 +0200 @@ -3,3 +3,4 @@ 0004-termios.patch 0005-linux-limits.patch 0005-parallel-make-fix.patch +cross.patch diff --minimal -Nru chuck-1.4.2.0/debian/rules chuck-1.4.2.0/debian/rules --- chuck-1.4.2.0/debian/rules 2023-01-23 23:06:26.000000000 +0100 +++ chuck-1.4.2.0/debian/rules 2023-04-03 07:22:56.000000000 +0200 @@ -8,26 +8,22 @@ export CHUCK_STRICT=1 %: - dh $@ + dh $@ --sourcedirectory=src override_dh_auto_build: mkdir build - $(MAKE) -C src linux-alsa + dh_auto_build -- linux-alsa mv src/chuck build/chuck.alsa - $(MAKE) -C src clean - $(MAKE) -C src linux-pulse + dh_auto_clean + dh_auto_build -- linux-pulse mv src/chuck build/chuck.pulse - $(MAKE) -C src clean - $(MAKE) -C src linux-jack CHUCK_DEBUG=y + dh_auto_clean + dh_auto_build -- linux-jack CHUCK_DEBUG=y docbook-to-man debian/chuck.sgml > build/chuck.1 execute_after_dh_auto_clean: - $(MAKE) -C src clean rm -rf build/ -override_dh_auto_install: - $(MAKE) -C src install DESTDIR=$(CURDIR)/debian/tmp - override_dh_installchangelogs: dh_installchangelogs VERSIONS