FYI: make python install directory
Tom Tromey
tromey@redhat.com
Wed Aug 18 22:55:00 GMT 2010
I'm checking this in on the trunk and the 7.2 branch.
PR 11900 says that gdb's breaks help with Python 2.4.
This happens because the gdb module's __path__ points to a directory
which does not exist.
This patch fixes the problem by arranging to make the appropriate
directory at install time.
Joel, I'm afraid your patches in this area will need a small update.
Or you can just back this out when those go in -- it doesn't matter at
all to me. I went with this very minimal patch just because it seems
important to fix for 7.2.
Tom
2010-08-18 Tom Tromey <tromey@redhat.com>
PR python/11900:
* configure: Rebuild.
* configure.ac: Add install-python to CONFIG_INSTALL.
* Makefile.in (install-python): New.
Index: Makefile.in
===================================================================
RCS file: /cvs/src/src/gdb/Makefile.in,v
retrieving revision 1.1127.2.1
diff -u -r1.1127.2.1 Makefile.in
--- Makefile.in 28 Jul 2010 18:32:47 -0000 1.1127.2.1
+++ Makefile.in 18 Aug 2010 22:52:22 -0000
@@ -1037,6 +1037,8 @@
$(INSTALL_DATA) $(srcdir)/gdb.1 \
$(DESTDIR)$(man1dir)/$$transformed_name.1
+install-python:
+ $(SHELL) $(srcdir)/../mkinstalldirs $(GDB_DATADIR)/python/gdb
uninstall: force $(CONFIG_UNINSTALL)
transformed_name=`t='$(program_transform_name)'; \
Index: configure.ac
===================================================================
RCS file: /cvs/src/src/gdb/configure.ac,v
retrieving revision 1.125.2.2
diff -u -r1.125.2.2 configure.ac
--- configure.ac 30 Jul 2010 16:02:16 -0000 1.125.2.2
+++ configure.ac 18 Aug 2010 22:52:23 -0000
@@ -832,6 +832,7 @@
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_PYTHON_OBS)"
CONFIG_DEPS="$CONFIG_DEPS \$(SUBDIR_PYTHON_DEPS)"
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_PYTHON_SRCS)"
+ CONFIG_INSTALL="$CONFIG_INSTALL install-python"
ENABLE_CFLAGS="$ENABLE_CFLAGS \$(SUBDIR_PYTHON_CFLAGS)"
# Flags needed to compile Python code (taken from python-config --cflags).
More information about the Gdb-patches
mailing list