public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* FYI: make python install directory
@ 2010-08-18 22:55 Tom Tromey
  2010-08-19 18:03 ` Michael Snyder
  0 siblings, 1 reply; 7+ messages in thread
From: Tom Tromey @ 2010-08-18 22:55 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-08-23 18:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-18 22:55 FYI: make python install directory Tom Tromey
2010-08-19 18:03 ` Michael Snyder
2010-08-19 18:11   ` Michael Snyder
2010-08-19 18:26     ` Joel Brobecker
2010-08-19 18:39       ` Daniel Jacobowitz
2010-08-19 18:38   ` Tom Tromey
2010-08-23 18:27     ` Michael Snyder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).