From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23141 invoked by alias); 20 May 2010 19:15:27 -0000 Received: (qmail 23063 invoked by uid 22791); 20 May 2010 19:15:25 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 20 May 2010 19:15:22 +0000 Received: (qmail 2771 invoked from network); 20 May 2010 19:15:20 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 20 May 2010 19:15:20 -0000 Date: Thu, 20 May 2010 19:23:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sourceware.org Subject: Re: Add LIBDIR/gdb/python- to Python search path Message-ID: <20100520191512.GA25315@caradoc.them.org> Mail-Followup-To: gdb-patches@sourceware.org References: <1274380803-25266-1-git-send-email-brobecker@adacore.com> <20100520185436.GA24123@caradoc.them.org> <20100520190347.GE3019@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100520190347.GE3019@adacore.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00440.txt.bz2 On Thu, May 20, 2010 at 12:03:47PM -0700, Joel Brobecker wrote: > > GDB isn't the only program in our distribution that needs an included > > Python, so we're not going to put it in lib/gdb. But it'd be nice to > > have other GDB-private data outside of top-level lib/. > > That would argue in favor if adding an extra switch that allows you > to override the python libdir. I can take care of that as part of > this patch set, for sure, if this helps in your case. If you're offering, I'm certainly happy. The key, of course, is that it's got to be relocatable just like this one. I'd forgotten; we actually have something a little messier :-( It looks like this: bin/arm-none-eabi-gdb lib/libpython2.6.so.1.0 lib/python26.zip lib/python2.6/_socket.so [ et cetera, ~ 50 ] The zip file reduces the total number of files in the installation significantly. So I end up needing to put the zip file and the directory both onto sys.path. This may be more generality than the FSF tree really wants; that's entirely fine by me. -- Daniel Jacobowitz CodeSourcery