Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   ArchLinux Pacman Development (http://www.linux-archive.org/archlinux-pacman-development/)
-   -   Split debugging symbols into separate package (http://www.linux-archive.org/archlinux-pacman-development/706641-split-debugging-symbols-into-separate-package.html)

Allan McRae 09-23-2012 02:44 PM

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(-)

--
1.7.12.1


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

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.