Source: binutils
Version: 2.43.90.20250122-2
Tags: patch
User: hel...@debian.org
Usertags: rebootstrap

Hi Matthias,

the binutils-gold split accidentally broke targeted cross binutils. The
interpolation of @gold_archs@ does not practically work due to the order
of sed expressions. I'm attaching a patch for your convenience.

Helmut
diff --minimal -Nru binutils-2.43.90.20250122/debian/changelog 
binutils-2.43.90.20250122/debian/changelog
--- binutils-2.43.90.20250122/debian/changelog  2025-01-23 03:37:28.000000000 
+0100
+++ binutils-2.43.90.20250122/debian/changelog  2025-01-23 11:49:32.000000000 
+0100
@@ -1,3 +1,10 @@
+binutils (2.43.90.20250122-2.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix interpolation of @gold_archs@ in targeted cross toolchains. (Closes: 
#-1)
+
+ -- Helmut Grohne <hel...@subdivi.de>  Thu, 23 Jan 2025 11:49:32 +0100
+
 binutils (2.43.90.20250122-2) unstable; urgency=medium
 
   * Fix binutils-gold dependencies.
diff --minimal -Nru binutils-2.43.90.20250122/debian/rules 
binutils-2.43.90.20250122/debian/rules
--- binutils-2.43.90.20250122/debian/rules      2025-01-22 09:35:36.000000000 
+0100
+++ binutils-2.43.90.20250122/debian/rules      2025-01-23 11:49:24.000000000 
+0100
@@ -468,8 +468,9 @@
 
 stamps/control: debian/control.in debian/control.cross.in
 ifneq (,$(TARGET))
-       sed -n -e 's/@dpkg_dev@/$(DPKG_DEV)/;/^Package: 
binutils-for-build$$/q;p' \
+       sed -n -e 's/@dpkg_dev@/$(DPKG_DEV)/' \
            -e 's/@gold_archs@/$(gold_targets)/' \
+           -e '/^Package: binutils-for-build$$/q;p' \
                < debian/control.in > debian/control
        sed -e "s/@target@/$(subst _,-,$(DEB_TARGET_GNU_TYPE))/g" \
                -e "s/@host_archs@/any/" \

Reply via email to