Source: avrp
Version: 1.0beta3-8
Tags: patch
User: debian-cr...@lists.debian.org
Usertags: ftcbfs

The last avrp upload regressed cross building. Due to the direct make
invocation, no cross tools are passed to make anymore. Beyond that, the
upstream Makefile.linux uses LD, which is not substituted by
dh_auto_build. I'm attaching a patch that makes it cross buildable
again.

Helmut
diff --minimal -Nru avrp-1.0beta3/debian/changelog 
avrp-1.0beta3/debian/changelog
--- avrp-1.0beta3/debian/changelog      2025-02-04 07:59:37.000000000 +0100
+++ avrp-1.0beta3/debian/changelog      2025-02-26 12:03:20.000000000 +0100
@@ -1,3 +1,12 @@
+avrp (1.0beta3-8.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + cross.patch: Default non-standard LD variable from CC.
+    + Let dh_auto_build pass cross tools to make.
+
+ -- Helmut Grohne <hel...@subdivi.de>  Wed, 26 Feb 2025 12:03:20 +0100
+
 avrp (1.0beta3-8) unstable; urgency=medium
 
   * Team upload.
diff --minimal -Nru avrp-1.0beta3/debian/patches/cross.patch 
avrp-1.0beta3/debian/patches/cross.patch
--- avrp-1.0beta3/debian/patches/cross.patch    1970-01-01 01:00:00.000000000 
+0100
+++ avrp-1.0beta3/debian/patches/cross.patch    2025-02-26 12:03:20.000000000 
+0100
@@ -0,0 +1,11 @@
+--- avrp-1.0beta3.orig/Makefile.linux
++++ avrp-1.0beta3/Makefile.linux
+@@ -3,7 +3,7 @@
+ #********************************************************************
+ 
+ CC = gcc
+-LD = gcc
++LD = $(CC)
+ 
+ SOURCES = avrp.c io_linux.c talking.c file.c memtalk.c
+ 
diff --minimal -Nru avrp-1.0beta3/debian/patches/series 
avrp-1.0beta3/debian/patches/series
--- avrp-1.0beta3/debian/patches/series 2025-02-04 07:59:37.000000000 +0100
+++ avrp-1.0beta3/debian/patches/series 2025-02-26 12:03:20.000000000 +0100
@@ -4,3 +4,4 @@
 40_manpage_hyphen.patch
 50_manpage_fix.patch
 60_return_type.patch
+cross.patch
diff --minimal -Nru avrp-1.0beta3/debian/rules avrp-1.0beta3/debian/rules
--- avrp-1.0beta3/debian/rules  2025-02-04 07:59:37.000000000 +0100
+++ avrp-1.0beta3/debian/rules  2025-02-26 12:03:19.000000000 +0100
@@ -13,7 +13,7 @@
        $(MAKE) -f Makefile.linux clean
 
 override_dh_auto_build:
-       $(MAKE) -f Makefile.linux
+       dh_auto_build --buildsystem=makefile -- -f Makefile.linux
 
 override_dh_auto_install:
        dh_auto_install -- -f Makefile.linux

Reply via email to