Should call $triplet-objcopy, $triplet-readelf etc.

Bug #626468 reported by Loïc Minier
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pkg-create-dbgsym (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: pkg-create-dbgsym

Hey

To support cross-compilation, we're (slowly) transitioning the world to call $triplet-strip instead of strip for all binutils (e.g. readelf, objcopy, objdump etc.) when cross-compiling.

This is important for two reasons, first because binutils-multiarch might not be installed, and hence $triplet-$util might be the only thing which works, and second because even if binutils-multiarch is installed, the cross-build might target an architecture which it doesn't support yet (typically, when bootstraping an architecture)

Here's a list of things which we need to do in pkg-create-dbgsym:
- call dpkg-architecture to figure the triplet of the arch we're building for
- replace calls to readelf/objcopy/objdump/strip/etc. in pkg_create_dbgsym and other places; probably pkg_create_dbgsym and dh_strip (albeit it doesn't seem to do any direct calls right now)
- (optional) I'm not sure how useful it is to cross-build pkg-create-dbgsym itself, since it's arch: all; there are some places in the testsuite which would need patching to cross-build

Thanks,

Loïc Minier (lool)
Changed in pkg-create-dbgsym (Ubuntu):
importance: Undecided → Low
tags: added: cross
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pkg-create-dbgsym - 0.45

---------------
pkg-create-dbgsym (0.45) maverick; urgency=low

  [ Loïc Minier ]
  * dh_strip: replace grep + shell + sed with just sed.

  [ Steve Langasek ]
  * pkg-create-dbgsym: when cross-building as identified by
    dpkg-architecture, use the cross binutils instead of the native ones to
    ensure the tools understand how to act on the binaries. LP: #626468.
 -- Steve Langasek <email address hidden> Wed, 08 Sep 2010 05:57:03 +0000

Changed in pkg-create-dbgsym (Ubuntu):
status: New → Fix Released
tags: added: multiarch-followup
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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