Source: speex
Version: 1.2~rc1.2-1
Severity: normal
Tags: patch

libspeex-dbg:amd64 and libspeex-dbg:i386 cannot be installed at the same
time, because they are not Multi-Arch: same. They also cannot be switched
to Multi-Arch: same with their current content, because both contain
/usr/lib/debug/usr/bin/speexdec and /usr/lib/debug/usr/bin/speexenc.

The easiest way to resolve this is to drop the -dbg package and use
automatic -dbgsym packages instead, as in the attached patch. This has
been supported since Debian 9 'stretch', the oldest supported (non-LTS)
Debian suite.

Because of the migration path from -dbg to -dbgsym, in preparing the
patch I had to make an assumption about the version numbering. If the
patch is not applied in 1.2~rc1.2-2, please adjust the version number
in debian/rules to match the first upload where this change was applied
(with a ~ suffix to account for backports or prereleases).

https://salsa.debian.org/debian/speex/-/merge_requests/1 includes
essentially the same change, although it is part of a larger MR that
the speex maintainer might prefer not to apply as-is.

Thanks,
    smcv
>From 0f265a86e1a1d9634c424c95cdc48c8fff59aec7 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Wed, 13 May 2020 11:24:22 +0100
Subject: [PATCH] Drop non-multiarch -dbg package, replacing it with automatic
 -dbgsym

The automatically-generated -dbgsym packages are generated on a
per-binary-package basis, and inherit their Multi-Arch field from
their parent package, so this change results in detached debug symbols
for libspeex1 and libspeexdsp1 being Multi-Arch: same, allowing amd64
and i386 debug symbols to be installed simultaneously.

Signed-off-by: Simon McVittie <[email protected]>
---
 debian/control | 8 --------
 debian/rules   | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/debian/control b/debian/control
index ca1154b..24c12aa 100644
--- a/debian/control
+++ b/debian/control
@@ -97,11 +97,3 @@ Description: Documentation for speex
  emphasis on high-quality music reproduction.
  .
  This package contains the Speex documentation.
-
-Package: libspeex-dbg
-Section: debug
-Priority: extra
-Architecture: any
-Depends: libspeex1 (= ${binary:Version}), libspeexdsp1 (= ${binary:Version})
-Description: debugging symbols for libspeex and libspeexdsp
- This package provides the detached debug symbols for those libraries.
diff --git a/debian/rules b/debian/rules
index e0a2eb8..ea1254f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -164,7 +164,7 @@ binary-arch: install-arch
 	dh_installdocs -a
 	dh_installman -a
 	dh_installchangelogs -a
-	dh_strip -a --dbg-package=libspeex-dbg
+	dh_strip -a --dbgsym-migration='libspeex-dbg (<< 1.2~rc1.2-2~)'
 	dh_compress -a
 	dh_fixperms -a
 	dh_makeshlibs -plibspeex1 -V"libspeex1 (>= 1.2~beta3-1)"
-- 
2.26.2

Reply via email to