Source: mgt
Version: 2.31-8
Tags: patch
User: [email protected]
Usertags: ftcbfs

mgt fails to cross build from source, because it uses the build
architecture compiler as the linker via the LD variable. While there is
wide consensus on the CC variable, LD sometimes contains cc and other
times ld. Therefore dh_auto_build does not pass it and the default is
being used. The attached patch passes LD explicitly and thus makes mgt
cross buildable. Please consider applying it. An alternative approach
would be updating the upstream Makefile to set:

    LD   = $(CC)

Helmut
diff --minimal -Nru mgt-2.31/debian/changelog mgt-2.31/debian/changelog
--- mgt-2.31/debian/changelog   2021-10-24 06:14:37.000000000 +0200
+++ mgt-2.31/debian/changelog   2022-01-08 01:21:39.000000000 +0100
@@ -1,3 +1,10 @@
+mgt (2.31-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Explicitly pass LD to make. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sat, 08 Jan 2022 01:21:39 +0100
+
 mgt (2.31-8) unstable; urgency=medium
 
   * Rewrite rules using debhelper.
diff --minimal -Nru mgt-2.31/debian/rules mgt-2.31/debian/rules
--- mgt-2.31/debian/rules       2021-10-24 06:14:37.000000000 +0200
+++ mgt-2.31/debian/rules       2022-01-08 01:21:38.000000000 +0100
@@ -3,6 +3,9 @@
 %:
        dh $@
 
+override_dh_auto_build:
+       dh_auto_build -- 'LD=$$(CC)'
+
 override_dh_install:
        dh_install mailgo mgt mgt2short wrapmgt usr/games
        dh_install Rules Sample.01 Sample.02 usr/lib/games/mgt

Reply via email to