binutils/binutils-multiarch file conflict

Bug #737887 reported by Steve Langasek
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
binutils (Ubuntu)
Fix Released
High
Steve Langasek
Natty
Fix Released
High
Steve Langasek
gcc-4.4 (Ubuntu)
Fix Released
High
Steve Langasek
Natty
Fix Released
High
Steve Langasek

Bug Description

Binary package hint: binutils

With the latest upload, binutils fails to upgrade when binutils-multiarch is also installed:

(Reading database ... 21362 files and directories currently installed.)
Preparing to replace binutils 2.21.0.20110302-2ubuntu1 (using .../binutils_2.21.0.20110302-2ubuntu2_amd64.deb) ...
Unpacking replacement binutils ...
dpkg: error processing /mirror/ubuntu/pool/main/b/binutils/binutils_2.21.0.20110302-2ubuntu2_amd64.deb (--unpack):
 trying to overwrite '/lib64/libiberty.a', which is also in package binutils-multiarch 2.21.0.20110302-2ubuntu2
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Processing triggers for man-db ...
Errors were encountered while processing:
 /mirror/ubuntu/pool/main/b/binutils/binutils_2.21.0.20110302-2ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Since libiberty.a is not in *either* binutils *or* binutils-multiarch in the previous version, this may be a multiarch-induced regression, or it could be caused by the latest changes to the source package, I don't know.

Tags: multiarch
Steve Langasek (vorlon)
Changed in binutils (Ubuntu):
status: New → Triaged
importance: Undecided → High
assignee: nobody → Loïc Minier (lool)
milestone: none → ubuntu-11.04-beta-1
Steve Langasek (vorlon)
Changed in binutils (Ubuntu Natty):
assignee: Loïc Minier (lool) → Steve Langasek (vorlon)
Revision history for this message
Loïc Minier (lool) wrote :

Apparently this is a regression from multiarch; this /lib64/libiberty.a end up in binutils and binutils-multiarch instead of binutils-dev

The lib64 dir is created because libs are installed to MULTIOSDIR = `$(CC) $(CFLAGS) -print-multi-os-directory`
from libiberty/Makefile.in.

gcc-4.4 -print-multi-os-directory returns ../lib64 here.

Revision history for this message
Steve Langasek (vorlon) wrote :

Confirmed, this is a regression in the gcc-4.4 package. I'm testing out a fixed set of multiarch path patches now and will upload once they've checked out.

Changed in binutils (Ubuntu Natty):
status: Triaged → In Progress
Changed in gcc-4.4 (Ubuntu Natty):
importance: Undecided → High
status: New → In Progress
assignee: nobody → Steve Langasek (vorlon)
milestone: none → ubuntu-11.04-beta-1
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gcc-4.4 - 4.4.5-11ubuntu5

---------------
gcc-4.4 (4.4.5-11ubuntu5) natty; urgency=low

  * rename debian/patches/powerpc-biarch.diff to
    debian/patches/gcc-powerpc-nof.diff as in gcc-4.5 and apply
    unconditionally to disable softfloat, to keep this change from being
    mixed into the biarch32/biarch64/multiarch patches.
  * debian/patches/gcc-multiarch+biarch.diff: restore the original intent of
    the patch, namely, that the multilib dir for the default variant is
    always equal to libdir (the multiarch dir), and we walk up the tree
    to find lib<qual> for the secondary variant.
  * debian/patches/gcc-multiarch+biarch32.diff: apply the same multilib
    directory rewriting for biarch paths with multiarch as we do without;
    still needed in the near term. This corrects a regression that leads to
    a binutils misbuild. LP: #737887.
 -- Steve Langasek <email address hidden> Sat, 19 Mar 2011 02:47:36 -0700

Changed in gcc-4.4 (Ubuntu Natty):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package binutils - 2.21.0.20110302-2ubuntu3

---------------
binutils (2.21.0.20110302-2ubuntu3) natty; urgency=low

  * No-change rebuild against fixed gcc-4.4, correcting the misbuild from
    LP: #737887.
 -- Steve Langasek <email address hidden> Sat, 19 Mar 2011 04:33:36 -0700

Changed in binutils (Ubuntu Natty):
status: In Progress → Fix Released
tags: added: multiarch
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.