nixpkgs/pkgs/development/libraries/glib/gdb_script.patch
Guillaume Girol 6ccd956fd4 glib: fix installing gdb scripts
the disk space cost is less than 20Kb

They provide pretty printers for datascructures likes hash tables in
gdb.

To check that the scripts are loaded:
run gdb on any glib application (for example gio from the bin output)
run info auto-load python-scripts
observe scripts whose filename is libglib-...-gdb.py
2024-05-11 12:00:00 +00:00

24 lines
738 B
Diff

diff --git a/glib/meson.build b/glib/meson.build
index b2dd569e1..b013991a1 100644
--- a/glib/meson.build
+++ b/glib/meson.build
@@ -541,7 +540,7 @@ configure_file(
input: 'libglib-gdb.py.in',
output: 'libglib-2.0.so.@0@-gdb.py'.format(library_version),
configuration: gdb_conf,
- install_dir: gdb_install_dir,
+ install_dir: glib_libdir,
install_tag: 'devel',
install: gdb_install,
)
diff --git a/gobject/meson.build b/gobject/meson.build
@@ -185,7 +184,7 @@ configure_file(
input: 'libgobject-gdb.py.in',
output: 'libgobject-2.0.so.@0@-gdb.py'.format(library_version),
configuration: gdb_conf,
- install_dir: gdb_install_dir,
+ install_dir: glib_libdir,
install_tag: 'devel',
install: gdb_install,
)