[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#299578: lintian: check that -dbg packages are using separate debugging info



forgot to cc the bug..

> On Tue, 2008-06-24 at 23:24 +0100, Adam D. Barratt wrote:
> > Hi,
> > 
> > On Mon, 2005-03-14 at 20:08 -0800, Matt Taggart wrote:
> > > binutils and gdb now have support for putting debugging info into a separ
> ate 
> > > file. So you build things debugable and you get a separate file with all 
> the 
> > > debugging info and a normal binary that contains a pointer to this info. 
> This 
> > > is really cool because now we don't need to have two copies of ever binar
> y we 
> > > want debugable, just the normal package and then the debugging add on. I 
> guess 
> > > dh_strip now has support for doing this by default when generating -dbg 
> > > packages.
> > > 
> > > I would like to see linitian check binaries of packages that support 
> > > debugging. As this is not yet policy it would just be a warning I guess.
> > 
> > lintian 1.23.43 introduced the "debug-file-should-use-detached-symbols"
> > test, which checks files installed under /usr/lib/debug to ensure that
> > they are in fact detached symbol files. Was that the kind of check you
> > were after?
> 
> Ping? :-)

Sorry, never got back to this.

That check is good, but what I was thinking with the original bug is that 
you should check the binaries for the ".gnu_debuglink" and make sure that 
what it's pointing at exists and is in the right place in the -dbg package.

I can no longer remember what prompted me to file this bug originally. I 
must have run into a case where it was broken, but I can't recall the case 
now...

Whatever you decide to do is fine.

Thanks,

-- 
Matt Taggart
taggart@debian.org





Reply to: