Re: Mandatory -dbg packages for libraries?

2007-05-23 Thread paddy
On Tue, May 22, 2007 at 11:26:38PM +0200, Wouter Verhelst wrote: > On Tue, May 22, 2007 at 04:10:06PM -0500, Steve Greenland wrote: > [...] > > Those are good reasons. Those are different reasons than "static > > libraries are faster", which was the previous argument for keeping them. > > No, tha

Re: Mandatory -dbg packages for libraries?

2007-05-22 Thread Wouter Verhelst
On Tue, May 22, 2007 at 04:10:06PM -0500, Steve Greenland wrote: [...] > Those are good reasons. Those are different reasons than "static > libraries are faster", which was the previous argument for keeping them. No, that was "one" argument for keeping them, and the only one that I could come up

Re: Mandatory -dbg packages for libraries?

2007-05-22 Thread Steve Greenland
On 22-May-07, 13:40 (CDT), Wouter Verhelst <[EMAIL PROTECTED]> wrote: > On Sun, May 20, 2007 at 09:19:52PM -0500, Steve Greenland wrote: > > Why should we spend time and space to provide something that doesn't > > do anything useful?[1] > > I also once heard an argument that static libraries are

Re: Mandatory -dbg packages for libraries?

2007-05-22 Thread Wouter Verhelst
On Sun, May 20, 2007 at 09:19:52PM -0500, Steve Greenland wrote: > On 20-May-07, 13:41 (CDT), Wouter Verhelst <[EMAIL PROTECTED]> wrote: > > On Wed, May 09, 2007 at 11:28:49AM -0500, Steve Greenland wrote: > > > On 09-May-07, 04:02 (CDT), Wouter Verhelst <[EMAIL PROTECTED]> wrote: > > > > I'm not

Re: Mandatory -dbg packages for libraries?

2007-05-20 Thread Steve Greenland
On 20-May-07, 13:41 (CDT), Wouter Verhelst <[EMAIL PROTECTED]> wrote: > On Wed, May 09, 2007 at 11:28:49AM -0500, Steve Greenland wrote: > > On 09-May-07, 04:02 (CDT), Wouter Verhelst <[EMAIL PROTECTED]> wrote: > > > I'm not entirely sure about the specifics, and especially not across > > > archi

Re: Mandatory -dbg packages for libraries?

2007-05-20 Thread Wouter Verhelst
On Wed, May 09, 2007 at 11:28:49AM -0500, Steve Greenland wrote: > On 09-May-07, 04:02 (CDT), Wouter Verhelst <[EMAIL PROTECTED]> wrote: > > I'm not entirely sure about the specifics, and especially not across > > architectures; but regardless, doing a PLT lookup is more expensive than > > doing a

Re: Mandatory -dbg packages for libraries?

2007-05-09 Thread Steve Greenland
On 09-May-07, 04:02 (CDT), Wouter Verhelst <[EMAIL PROTECTED]> wrote: > On Tue, May 08, 2007 at 02:23:37PM +0200, Josselin Mouette wrote: > > Le lundi 07 mai 2007 ? 13:02 +0200, Wouter Verhelst a ?crit : > > > > Dropping most .a libraries is something I agree with. I see no reason > > > > why we

Re: Mandatory -dbg packages for libraries?

2007-05-09 Thread Wouter Verhelst
On Tue, May 08, 2007 at 02:23:37PM +0200, Josselin Mouette wrote: > Le lundi 07 mai 2007 à 13:02 +0200, Wouter Verhelst a écrit : > > > Dropping most .a libraries is something I agree with. I see no reason > > > why we should have them for most of the libraries. > > > > As a courtesy to our users

Re: Mandatory -dbg packages for libraries?

2007-05-08 Thread Michael Banck
On Mon, May 07, 2007 at 08:25:53PM +0200, Kurt Roeckx wrote: > On Mon, May 07, 2007 at 01:02:17PM +0200, Wouter Verhelst wrote: > > On Mon, Apr 23, 2007 at 12:32:37AM +0200, Kurt Roeckx wrote: > > > On Sun, Apr 22, 2007 at 11:15:36PM +0100, Roger Leigh wrote: > > > > > > > > If there are concerns

Re: Mandatory -dbg packages for libraries?

2007-05-08 Thread Josselin Mouette
Le lundi 07 mai 2007 à 13:02 +0200, Wouter Verhelst a écrit : > > Dropping most .a libraries is something I agree with. I see no reason > > why we should have them for most of the libraries. > > As a courtesy to our users. Statically linked programs are slightly > faster (since they don't need to

Re: Mandatory -dbg packages for libraries?

2007-05-07 Thread Kurt Roeckx
On Mon, May 07, 2007 at 01:02:17PM +0200, Wouter Verhelst wrote: > On Mon, Apr 23, 2007 at 12:32:37AM +0200, Kurt Roeckx wrote: > > On Sun, Apr 22, 2007 at 11:15:36PM +0100, Roger Leigh wrote: > > > > > > If there are concerns over archive size, why don't we drop all static > > > .a libraries at t

Re: Mandatory -dbg packages for libraries?

2007-05-07 Thread Wouter Verhelst
On Mon, Apr 23, 2007 at 12:32:37AM +0200, Kurt Roeckx wrote: > On Sun, Apr 22, 2007 at 11:15:36PM +0100, Roger Leigh wrote: > > > > If there are concerns over archive size, why don't we drop all static > > .a libraries at the same time. Given that in Debian we typically > > always link dynamicall

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-29 Thread Russ Allbery
Stefano Zacchiroli <[EMAIL PROTECTED]> writes: > That's all true, but it fails to convince me that is better not to state > this in the policy than to state it (only Steve's point about "wrong API > docs", but I'm convinced it will be quantitatively small). My approach > to this is first to decide

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-29 Thread Steve Greenland
On 29-Apr-07, 03:10 (CDT), Peter Samuelson <[EMAIL PROTECTED]> wrote: > > [Neil Williams] > > I chose Debian as a development platform for my own reasons and my > > decision was "not deemed to be wise" in the eyes of some of my > > upstream colleagues. As the newbie to that particular team, I was

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-29 Thread Mark Brown
On Sun, Apr 29, 2007 at 09:23:03AM +0200, Stefano Zacchiroli wrote: > docs", but I'm convinced it will be quantitatively small). My approach > to this is first to decide whether API docs in the policy is something > we want in debian or not. Then, if it is the case, to state it in the > policy. Th

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-29 Thread Peter Samuelson
[Neil Williams] > I chose Debian as a development platform for my own reasons and my > decision was "not deemed to be wise" in the eyes of some of my > upstream colleagues. As the newbie to that particular team, I was > under significant pressure to "upgrade to Fedora or SuSE". Are you saying Fed

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-29 Thread Stefano Zacchiroli
On Sat, Apr 28, 2007 at 02:37:46PM -0700, Steve Langasek wrote: > write documentation or don't understand the API. Wrong API docs are surely > worse than not having no docs, aren't they? > If I thought putting it in policy would significantly improve the > availability of API docs in Debian, I wo

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-28 Thread Russ Allbery
Stefano Zacchiroli <[EMAIL PROTECTED]> writes: > Fair enough, but note that having man pages is actually addressed by the > policy. Why do you think API doc shouldn't? After all man pages are docs > for users and API doc are too, with the only difference that in the > latter case the "users" are p

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-28 Thread Steve Langasek
On Wed, Apr 25, 2007 at 04:23:38PM +0200, Stefano Zacchiroli wrote: > On Tue, Apr 24, 2007 at 08:12:46AM -0700, Steve Langasek wrote: > > > If we are talking about hand-written documentation you're of course > > > right. However if you're talking about documentation which can be > > > generated aut

Re: Mandatory -dbg packages for libraries?

2007-04-26 Thread Reinhard Tartler
Josselin Mouette <[EMAIL PROTECTED]> writes: > Le mardi 24 avril 2007 à 18:09 +0200, Reinhard Tartler a écrit : >> Sending core dumps is of course debatable, espec. if you cannot assert >> that no sensitive information is transmitted. Still, Apport is more than >> that. It also describes the mecha

Re: Mandatory -dbg packages for libraries?

2007-04-25 Thread Robert Collins
On Tue, 2007-04-24 at 14:40 +0200, Loïc Minier wrote: > On Tue, Apr 24, 2007, Josselin Mouette wrote: > > Apport sends complete core dumps, which is a very bad idea. The dumps > > can be huge (for desktop applications they often grow beyond 200MB) and > > they can contain gazillions of sensitive in

Re: Mandatory -dbg packages for libraries?

2007-04-25 Thread Josselin Mouette
Le mardi 24 avril 2007 à 18:09 +0200, Reinhard Tartler a écrit : > Sending core dumps is of course debatable, espec. if you cannot assert > that no sensitive information is transmitted. Still, Apport is more than > that. It also describes the mechanism of debug packages (*.ddeb), which > are genera

Re: Mandatory -dbg packages for libraries?

2007-04-25 Thread Josselin Mouette
Le mardi 24 avril 2007 à 23:43 +0200, Pierre THIERRY a écrit : > Scribit Daniel Jacobowitz dies 23/04/2007 hora 16:19: > > Another possible way to change glibc would be to have libc6-dbg > > contain full debug symbols, libc6-dev contain -g1 symbols only, and > > have the -dbg divert the -dev. > >

Re: Mandatory -dbg packages for libraries?

2007-04-25 Thread Daniel Jacobowitz
On Tue, Apr 24, 2007 at 11:43:02PM +0200, Pierre THIERRY wrote: > Scribit Daniel Jacobowitz dies 23/04/2007 hora 16:19: > > Another possible way to change glibc would be to have libc6-dbg > > contain full debug symbols, libc6-dev contain -g1 symbols only, and > > have the -dbg divert the -dev. > >

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-25 Thread Stefano Zacchiroli
On Tue, Apr 24, 2007 at 08:12:46AM -0700, Steve Langasek wrote: > > If we are talking about hand-written documentation you're of course > > right. However if you're talking about documentation which can be > > generated automatically from sources (and not that it was the "ideal" > > point of Neil)

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Pierre THIERRY
Scribit Daniel Jacobowitz dies 23/04/2007 hora 16:19: > Another possible way to change glibc would be to have libc6-dbg > contain full debug symbols, libc6-dev contain -g1 symbols only, and > have the -dbg divert the -dev. Why not do that for every library? Curiously, Pierre -- [EMAIL PROTECTED]

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Russ Allbery
Loïc Minier <[EMAIL PROTECTED]> writes: > On Tue, Apr 24, 2007, Josselin Mouette wrote: >> Apport sends complete core dumps, which is a very bad idea. The dumps >> can be huge (for desktop applications they often grow beyond 200MB) and >> they can contain gazillions of sensitive information. > B

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Ben Hutchings
On Tue, 2007-04-24 at 14:40 +0200, Loïc Minier wrote: > On Tue, Apr 24, 2007, Josselin Mouette wrote: > > Apport sends complete core dumps, which is a very bad idea. The dumps > > can be huge (for desktop applications they often grow beyond 200MB) and > > they can contain gazillions of sensitive in

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Hendrik Sattler
Am Dienstag 24 April 2007 14:12 schrieb Josselin Mouette: > Using a central server for symbol lookup like Ben proposed looks like a > better idea. It needs gdb to be adapted or wrapped to access them > correctly, though. You can't do offline debugging with a central server. Unless you are always-o

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Reinhard Tartler
Josselin Mouette <[EMAIL PROTECTED]> writes: > Le mardi 24 avril 2007 à 12:58 +0200, Reinhard Tartler a écrit : >> Ben Hutchings <[EMAIL PROTECTED]> writes: >> >> > Installing debugging symbols for all binaries involved in a crash >> > seems... heavyweight. I would expect the user to want to get

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Pierre Habouzit
On Tue, Apr 24, 2007 at 02:40:22PM +0200, Loïc Minier wrote: > On Tue, Apr 24, 2007, Josselin Mouette wrote: > > Apport sends complete core dumps, which is a very bad idea. The dumps > > can be huge (for desktop applications they often grow beyond 200MB) and > > they can contain gazillions of sensi

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-24 Thread Steve Langasek
On Tue, Apr 24, 2007 at 09:13:18AM +0200, Stefano Zacchiroli wrote: > On Mon, Apr 23, 2007 at 04:27:34PM -0700, Steve Langasek wrote: > > > > On 23-Apr-07, 15:51 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > > > > I think that all libraries - without exception - must come with some > > > > >

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Mike Hommey
On Tue, Apr 24, 2007 at 02:12:39PM +0200, Josselin Mouette wrote: > Le mardi 24 avril 2007 à 12:58 +0200, Reinhard Tartler a écrit : > > Ben Hutchings <[EMAIL PROTECTED]> writes: > > > > > Installing debugging symbols for all binaries involved in a crash > > > seems... heavyweight. I would expect

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Loïc Minier
On Tue, Apr 24, 2007, Josselin Mouette wrote: > Apport sends complete core dumps, which is a very bad idea. The dumps > can be huge (for desktop applications they often grow beyond 200MB) and > they can contain gazillions of sensitive information. But Apport is written already, and it's also the

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Josselin Mouette
Le mardi 24 avril 2007 à 12:58 +0200, Reinhard Tartler a écrit : > Ben Hutchings <[EMAIL PROTECTED]> writes: > > > Installing debugging symbols for all binaries involved in a crash > > seems... heavyweight. I would expect the user to want to get on with > > his or her work at this point. > > > >

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Reinhard Tartler
Ben Hutchings <[EMAIL PROTECTED]> writes: > Installing debugging symbols for all binaries involved in a crash > seems... heavyweight. I would expect the user to want to get on with > his or her work at this point. > > Wouldn't it be better - in terms of response rate - to take a > "minidump" (al

Re: Mandatory -dbg packages for libraries?

2007-04-24 Thread Ben Hutchings
On Mon, 2007-04-23 at 10:37 +0200, Josselin Mouette wrote: > Le dimanche 22 avril 2007 à 20:39 +0100, Neil Williams a écrit : > > I'd like to see all library source packages having a minimum of 4 > > binary packages required by Policy: the SONAME, the -dev, the -dbg and > > a -doc package. (Librar

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-24 Thread Neil Williams
On Mon, 23 Apr 2007 19:32:46 -0400 Joey Hess <[EMAIL PROTECTED]> wrote: > Neil Williams wrote: > > I chose Debian as a development platform for my own reasons and my > > decision was "not deemed to be wise" in the eyes of some of my > > upstream colleagues. As the newbie to that particular team, I

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-24 Thread Stefano Zacchiroli
On Mon, Apr 23, 2007 at 04:27:34PM -0700, Steve Langasek wrote: > > > On 23-Apr-07, 15:51 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > > > I think that all libraries - without exception - must come with some > > > > API documentation and the docs should be as complete and as accurate > > > >

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-23 Thread Felipe Sateler
Neil Williams wrote: > There is a distinct lack of man (3) and "coordinated" documentation for > libraries in Debian. True, some poorly documented packages include test > programs or examples somewhere under /usr/share/doc/ but it isn't > simple to track these down. Is it unreasonable to expect

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Damián Viano
On Sun, Apr 22, 2007 at 07:29:55PM -0400, Joey Hess wrote: > Neil Williams wrote: > > > > Certain packages have already had bug reports requesting a -dbg > > > > package. > > > > > > I'd rather see some offline debug-symbol infrastructure for all > > > packages implemented, so that you can download

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Manoj Srivastava
On Mon, 23 Apr 2007 15:05:22 -0400, Joey Hess <[EMAIL PROTECTED]> said: >> I would rather add it as a recommended practice in policy, with a >> note that it will become a should/must as we get better coverage, and >> _also_ provide examples of what maintainers need to do to create >> separate de

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Ben Hutchings
On Sun, 2007-04-22 at 22:14 +0200, Florian Weimer wrote: > * Neil Williams: > > > Apart from those limitations, is there a *technical* reason why -dbg > > packages should not be available? > > GCC's debugging information at -O2 will continue to worsen (in part as > a result of -O2 getting better)

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Ben Hutchings
On Sun, 2007-04-22 at 22:31 +0200, Hendrik Sattler wrote: > Am Sonntag 22 April 2007 22:12 schrieb Russ Allbery: > > Hendrik Sattler <[EMAIL PROTECTED]> writes: > > > Am Sonntag 22 April 2007 21:39 schrieb Neil Williams: > > >> Apart from those limitations, is there a *technical* reason why -dbg >

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-23 Thread Joey Hess
Neil Williams wrote: > I chose Debian as a development platform for my own reasons and my > decision was "not deemed to be wise" in the eyes of some of my upstream > colleagues. As the newbie to that particular team, I was under > significant pressure to "upgrade to Fedora or SuSE". Debian needs to

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-23 Thread Steve Langasek
On Tue, Apr 24, 2007 at 12:00:59AM +0100, Neil Williams wrote: > On Mon, 23 Apr 2007 16:15:02 -0500 > Steve Greenland <[EMAIL PROTECTED]> wrote: > > On 23-Apr-07, 15:51 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > > I think that all libraries - without exception - must come with some > > >

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-23 Thread Joey Hess
Neil Williams wrote: > Would these changes need a GR? Why would a policy change need a GR? How could a GR possibly be the best way to choose a sound technical policy? -- see shy jo signature.asc Description: Digital signature

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-23 Thread Neil Williams
On Mon, 23 Apr 2007 16:15:02 -0500 Steve Greenland <[EMAIL PROTECTED]> wrote: > On 23-Apr-07, 15:51 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > I think that all libraries - without exception - must come with some > > API documentation and the docs should be as complete and as accurate > >

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-23 Thread Steve Greenland
On 23-Apr-07, 15:51 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > I think that all libraries - without exception - must come with some > API documentation and the docs should be as complete and as accurate > as possible - ideally generated from the source itself. That's not a Debian issue. Al

Re: Mandatory -dbg packages for libraries? (and API docs too)

2007-04-23 Thread Neil Williams
On Sun, 22 Apr 2007 20:39:26 +0100 Neil Williams <[EMAIL PROTECTED]> wrote: After reading the responses so far, the -doc element of my original idea needs modification. > I'd like to see all library source packages having a minimum of 4 > binary packages required by Policy: the SONAME, the -dev,

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Neil Williams
On Mon, 23 Apr 2007 21:19:39 +0100 Mark Brown <[EMAIL PROTECTED]> wrote: > Reading between the lines I think Neil is assuming that good > documentation has to be large enough to be worth splitting out. In a lot of cases, yes. I do accept that some libraries - and particularly perl modules - do no

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Neil Williams
On Mon, 23 Apr 2007 12:22:40 -0500 Steve Greenland <[EMAIL PROTECTED]> wrote: > You seem to be arguing that the man pages should be in the core > library package, yes? I would prefer a -doc package that covers the entire API in a comprehensive and detailed manner, registered with helper programs

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Mark Brown
On Mon, Apr 23, 2007 at 12:22:40PM -0500, Steve Greenland wrote: > On 22-Apr-07, 17:01 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > I think libraries should be encouraged to provide significant > > documentation - what we have now is simply not enough. > You seem to be arguing that the ma

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Daniel Jacobowitz
On Mon, Apr 23, 2007 at 03:19:23PM -0400, Joey Hess wrote: > Hmm, I hope this isn't a potential security hole.. I'd be happy if there > were a way to remove that info from the package, actually. I have done some work with debugedit, which is shipped with RPM - it's supposed to be able to do this,

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Daniel Jacobowitz
On Mon, Apr 23, 2007 at 03:08:41PM -0400, Joey Hess wrote: > Daniel Jacobowitz wrote: > > Yes, it's deliberate. People rarely need them just because they're > > debugging something linked to libc.so.6. Having them slows down GDB > > startup and increases its memory usage, for _every_ debug sessio

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Joey Hess
Steinar H. Gunderson wrote: > Are you sure the source code is in there with -g? I was pretty sure it > wasn't, only line numbers. I was fooled by the fact that the debug packages I was using have: [EMAIL PROTECTED]:/usr/lib/debug/usr/lib>strings libaa.so.1.0.4|grep joey /home/joey/src/packages/aa

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Joey Hess
Mike Hommey wrote: > The point is that it's pretty useless to have a backtrace without line > numbers. That depends on whether the problem you're debugging is a bug in the library itself, or only a bug triggered by code that calls the library, or in code called by the library. -- see shy jo si

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Joey Hess
Steinar H. Gunderson wrote: > Are you sure the source code is in there with -g? I was pretty sure it > wasn't, only line numbers. You're right, it doesn't include the actual code, but the size is still roughly porportional to the size of the code in the library. -- see shy jo signature.asc Des

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Joey Hess
Daniel Jacobowitz wrote: > Yes, it's deliberate. People rarely need them just because they're > debugging something linked to libc.so.6. Having them slows down GDB > startup and increases its memory usage, for _every_ debug session. Ok. Of course, this is also generally an argument against havin

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Joey Hess
Manoj Srivastava wrote: > On Sun, 22 Apr 2007 19:29:55 -0400, Joey Hess <[EMAIL PROTECTED]> said: > > > So while I'd love to have a way to have -dbg packages available for > > every binary, I actually am happy with this proposal to do it for only > > every library (plus whatever other binaries re

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Joey Hess
Tshepang Lekhonkhobe wrote: > It would be nice if the standard iso images that Debian makes > available could be made to exclude -dbg packages as a trade-off. It > actually felt painful someday when doing jigdo on the archive, only to > see loads of -dbg packages getting downloaded, and knowing I w

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Mike Hommey
On Mon, Apr 23, 2007 at 07:10:15PM +0200, Steinar H. Gunderson <[EMAIL PROTECTED]> wrote: > On Mon, Apr 23, 2007 at 07:06:55PM +0200, Mike Hommey wrote: > > The point is that it's pretty useless to have a backtrace without line > > numbers. It would be interesting if there was an option similar to

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Steve Greenland
On 22-Apr-07, 17:01 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > > 2. Why a seperate -doc? API docs should be part of the -dev package. > > In practice, such attitudes are commonly expressed as RTSL. (Read The > Source, Luke). That does NOT encourage upstream usage of Debian as a > distro

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Steve Greenland
On 22-Apr-07, 17:29 (CDT), Kurt Roeckx <[EMAIL PROTECTED]> wrote: > On Sun, Apr 22, 2007 at 04:40:45PM -0500, Steve Greenland wrote: > > On 22-Apr-07, 16:22 (CDT), Robert Collins <[EMAIL PROTECTED]> wrote: > > > > > > Because segfaults are often not easily reproduced. Having the ability to > > >

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Steinar H. Gunderson
On Mon, Apr 23, 2007 at 07:06:55PM +0200, Mike Hommey wrote: > The point is that it's pretty useless to have a backtrace without line > numbers. It would be interesting if there was an option similar to -g1, > but that would keep the line numbers (without the burden of keeping the > whole source co

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Mike Hommey
On Mon, Apr 23, 2007 at 11:28:06PM +1000, Hamish Moffatt <[EMAIL PROTECTED]> wrote: > On Mon, Apr 23, 2007 at 07:38:15AM +0200, Mike Hommey wrote: > > On Sun, Apr 22, 2007 at 08:26:38PM -0400, Joey Hess <[EMAIL PROTECTED]> > > wrote: > > > Mark Brown wrote: > > > > I'd be interested to see some n

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Daniel Jacobowitz
On Sun, Apr 22, 2007 at 07:29:55PM -0400, Joey Hess wrote: > Even with separated debugging symbols, -dbg packages are frequently > larger than the package they provide debugging symbols for. See for > example xserver-xorg-core-dbg. Looking through the 227 lib*-dbg > packages, I found few contain se

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Hamish Moffatt
On Mon, Apr 23, 2007 at 07:38:15AM +0200, Mike Hommey wrote: > On Sun, Apr 22, 2007 at 08:26:38PM -0400, Joey Hess <[EMAIL PROTECTED]> wrote: > > Mark Brown wrote: > > > I'd be interested to see some numbers on the archive size impact - my > > > experience with C++ suggests that the size inflation

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Josselin Mouette
Le dimanche 22 avril 2007 à 20:39 +0100, Neil Williams a écrit : > I'd like to see all library source packages having a minimum of 4 > binary packages required by Policy: the SONAME, the -dev, the -dbg and > a -doc package. (Libraries for perl or other non-compiled languages > would be exempt from

Re: Mandatory -dbg packages for libraries?

2007-04-23 Thread Sune Vuorela
On 2007-04-22, Mark Brown <[EMAIL PROTECTED]> wrote: > I'd be interested to see some numbers on the archive size impact - my > experience with C++ suggests that the size inflation caused by debug > symbols can be enormous. Openoffice currently ships a -g1 -dbg package. If it wasn't -g1, the deb wo

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Manoj Srivastava
On Sun, 22 Apr 2007 19:29:55 -0400, Joey Hess <[EMAIL PROTECTED]> said: > So while I'd love to have a way to have -dbg packages available for > every binary, I actually am happy with this proposal to do it for only > every library (plus whatever other binaries really need it). And it's > a direct

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Mike Hommey
On Sun, Apr 22, 2007 at 08:26:38PM -0400, Joey Hess <[EMAIL PROTECTED]> wrote: > Mark Brown wrote: > > I'd be interested to see some numbers on the archive size impact - my > > experience with C++ suggests that the size inflation caused by debug > > symbols can be enormous. > > I don't know about

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Tshepang Lekhonkhobe
On 4/23/07, Joey Hess <[EMAIL PROTECTED]> wrote: Anyway, doubling the size of the archive is less of an issue than it might have been in the past, since we've done the archive split, and since ftp-master has 1.4 Terabytes of disk with half that unused, but it is still a concern, for mirrors, numb

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Joey Hess
Mark Brown wrote: > I'd be interested to see some numbers on the archive size impact - my > experience with C++ suggests that the size inflation caused by debug > symbols can be enormous. I don't know about C++, but for C it depends. For example, aalib is a 102 kb library that compresses to 44kb.

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Mark Brown
On Sun, Apr 22, 2007 at 08:39:26PM +0100, Neil Williams wrote: > I'd like to see all library source packages having a minimum of 4 > binary packages required by Policy: the SONAME, the -dev, the -dbg and > a -doc package. (Libraries for perl or other non-compiled languages > would be exempt from

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Darren Salt
I demand that Neil Williams may or may not have written... [snip] > Upstream are using SourceForge or Berlios, not Alioth. Upstream don't use > dh_strip or debhelper And, of course, upstream is not a Debian package maintainer. [snip] -- | Darren Salt| linux or ds at | nr. Ashi

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Joey Hess
Neil Williams wrote: > > > Certain packages have already had bug reports requesting a -dbg > > > package. > > > > I'd rather see some offline debug-symbol infrastructure for all > > packages implemented, so that you can download the debug symbols when > > you need them. > > But the -dbg package on

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Mark Brown
On Sun, Apr 22, 2007 at 11:15:36PM +0100, Roger Leigh wrote: > If there are concerns over archive size, why don't we drop all static > .a libraries at the same time. Given that in Debian we typically > always link dynamically, is there a need for .a libraries in all but a > handful of cases? I'd

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Steinar H. Gunderson
On Sun, Apr 22, 2007 at 10:31:04PM +0200, Hendrik Sattler wrote: > Did you ever try to debug an application compiled with optimizations? > No, either you build an optimized version (-O2) or you build a debug version > (-g). If you want to debug what was coded, you better compile without > optimiz

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Russ Allbery
Hendrik Sattler <[EMAIL PROTECTED]> writes: > Am Sonntag 22 April 2007 22:56 schrieb Russ Allbery: >> Hendrik Sattler <[EMAIL PROTECTED]> writes: >>> Did you ever try to debug an application compiled with optimizations? >> Yes, I do it all the time. > Hmm, must be personal preference, then. It m

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Kurt Roeckx
On Sun, Apr 22, 2007 at 11:15:36PM +0100, Roger Leigh wrote: > > If there are concerns over archive size, why don't we drop all static > .a libraries at the same time. Given that in Debian we typically > always link dynamically, is there a need for .a libraries in all but a > handful of cases? D

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Kurt Roeckx
On Sun, Apr 22, 2007 at 04:40:45PM -0500, Steve Greenland wrote: > On 22-Apr-07, 16:22 (CDT), Robert Collins <[EMAIL PROTECTED]> wrote: > > > > Because segfaults are often not easily reproduced. Having the ability to > > analyse a crash that occured when the user did not have the -dbg > > package

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Roger Leigh
Steve Greenland <[EMAIL PROTECTED]> writes: > On 22-Apr-07, 14:39 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: >> >> I'd like to see all library source packages having a minimum of 4 >> binary packages required by Policy: the SONAME, the -dev, the -dbg and >> a -doc package. (Libraries for p

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Sam Hocevar
On Sun, Apr 22, 2007, Neil Williams wrote: > > 2. Why a seperate -doc? API docs should be part of the -dev package. > > In practice, such attitudes are commonly expressed as RTSL. (Read The > Source, Luke). That does NOT encourage upstream usage of Debian as a > distro. > > Is man (3) really so

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Mark Brown
On Sun, Apr 22, 2007 at 04:40:45PM -0500, Steve Greenland wrote: > That's an argument in favor of making the base library package built > with debug symbols and then stripped[1], not of requiring -dbg packages. Depends what you put in the -dbg package; it could be the symbols stripped out of the

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread gregor herrmann
On Sun, 22 Apr 2007 20:39:26 +0100, Neil Williams wrote: > I'd like to see all library source packages having a minimum of 4 > binary packages required by Policy: the SONAME, the -dev, the -dbg and > a -doc package. (Libraries for perl or other non-compiled languages > would be exempt from -dbg p

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Neil Williams
On Sun, 22 Apr 2007 16:14:04 -0500 Steve Greenland <[EMAIL PROTECTED]> wrote: > On 22-Apr-07, 14:39 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > > > I'd like to see all library source packages having a minimum of 4 > > binary packages required by Policy: the SONAME, the -dev, the -dbg > >

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Wouter Verhelst
On Sun, Apr 22, 2007 at 10:31:04PM +0200, Hendrik Sattler wrote: > Am Sonntag 22 April 2007 22:12 schrieb Russ Allbery: > > Actually, you don't. See the features of dh_strip introduced at debhelper > > level V5. And of course you can do the same thing by hand. > > > > gdb will read the resulting

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Steve Greenland
On 22-Apr-07, 16:22 (CDT), Robert Collins <[EMAIL PROTECTED]> wrote: > On Sun, 2007-04-22 at 16:14 -0500, Steve Greenland wrote: > > On 22-Apr-07, 14:39 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > > > > > I'd like to see all library source packages having a minimum of 4 > > > binary pack

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Robert Collins
On Sun, 2007-04-22 at 16:14 -0500, Steve Greenland wrote: > On 22-Apr-07, 14:39 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > > > I'd like to see all library source packages having a minimum of 4 > > binary packages required by Policy: the SONAME, the -dev, the -dbg and > > a -doc package.

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Hendrik Sattler
Am Sonntag 22 April 2007 22:56 schrieb Russ Allbery: > Hendrik Sattler <[EMAIL PROTECTED]> writes: > > Am Sonntag 22 April 2007 22:12 schrieb Russ Allbery: > >> Actually, you don't. See the features of dh_strip introduced at > >> debhelper level V5. And of course you can do the same thing by hand

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Steve Greenland
On 22-Apr-07, 14:39 (CDT), Neil Williams <[EMAIL PROTECTED]> wrote: > > I'd like to see all library source packages having a minimum of 4 > binary packages required by Policy: the SONAME, the -dev, the -dbg and > a -doc package. (Libraries for perl or other non-compiled languages > would be exem

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Russ Allbery
Hendrik Sattler <[EMAIL PROTECTED]> writes: > Am Sonntag 22 April 2007 22:12 schrieb Russ Allbery: >> Actually, you don't. See the features of dh_strip introduced at >> debhelper level V5. And of course you can do the same thing by hand. >> gdb will read the resulting detached debugging symbols

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Hendrik Sattler
Am Sonntag 22 April 2007 22:12 schrieb Russ Allbery: > Hendrik Sattler <[EMAIL PROTECTED]> writes: > > Am Sonntag 22 April 2007 21:39 schrieb Neil Williams: > >> Apart from those limitations, is there a *technical* reason why -dbg > >> packages should not be available? Is it worth taking to -policy

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Neil Williams
On Sun, 22 Apr 2007 21:44:28 +0200 Michael Banck <[EMAIL PROTECTED]> wrote: > > Certain packages have already had bug reports requesting a -dbg > > package. > > I'd rather see some offline debug-symbol infrastructure for all > packages implemented, so that you can download the debug symbols when >

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Neil Williams
On Sun, 22 Apr 2007 22:02:37 +0200 Hendrik Sattler <[EMAIL PROTECTED]> wrote: > Am Sonntag 22 April 2007 21:39 schrieb Neil Williams: > > Apart from those limitations, is there a *technical* reason why -dbg > > packages should not be available? Is it worth taking to -policy? > > You essentially ne

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Florian Weimer
* Neil Williams: > Apart from those limitations, is there a *technical* reason why -dbg > packages should not be available? GCC's debugging information at -O2 will continue to worsen (in part as a result of -O2 getting better). Hence, -dbg libraries would need to be compiled with different optim

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Julien Cristau
On Sun, Apr 22, 2007 at 22:02:37 +0200, Hendrik Sattler wrote: > Am Sonntag 22 April 2007 21:39 schrieb Neil Williams: > > Apart from those limitations, is there a *technical* reason why -dbg > > packages should not be available? Is it worth taking to -policy? > > You essentially need to build al

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Russ Allbery
Hendrik Sattler <[EMAIL PROTECTED]> writes: > Am Sonntag 22 April 2007 21:39 schrieb Neil Williams: >> Apart from those limitations, is there a *technical* reason why -dbg >> packages should not be available? Is it worth taking to -policy? > You essentially need to build all library packages 2 ti

Re: Mandatory -dbg packages for libraries?

2007-04-22 Thread Damián Viano
On Sun, Apr 22, 2007 at 10:02:37PM +0200, Hendrik Sattler wrote: > Am Sonntag 22 April 2007 21:39 schrieb Neil Williams: > > Apart from those limitations, is there a *technical* reason why -dbg > > packages should not be available? Is it worth taking to -policy? > > You essentially need to build a

  1   2   >