Bug#981310: tcm FTCBFS: uses the build architecture compiler
Source: tcm
Version: 2.20+TSQD-6
Tags: patch
User: debian-cross@lists.debian.org
Usertags: ftcbfs
tcm fails to cross build from source, because it does not pass cross
tools to make. Since it does not use the standard variable names, using
dh_auto_build is not helpful here. Passing them explicitly makes tcm
cross build. Please consider applying the attached patch.
Helmut
diff --minimal -Nru tcm-2.20+TSQD/debian/changelog tcm-2.20+TSQD/debian/changelog
--- tcm-2.20+TSQD/debian/changelog 2020-08-02 22:17:38.000000000 +0200
+++ tcm-2.20+TSQD/debian/changelog 2021-01-28 16:57:06.000000000 +0100
@@ -1,3 +1,9 @@
+tcm (2.20+TSQD-7) UNRELEASED; urgency=medium
+
+ * Fix FTCBFS: Pass cross tools to make. (Closes: #-1)
+
+ -- Helmut Grohne <helmut@subdivi.de> Thu, 28 Jan 2021 16:57:06 +0100
+
tcm (2.20+TSQD-6) unstable; urgency=medium
* QA upload.
diff --minimal -Nru tcm-2.20+TSQD/debian/rules tcm-2.20+TSQD/debian/rules
--- tcm-2.20+TSQD/debian/rules 2020-08-02 22:08:21.000000000 +0200
+++ tcm-2.20+TSQD/debian/rules 2021-01-28 16:57:06.000000000 +0100
@@ -3,6 +3,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+include /usr/share/dpkg/buildtools.mk
+
CFLAGS = -Wall -g
CFLAGS += -fcommon
@@ -27,7 +29,9 @@
build-stamp: configure-stamp
dh_testdir
- $(MAKE) CFLAGS='$(CFLAGS) -DCONFIG_INSTALL=\"/etc/tcm/\" -DTCM_INSTALL_DIR=\"/usr\" -DTCM_INSTALL_LIB=\"/usr/lib/\" -DTCM_INSTALL_SHARE=\"/usr/share/doc/tcm-doc/\" -DCONFIG_FILE=\"tcm.conf\" -DHELP_DIR=\"/usr/share/doc/tcm-doc/help/\" -DCOLOR_FILE=\"colorrgb.txt\" -DBANNER_FILE=\"banner.ps\"' \
+ $(MAKE) Cc='$(CC)' \
+ CC='$(CXX)' \
+ CFLAGS='$(CFLAGS) -DCONFIG_INSTALL=\"/etc/tcm/\" -DTCM_INSTALL_DIR=\"/usr\" -DTCM_INSTALL_LIB=\"/usr/lib/\" -DTCM_INSTALL_SHARE=\"/usr/share/doc/tcm-doc/\" -DCONFIG_FILE=\"tcm.conf\" -DHELP_DIR=\"/usr/share/doc/tcm-doc/help/\" -DCOLOR_FILE=\"colorrgb.txt\" -DBANNER_FILE=\"banner.ps\"' \
TCM_INSTALL_DIR=/usr \
CONFIG_INSTALL=/etc/tcm/ \
TCM_INSTALL_DOC=/usr/share/doc/tcm-doc \
Reply to: