Bug#668437: lintian: Identify -dbg packages that have binaries with no debugging symbols

2012-10-25 Thread Nelson A. de Oliveira
Hi!

On Mon, Oct 22, 2012 at 12:01 PM, Niels Thykier ni...@thykier.net wrote:
 Did you by chance mean cut -b 8 or so.  By the looks of it 18 cuts
 into the symbol/section/$something name.  I assume the N you are
 talking about would be:

  |
  v
  N .debug_abbrev
  N .debug_aranges
  N .debug_frame
  N .debug_info
  N .debug_line
  N .debug_loc
  N .debug_pubnames
  N .debug_str
  ^
  |

It's 18 here:

 N .debug_abbrev
 N .debug_aranges
 N .debug_info

 If so, we should be able to simply check for the presence of any section
 starting with .debug_ (or maybe just .debug_line, which supposedly
 holds the line number mappings)[1].

But indeed. Better check for .debug_*

Thank you!

Best regards,
Nelson


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#668437: lintian: Identify -dbg packages that have binaries with no debugging symbols

2012-10-22 Thread Niels Thykier
On 2012-04-11 22:37, Nelson A. de Oliveira wrote:
 Package: lintian
 Version: 2.5.6
 Severity: wishlist
 
 Hi!
 
 Using #652099 as an example, we have a source package that has a -dbg
 binary package, with files located under /usr/lib/debug/ as they should
 be but with one problem: there are no debugging symbols.
 
 Could lintian do a new check against the binaries in a -dbg package to
 see if they indeed have the proper debugging symbols?
 

Hi,

It might be possible to do...

 Something like doing a nm -a $file | cut -b 18 and grepping for N
 If no N is found then we have a file with missing symbols and a warning
 about this.
 

Did you by chance mean cut -b 8 or so.  By the looks of it 18 cuts
into the symbol/section/$something name.  I assume the N you are
talking about would be:

 |
 v
 N .debug_abbrev
 N .debug_aranges
 N .debug_frame
 N .debug_info
 N .debug_line
 N .debug_loc
 N .debug_pubnames
 N .debug_str
 ^
 |

 (I don't know if nm + cut + grep is the best way to test for debugging 
 symbols, but
 it seems to do the job)
 
 Thank you!
 
 Best regards,
 Nelson
 
 [...]


If so, we should be able to simply check for the presence of any section
starting with .debug_ (or maybe just .debug_line, which supposedly
holds the line number mappings)[1].

~Niels

[1] Ref: http://www.dwarfstd.org/doc/Debugging%20using%20DWARF.pdf

(see ELF sections on page 9)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#668437: lintian: Identify -dbg packages that have binaries with no debugging symbols

2012-04-11 Thread Nelson A. de Oliveira
Package: lintian
Version: 2.5.6
Severity: wishlist

Hi!

Using #652099 as an example, we have a source package that has a -dbg
binary package, with files located under /usr/lib/debug/ as they should
be but with one problem: there are no debugging symbols.

Could lintian do a new check against the binaries in a -dbg package to
see if they indeed have the proper debugging symbols?

Something like doing a nm -a $file | cut -b 18 and grepping for N
If no N is found then we have a file with missing symbols and a warning
about this.

(I don't know if nm + cut + grep is the best way to test for debugging symbols, 
but
it seems to do the job)

Thank you!

Best regards,
Nelson

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.0.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages lintian depends on:
ii  binutils   2.22-6
ii  bzip2  1.0.6-1
ii  diffstat   1.55-2
ii  file   5.11-1
ii  gettext0.18.1.1-5
ii  intltool-debian0.35.0+20060710.1
ii  libapt-pkg-perl0.1.26
ii  libc-bin   2.13-27
ii  libclass-accessor-perl 0.34-1
ii  libclone-perl  0.31-1+b2
ii  libdpkg-perl   1.16.2
ii  libemail-valid-perl0.187-2
ii  libipc-run-perl0.91-1
ii  libparse-debianchangelog-perl  1.2.0-1
ii  libtimedate-perl   1.2000-1
ii  liburi-perl1.60-1
ii  locales2.13-27
ii  man-db 2.6.1-2
ii  patchutils 0.3.2-1.1
ii  perl [libdigest-sha-perl]  5.14.2-9
ii  unzip  6.0-6

lintian recommends no packages.

Versions of packages lintian suggests:
ii  binutils-multiarch none
ii  dpkg-dev   1.16.2
ii  libhtml-parser-perl3.69-1+b1
ii  libtext-template-perl  1.45-2
ii  man-db 2.6.1-2
ii  xz-utils   5.1.1alpha+20110809-3

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org