FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

LinkBack Thread Tools
Old 09-23-2012, 02:44 PM
Allan McRae
Default Split debugging symbols into separate package

This patchset allows makepkg to automatically create packages from the stripped
debugging symbols.

Patches 1, 4 and 6 are only mildly related... but a fixes that were "needed"
along the way.

The idea is to add options=('debug') to your PKGBUILD or in makepkg.conf and
then makepkg will add DEBUG_CFLAGS and DEBUG_CXXFLAGS (defined in makepkg.conf)
to their buildflag counterparts.

When both "debug" and "strip" are specified in the options, the debug symbols
are copied into a separate folder before the files are stripped. The main
debugging symbols are in /usr/lib/debug/path/to/file
(e.g. /usr/lib/debug/usr/bin/pacman) and are hardlinked if required. If the
binary was linked with a build ID, the relevant symlinks in
/usr/lib/debug/.build_id are created.

Testing is needed...

Allan McRae (7):
makepkg: always run tidy_install on repackaging
makepkg: add option to include debugging compiler flags
makepkg: move debug symbol stripping to separate function
makepkg: always use pkg/$pkgname as $pkgdir
makepkg: strip debugging symbols into separate folder
makepkg: output the name of the package being created
makepkg: create package from stripped debug symbols

doc/PKGBUILD.5.txt | 5 ++
doc/makepkg.conf.5.txt | 13 +++++
etc/makepkg.conf.in | 8 ++-
scripts/makepkg.sh.in | 137 ++++++++++++++++++++++++++++++++++++++++---------
4 files changed, 136 insertions(+), 27 deletions(-)


Thread Tools

All times are GMT. The time now is 02:09 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org