Control: tags -1 + patch

On Thu, 08 Jan 2026 at 09:57:59 -0300, Carlos Henrique Lima Melara wrote:
> On Wed, Jan 07, 2026 at 09:29:39PM -0500, Andres Freund wrote:
> > On unstable, neither libcurl4-openssl-dev:amd64 and 
> > libcurl4-openssl-dev:i386
> > nor libcurl4-gnutls-dev:amd64 and libcurl4-gnutls-dev:i386 can be installed 
> > at
> > the same time anymore, failing with:
> > 
> > dpkg: error processing archive 
> > /var/cache/apt/archives/libcurl4-openssl-dev_8.18.0~rc3-1_i386.deb 
> > (--unpack):
> >  trying to overwrite shared '/usr/bin/curl-config', which is different from 
> > other instances of package libcurl4-openssl-dev:i386
...
> > The difference between the two files is amd64 is built with 
> > -fcf-protection, but i386 isn't.
> 
> Indeed there are multiarch hints in tracker warning about this and we
> seem to have missed. Thanks for the report, I'll take a look soon_ish_
> and write an autopkgtest to catch this problem before we upload.

The attached patch seems to be enough, following the same pattern for
LDFLAGS that was already used for CFLAGS and CPPFLAGS (at least it works
for amd64, arm64 and i386, I haven't tried other combinations).

    smcv
>From 3bea9efbc5f8f4db6fb5f694e9d1cc152a22fe1c Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Wed, 14 Jan 2026 15:21:46 +0000
Subject: [PATCH] d/rules: Replace LDFLAGS in curl-config(1) for multiarch
 co-installability

Closes: #1124987
Signed-off-by: Simon McVittie <[email protected]>
---
 debian/rules | 1 +
 1 file changed, 1 insertion(+)

diff --git a/debian/rules b/debian/rules
index f210106ad7..934a7c16a9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -195,6 +195,7 @@ endif
 	    -e "/CFLAGS/s|CFLAGS=.\+\(-DCURL_PATCHSTAMP\)|CFLAGS=\\\`dpkg-buildflags --get CFLAGS \| sed -e \"/-ffile-prefix-map=/s\|\\\\(-ffile-prefix-map=\\\\)/[^ ]*=.\|\|\"\\\` \1|" \
 	    -e "/-D_DEB_HOST_ARCH=/s|-D_DEB_HOST_ARCH=\\\\\"[^ ']*\\\\\"||" \
 	    -e "/CPPFLAGS/s|CPPFLAGS=.\+\'|CPPFLAGS=\\\`dpkg-buildflags --get CPPFLAGS\\\`'\"|" \
+	    -e "/LDFLAGS/s|LDFLAGS=.\+\'|LDFLAGS=\\\`dpkg-buildflags --get LDFLAGS\\\`'\"|" \
 	    -i `find . -name curl-config`
 # When we get here, everything has been properly installed.  Because
 # of debhelper-compat 13, we have to remove some files that are
-- 
2.47.3

Reply via email to