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