Source: binutils-avr
Version: 2.43.1-1
Tags: patch
User: [email protected]
Usertags: ftcbfs

binutils-avr fails to cross build from source, because debian/rules
forces the use of the build architecture compiler where a host
architecture compiler should be used. I'm attaching a patch to stop
doing that.

Helmut
diff --minimal -Nru binutils-avr-2.43.1/debian/changelog 
binutils-avr-2.43.1/debian/changelog
--- binutils-avr-2.43.1/debian/changelog        2024-09-29 23:32:21.000000000 
+0200
+++ binutils-avr-2.43.1/debian/changelog        2024-10-27 08:55:55.000000000 
+0100
@@ -1,3 +1,10 @@
+binutils-avr (2.43.1-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: Don't force the build architecture compiler. (Closes: #-1)
+
+ -- Helmut Grohne <[email protected]>  Sun, 27 Oct 2024 08:55:55 +0100
+
 binutils-avr (2.43.1-1) unstable; urgency=low
   * Switch to mainstream binutils (Closes: #855849)
   * Fix fail to build source after build (Closes: #1044001)
diff --minimal -Nru binutils-avr-2.43.1/debian/rules 
binutils-avr-2.43.1/debian/rules
--- binutils-avr-2.43.1/debian/rules    2024-09-29 23:32:21.000000000 +0200
+++ binutils-avr-2.43.1/debian/rules    2024-10-27 08:55:50.000000000 +0100
@@ -65,7 +65,7 @@
 
        dh_update_autotools_config
        # Add here commands to configure the package.
-       cd $(BUILD_TREE) && env CC="gcc" 
CFLAGS="-Wno-error=unused-but-set-variable -Wno-error=unused-but-set-parameter" 
CPPFLAGS="$(CPPFLAGS)" ../src/configure $(CONFARGS)
+       cd $(BUILD_TREE) && env CFLAGS="-Wno-error=unused-but-set-variable 
-Wno-error=unused-but-set-parameter" CPPFLAGS="$(CPPFLAGS)" ../src/configure 
$(CONFARGS)
        make -C $(BUILD_TREE) maybe-configure-bfd
        make -C $(BUILD_TREE)/bfd/ headers
        touch configure-stamp

Reply via email to