Package: binutils-multiarch Version: 2.20.51.20100227-1 Severity: grave Justification: renders package uninstallable
When I try to install binutils-multiarch from experimental, it errors out: Adding `diversion of /usr/lib/libopcodes.a to /usr/lib/libopcodes-single.a by binutils-multiarch' dpkg: error processing /var/cache/apt/archives/binutils-multiarch_2.20.51.20100227-1_i386.deb (--unpack): trying to overwrite '/usr/bin/elfedit', which is also in package binutils 2.20.51.20100227-1 dpkg-deb: subprocess paste killed by signal (Broken pipe) Probably this is because in version 2.21, as binutils/NEWS declares, * A new tool - elfedit - has been added to directly manipulate ELF format binaries. This patch (untested) adds it to the list of diverted binaries. Maybe it could save you some time. Thanks, Jonathan -- %< -- Subject: binutils-multiarch: add diversion for /usr/bin/elfedit A new tool has been added to binutils; divert it like the rest of them. Without this diversion, because of this file conflict the updated binutils-multiarch does not install cleanly. --- debian/binutils-multiarch.postrm | 2 +- debian/binutils-multiarch.preinst | 2 +- debian/changelog | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/debian/binutils-multiarch.postrm b/debian/binutils-multiarch.postrm index 5fcf853..73c239d 100644 --- a/debian/binutils-multiarch.postrm +++ b/debian/binutils-multiarch.postrm @@ -5,7 +5,7 @@ set -e if [ "$1" = "remove" -o "$1" = "abort-install" ]; then for f in size objdump ar strings ranlib objcopy addr2line \ - readelf nm strip gprof; do + readelf elfedit nm strip gprof; do dpkg-divert --package binutils-multiarch \ --remove --rename \ --divert /usr/bin/$f.single /usr/bin/$f diff --git a/debian/binutils-multiarch.preinst b/debian/binutils-multiarch.preinst index d3ca3c0..b9374f2 100644 --- a/debian/binutils-multiarch.preinst +++ b/debian/binutils-multiarch.preinst @@ -5,7 +5,7 @@ set -e if [ install = "$1" -o upgrade = "$1" ]; then for f in size objdump ar strings ranlib objcopy addr2line \ - readelf nm strip gprof; do + readelf elfedit nm strip gprof; do dpkg-divert --package binutils-multiarch \ --add --rename \ --divert /usr/bin/$f.single /usr/bin/$f diff --git a/debian/changelog b/debian/changelog index 8491b8c..a18e1f2 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +binutils (2.20.51.20100227-1.1) local; urgency=low + + * Add diversion for elfedit in binutils-multiarch. + + -- Jonathan Nieder <jrnie...@gmail.com> Wed, 31 Mar 2010 23:46:14 -0500 + binutils (2.20.51.20100227-1) experimental; urgency=low * Snapshot, taken from the trunk 20100227. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org