- Package:
- libpcre2-dev
- Source:
- libpcre2-dev
- Description:
- New Perl Compatible Regular Expression Library - development files
- Submitter:
- Christian Klein
- Date:
- 2026-09-01 12:21:01 UTC
- Severity:
- normal
The latest upgrade broke installation of libpcre2-dev:i386 alongside
libpcre2-dev:amd64.
Building wine requires the packages installed.
Unpacking libpcre2-dev:amd64 (10.48-1) over (10.46-1+b2)…
dpkg: error processing archive
/var/cache/apt/archives/libpcre2-dev_10.48-1_amd64.deb (--unpack):
trying to overwrite shared '/usr/bin/pcre2-config', which is different from
other instances of package libpcre2-dev:amd64
Errors were encountered while processing:
/var/cache/apt/archives/libpcre2-dev_10.48-1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Looking at pcre2-config, it now includes the architecture triplet, thus making
it no longer mutiarch installable. Older versions of the package shipped
without that extra case statement.
--- 32/usr/bin/pcre2-config 2026-08-31 22:37:22.000000000 +0200
+++ 64/usr/bin/pcre2-config 2026-08-31 22:37:22.000000000 +0200
@@ -30,7 +30,7 @@
libR=
libS=
-case "${prefix}/lib/i386-linux-gnu" in
+case "${prefix}/lib/x86_64-linux-gnu" in
# system locations on Linux, no -L needed
/usr/lib|/usr/lib32|/usr/lib64|/usr/lib/*-gnu*)
;;
@@ -40,7 +40,7 @@
/usr/lib/64|/usr/lib/amd*|/usr/lib/sparc*|/usr/lib/ppc*)
;;
*)
- libS="-L${prefix}/lib/i386-linux-gnu"
+ libS="-L${prefix}/lib/x86_64-linux-gnu"
;;
esac
Control: severity -1 serious necessarily need to be Multi-Arch: same. Maybe libpcre2-dev does to satisfy some m-a chain. If it does, then it must fulfill the property (thus adjusting severity). Maybe libpcre2-dev does not need to be M-A: same, then it can just drop that flag from d/control. Best, Chris
Hi, No, I think this is just my fault - when upgrading from 10.46 I looked at the merge conflict in pcre2-config.in and my previous notes on why I'd patched it, and incorrectly thought that the issue was that its _output_ should not vary on our various architectures. I think the right answer is probably to patch it back to how it was in in 10.46 i.e. just: " libR= libS= " I plan to do this today - Helmut, would you care to confirm that's correct, please? Apologies for the inconvenience (I did a bunch of testing of the 10.48 RC, but that didn't pick this up). Regards, Matthew
Hi Chris and Matthew,
I concur that usually -dev packages do not require M-A:same for cross
building. However, it is very convenient for developers to have them
M-A:same (which is also why you see these bug reports) as they can use a
single development environment for native and cross building.
This sounds very plausible. What I see in unstable is adding
-L/usr/lib/${DEB_HOST_MULTIARCH} to libS. Dropping that code (which
seems to be the only architecture-dependent aspect) should not pose any
downsides on Debian, because that location is on the default search
path. This is the kind of patch that exists for Debian and does not have
to be upstreamed as it is not relevant to other distributions.
Helmut
We believe that the bug you reported is fixed in the latest version of pcre2, which is due to be installed in the Debian FTP archive. A summary of the changes between this version and the previous one is attached. Thank you for reporting the bug, which will now be closed. If you have further comments please address them to 1146381@bugs.debian.org, and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Matthew Vernon <matthew@debian.org> (supplier of updated pcre2 package) (This message was generated automatically at their request; if you believe that there is a problem with it please contact the archive administrators by mailing ftpmaster@ftp-master.debian.org) Format: 1.8 Date: Tue, 01 Sep 2026 12:54:23 +0100 Source: pcre2 Architecture: source Version: 10.48-2 Distribution: unstable Urgency: high Maintainer: Matthew Vernon <matthew@debian.org> Changed-By: Matthew Vernon <matthew@debian.org> Closes: 1146381 Changes: pcre2 (10.48-2) unstable; urgency=high . * remove unnecessary libS logic from pcre2-config.in (closes: #1146381) Checksums-Sha1: b1955bd809c546fa71d0e2a9892a88e1a7fd11be 2337 pcre2_10.48-2.dsc 44b1576bca756ec589fd787604c784a83d0082b3 7846 pcre2_10.48-2.diff.gz Checksums-Sha256: d6b54ecaaecd7bd7ecbc2f0c99ecd3541427e959c3f567804536dc7fd7158dd6 2337 pcre2_10.48-2.dsc f6d047d92aff199343e80d7c21b6667020b7fa9c33130fca4d661eb856b9f446 7846 pcre2_10.48-2.diff.gz Files: 1397d81f4cef2ee5b43a589bd7cfba69 2337 libs optional pcre2_10.48-2.dsc cda1fcfd54347613416ef7a1e1cb1abb 7846 libs optional pcre2_10.48-2.diff.gz -----BEGIN PGP SIGNATURE----- iQJHBAEBCgAxFiEEuk75yE35bTfYoeLUEvTSHI9qY8gFAmqWvZ4THG1hdHRoZXdA ZGViaWFuLm9yZwAKCRAS9NIcj2pjyDEIEACBeJd394ZWcfZDjCZsvE90yTG33VLk 7Cfew4OVeTh5Pp3YDogVl8bxar4RslNetngCj66NcS2nqcOjYf3DhiQ++irS72uI Pv0dvUt2E6pgoXJCnQ52FyXf0HOjM5v/Q+juBFm2FqOn+A2wUGgVPzSUXMIhBuuL RQEi8E65md2tMufCzrS/nBWwQ26qvsbCcsPnq7CBn5qtuvGtGq7HC8bHY++xIzao AOrTQUecyL/XcsAOHZqL6Ua9ZAGJvB61XiWxuiBp6GOmvC98x6LC1spvHlcUvDLo xnnvVABXDM+Q9kY5UWKMcO29VctViSGUYoKPFncnAzNmIurflkKqQHVuo3T439zx /DcnplfG2cvtyglzqhkRkqgdt1XV61gFWCvJQp/e7kBx6Sr+30o55KsNR4E4C7wi DsiZ/3Vo1am7pPl2+GmgTWCRkkJRvtIPM0t0y34Daj7UecOA5Q6qSqN5LI+obAog BCnrX/6dEF70p0F37e9U3R9ZjM5ZUzl+xisNfejmfdtJHuCHjiMDU40J1jBhv/pR 7YpbzUjkCPvAWR//Dt3Ymse/RAEFCEHtdrAJ1NtDiOeJuyh+1Ocw7VlGdd6RKT6/ bHOUXEM9PQWEz4J7R0Xd2Z45EKH4LVA/vGKR33AVNoQC0Yv1gVZTlmBQyzt+cLlu EHmSrnEc+YB3kw== =gMH5 -----END PGP SIGNATURE-----