Split debugging symbols into separate package
This patchset allows makepkg to automatically create packages from the stripped
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(-)
|All times are GMT. The time now is 06:08 PM.|
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.