Page MenuHomeFreeBSD

Various fixes for GDB's data directory.

Authored by jhb on Dec 7 2018, 6:39 PM.


  • Backport a fix from master to fix the setting of the default auto-load paths.
  • Switch to using the default data directory (PREFIX/share/gdb) instead of a version specific directory. This allows gdb to use auto-load scripts installed by other packages to PREFIX/share/gdb/auto-load. A couple of existing packages already do this such as libglib and libgobject.
  • Add symlinks for gdb.1 and kgdb.1 manpages without version numbers. This makes 'man gdb' and 'man kgdb' work on 12.0 which doesn't have these manpages in the base system.
  • Precompile the installed python scripts and add then to the packing list. This avoids leaving .pyc files around after the package is deleted if gdb (or kgdb) is run as root.
Test Plan
  • poudriere testport
  • 'man gdb' and 'man kgdb' after installing the package on 12.0 now work

Diff Detail

rP FreeBSD ports repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

tested and looks good to me

This revision is now accepted and ready to land.Dec 9 2018, 10:44 PM
This revision was automatically updated to reflect the committed changes.