Debian Bug report logs - #252931
debhelper: would be nice for dh_strip to support cross targets

Package: debhelper; Maintainer for debhelper is Debhelper Maintainers <debhelper-devel@lists.alioth.debian.org>; Source for debhelper is src:debhelper.

Reported by: Joshua Kwan <joshk@triplehelix.org>

Date: Sun, 6 Jun 2004 02:33:02 UTC

Severity: wishlist

Tags: patch

Done: Joey Hess <joeyh@debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#252931; Package debhelper. Full text and rfc822 format available.

Acknowledgement sent to Joshua Kwan <joshk@triplehelix.org>:
New Bug report received and forwarded. Copy sent to Joey Hess <joeyh@debian.org>. Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Joshua Kwan <joshk@triplehelix.org>
To: submit@bugs.debian.org
Subject: debhelper: would be nice for dh_strip to support cross targets
Date: Sat, 5 Jun 2004 19:22:59 -0700
[Message part 1 (text/plain, inline)]
Package: debhelper
Severity: wishlist
Tags: patch

Currently dh_strip unconditionally calls 'strip $whatever-file ...'.
This is bad for cross compiles, where in many cases 1) strip is not
multiarch or 2) the strip for that architecture is in
$DEB_HOST_GNU_TYPE-strip.

This patch will prefer $DEB_HOST_GNU_TYPE-strip over plain strip, as
well as for objcopy, solving a lot of "Cannot represent architecture
UNKNOWN!" errors during my cross compiles.

As for perl style, this is probably awful by your standards...

-- 
Joshua Kwan
[dh_strip_cross.diff (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#252931; Package debhelper. Full text and rfc822 format available.

Acknowledgement sent to Joey Hess <joeyh@debian.org>:
Extra info received and forwarded to list. Full text and rfc822 format available.

Message #10 received at 252931@bugs.debian.org (full text, mbox):

From: Joey Hess <joeyh@debian.org>
To: Joshua Kwan <joshk@triplehelix.org>, 252931@bugs.debian.org
Subject: Re: Bug#252931: debhelper: would be nice for dh_strip to support cross targets
Date: Sat, 5 Jun 2004 22:57:11 -0400
[Message part 1 (text/plain, inline)]
Joshua Kwan wrote:
> Currently dh_strip unconditionally calls 'strip $whatever-file ...'.
> This is bad for cross compiles, where in many cases 1) strip is not
> multiarch or 2) the strip for that architecture is in
> $DEB_HOST_GNU_TYPE-strip.
> 
> This patch will prefer $DEB_HOST_GNU_TYPE-strip over plain strip, as
> well as for objcopy, solving a lot of "Cannot represent architecture
> UNKNOWN!" errors during my cross compiles.

This is a FAQ, and even a FSP (frequently submitted patch). Since we
have binutils-multiarch, which has a strip that supports other arches, I
never apply it. I haven't checked if bintutils-multiarch's objcopy also
works for separated debug symbols yet though.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#252931; Package debhelper. Full text and rfc822 format available.

Acknowledgement sent to joshk@triplehelix.org (Joshua Kwan):
Extra info received and forwarded to list. Copy sent to Joey Hess <joeyh@debian.org>. Full text and rfc822 format available.

Message #15 received at 252931@bugs.debian.org (full text, mbox):

From: joshk@triplehelix.org (Joshua Kwan)
To: 252931@bugs.debian.org
Subject: Re: Bug#252931: debhelper: would be nice for dh_strip to support cross targets
Date: Sat, 5 Jun 2004 20:12:46 -0700
[Message part 1 (text/plain, inline)]
On Sat, Jun 05, 2004 at 10:57:11PM -0400, Joey Hess wrote:
> This is a FAQ, and even a FSP (frequently submitted patch). Since we
> have binutils-multiarch, which has a strip that supports other arches, I
> never apply it. I haven't checked if bintutils-multiarch's objcopy also
> works for separated debug symbols yet though.

Where is this fabled FAQ? It is not in the debhelper package's
documentation.

And I figure there's no reason for it not to be applied because it does
not affect the behavior of dh_strip when no other strip binary is
available (the usual situation.)

The reason I don't have binutils-multiarch is that it's pretty huge and
mostly extraneous for me. I only want sparc-linux-*.

You're the boss, of course.

-- 
Joshua Kwan
[signature.asc (application/pgp-signature, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Joey Hess <joeyh@debian.org>:
Bug#252931; Package debhelper. Full text and rfc822 format available.

Acknowledgement sent to "Raphael Bossek" <raphael.bossek@gmx.de>:
Extra info received and forwarded to list. Copy sent to Joey Hess <joeyh@debian.org>. Full text and rfc822 format available.

Message #20 received at 252931@bugs.debian.org (full text, mbox):

From: "Raphael Bossek" <raphael.bossek@gmx.de>
To: Martin Michlmayr <tbm@cyrius.com>
Cc: yoush@cs.msu.su, debian-devel@lists.debian.org, ds@schleef.org, debian-embedded@lists.debian.org, 252931@bugs.debian.org
Subject: Re: request for diversion + please help to determine default targets
Date: Wed, 16 Jun 2004 09:39:00 +0200 (MEST)
Quoting Martin Michlmayr:
> Nikita V. Youshchenko <yoush@cs.msu.su> [2004-06-16 01:44]:
> > A good way to deal with this is fixing dh_strip to use $STRIP
> environment 
> > variable (if set) to locate strip binary. However, I was told [1] that 
> > debhelper maintainers don't like this idea.
> 
> You haven't said what's wrong with using binutils-multiarch.
binutils-multiarch is for all the folks who uses the default trunc of Debian
and its binutils and GCC. People who have to deal with embedded devices uses
3rd party binaries, like me for example. I have to deal with Hard Hat Linux
sometimes with Denk's ELDK (www.denx.de) binutils and GCC. I have to use
these tools because nobody can tell me which after-effects I will catch
mixing the environment with binutils-multiarch from Debian. I do not like to
find it out! I do not have the time and muse...

It's a question of freedom let me decide which tools I prefer for my work so
dh_strip should be a know-it-all implementation. It's so simple make
dh_strip gantler and prevent and diversion by dpkg-cross.

--
Raphael Bossek <bossekr@NOSPAMdebian.org>



-- 
+++ Jetzt WLAN-Router für alle DSL-Einsteiger und Wechsler +++
GMX DSL-Powertarife zudem 3 Monate gratis* http://www.gmx.net/dsl




Reply sent to Joey Hess <joeyh@debian.org>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Joshua Kwan <joshk@triplehelix.org>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #25 received at 252931-done@bugs.debian.org (full text, mbox):

From: Joey Hess <joeyh@debian.org>
To: 252931-done@bugs.debian.org
Subject: closing
Date: Sat, 14 Aug 2004 00:09:09 -0300
[Message part 1 (text/plain, inline)]
This bug is a rehash of bugs #221700, #229190, #66564, #154214, and
#217222. To summarise, you have two options:

1. install binutils-multiarch
2. modify PATH to include your preferred strip program before calling
   dh_strip

Either of these is a better, and a simpler, solution than modifying
dh_strip.

-- 
see shy jo
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 13:44:16 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.