OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.7 KiB

  1. Do not put gdb python plugin directly into $libdir
  2. Placing files like 'libstdc++.so.6.0.17-gdb.py' into '$libdir' results in
  3. warnings when running 'ldconfig' because it is not an ELF file.
  4. A common place where to put gdb plugins is '$datadir/gdb/auto-load$libdir'
  5. like '/usr/share/gdb/auto-load/usr/lib'.
  6. Note:
  7. This patch assumes that gdb and gcc are using the same prefix!
  8. --- a/libstdc++-v3/python/Makefile.am 2013-02-11 11:21:56.256542983 +0100
  9. +++ b/libstdc++-v3/python/Makefile.am 2013-02-11 14:00:22.742531876 +0100
  10. @@ -38,10 +38,10 @@
  11. gdb.py: hook.in Makefile
  12. sed -e 's,@pythondir@,$(pythondir),' \
  13. - -e 's,@toolexeclibdir@,$(toolexeclibdir),' < $(srcdir)/hook.in > $@
  14. + -e 's,@toolexeclibdir@,$(datadir)/gdb/auto-load$(toolexeclibdir),' < $(srcdir)/hook.in > $@
  15. install-data-local: gdb.py
  16. - @$(mkdir_p) $(DESTDIR)$(toolexeclibdir)
  17. + @$(mkdir_p) $(DESTDIR)$(datadir)/gdb/auto-load$(toolexeclibdir)
  18. ## We want to install gdb.py as SOMETHING-gdb.py. SOMETHING is the
  19. ## full name of the final library. We want to ignore symlinks, the
  20. ## .la file, and any previous -gdb.py file. This is inherently
  21. @@ -59,5 +59,5 @@
  22. esac; \
  23. done; \
  24. cd $$here; \
  25. - echo " $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py"; \
  26. - $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py
  27. + echo " $(INSTALL_DATA) gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(toolexeclibdir)/$$libname-gdb.py"; \
  28. + $(INSTALL_DATA) gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(toolexeclibdir)/$$libname-gdb.py
  29. --- a/libstdc++-v3/python/Makefile.in 2013-02-11 11:21:59.428241462 +0100
  30. +++ b/libstdc++-v3/python/Makefile.in 2013-02-11 14:00:05.000008051 +0100
  31. @@ -493,10 +493,10 @@
  32. gdb.py: hook.in Makefile
  33. sed -e 's,@pythondir@,$(pythondir),' \
  34. - -e 's,@toolexeclibdir@,$(toolexeclibdir),' < $(srcdir)/hook.in > $@
  35. + -e 's,@toolexeclibdir@,$(datadir)/gdb/auto-load$(toolexeclibdir),' < $(srcdir)/hook.in > $@
  36. install-data-local: gdb.py
  37. - @$(mkdir_p) $(DESTDIR)$(toolexeclibdir)
  38. + @$(mkdir_p) $(DESTDIR)$(datadir)/gdb/auto-load$(toolexeclibdir)
  39. @here=`pwd`; cd $(DESTDIR)$(toolexeclibdir); \
  40. for file in libstdc++*; do \
  41. case $$file in \
  42. @@ -509,8 +509,8 @@
  43. esac; \
  44. done; \
  45. cd $$here; \
  46. - echo " $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py"; \
  47. - $(INSTALL_DATA) gdb.py $(DESTDIR)$(toolexeclibdir)/$$libname-gdb.py
  48. + echo " $(INSTALL_DATA) gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(toolexeclibdir)/$$libname-gdb.py"; \
  49. + $(INSTALL_DATA) gdb.py $(DESTDIR)$(datadir)/gdb/auto-load$(toolexeclibdir)/$$libname-gdb.py
  50. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  51. # Otherwise a system limit (for SysV at least) may be exceeded.