[pacman-dev] [PATCH 0/7] Split debugging symbols into separate package

Allan McRae allan at archlinux.org
Sun Sep 23 10:44:28 EDT 2012

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


More information about the pacman-dev mailing list