Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have created rpm packages for a software along with debuginfo. For Ubuntu/Debian , I have only the software packaged as .deb but don't know how to create debuginfo .deb package. Please let me know how to create them.

share|improve this question
    
For users like me who have no clue what debuginfo is, see fedoraproject.org/wiki/Packaging:Debuginfo –  Lekensteyn Jul 19 '11 at 14:26

1 Answer 1

up vote 3 down vote accepted

Packages in the official archives have debug packages build for them automatically. They are stored in a different archive though. They will have the names foo-dbgsym You can access them by putting the following in your /etc/apt/sources.list:

deb http://ddebs.ubuntu.com natty main restricted universe multiverse
deb http://ddebs.ubuntu.com natty-updates main restricted universe multiverse
deb http://ddebs.ubuntu.com natty-security main restricted universe multiverse
deb http://ddebs.ubuntu.com natty-proposed main restricted universe multiverse

(Replace natty with the release you are running.)

Information on how these are generated can be found here:


If you'd like to provide debug packages for a package which you maintain outside of the official archives, that is possible as well. This Debian wiki article is the best place to start.

Briefly, you must first create the new package in debian/control by adding:

Package: foo-dbg
Architecture: any
Section: debug
Priority: extra
Depends:
    foo (= ${binary:Version}),
    ${misc:Depends}
Description: debugging symbols for foo
 foo is a library that lets you do stuff.
 .
 This package contains the debugging symbols for foo.

Then in debian/rules, use dh_strip to strip debugging symbols from binaries, but retain them for use in the debug packages.

override_dh_strip:
        dh_strip --dbg-package=foo-dbg
share|improve this answer
2  
For ubuntu build chroots, installing pkg-create-dbgsym will cause packages built in that chroot to also output -dbgsym packages when stripped. This works for pbuilder, sbuild, cowbuilder, etc. and is how the "automatic" -dbgsym packages are generated in Soyuz. –  Emmet Hikory Jul 21 '11 at 2:50
    
thanks for the help.I'll try them out. –  lakshmipathi Jul 21 '11 at 6:33

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.