[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#983540: binutils-dev: please make foreign binutils-dev installable



Package: binutils-dev
Version: 2.35.2-2
Severity: normal
Tags: patch

Dear Maintainer,

I'm trying to cross build some code that uses libbfd (not for Debian).
However, I can't install binutils-dev:${foreign-arch} because is depends
on binutils.

In #842439, all libraries previously provided by binutils have been
moved to the (then new) libbinutils binary package. At that time,
binutils-dev was changed to depend on both binutils and libbinutils.
However, that dependency on binutils is no longer needed since nothing
in binutils-dev really uses what's left in binutils itself (basically
just the programs).

Beyond dropping that dependency, adding `Multi-Arch: same` makes a
foreign binutils-dev co-installable with a native one.

The attached patch does both things.

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 5.10.0-3-amd64 (SMP w/4 CPU threads)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE=pt_BR:pt:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages binutils-dev depends on:
ii  binutils       2.35.2-2
ii  libbinutils    2.35.2-2
ii  libctf-nobfd0  2.35.2-2
ii  libctf0        2.35.2-2

binutils-dev recommends no packages.

binutils-dev suggests no packages.

-- no debconf information
--- debian/control.orig	2021-02-25 16:27:19.056189876 -0300
+++ debian/control	2021-02-25 16:27:34.484574772 -0300
@@ -122,8 +122,9 @@
 
 Package: binutils-dev
 Architecture: any
+Multi-Arch: same
 Priority: optional
-Depends: binutils (= ${binary:Version}), libbinutils (= ${binary:Version}),
+Depends: libbinutils (= ${binary:Version}),
   libctf0 (= ${binary:Version}), libctf-nobfd0 (= ${binary:Version})
 Conflicts: libbfd-dev
 Provides: libbfd-dev

Attachment: signature.asc
Description: PGP signature


Reply to: