From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8041 invoked by alias); 8 Feb 2010 19:56:54 -0000 Received: (qmail 8033 invoked by uid 22791); 8 Feb 2010 19:56:54 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS 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; Mon, 08 Feb 2010 19:56:50 +0000 Received: (qmail 11874 invoked from network); 8 Feb 2010 19:56:49 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 8 Feb 2010 19:56:49 -0000 Date: Mon, 08 Feb 2010 19:56:00 -0000 From: Daniel Jacobowitz To: Doug Evans Cc: gdb-patches@sourceware.org Subject: Re: [RFC] Help python find its files Message-ID: <20100208195627.GA16662@caradoc.them.org> Mail-Followup-To: Doug Evans , gdb-patches@sourceware.org References: <20100208192942.D971F84415@ruffy.mtv.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100208192942.D971F84415@ruffy.mtv.corp.google.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-02/txt/msg00226.txt.bz2 On Mon, Feb 08, 2010 at 11:29:42AM -0800, Doug Evans wrote: > Hi. > > We had problems with python not being able to find its files. > This may be specific to installations where gdb and python > are installed in different places. > > 2010-02-08 Doug Evans > > * configure.ac (--with-python): Define WITH_PYTHON_PATH if > --with-python arg is a path. > * config.in: Regenerated. > * configure: Regenerated. > * python/python.c (_initialize_python): If configured > --with-python=/path, pass a fake argv[0] to Py_SetProgramName so > python can find its files. I suspect this patch will break relocatability. --with-python is a path on the build system (for -I and -L), not a path on the host system. -- Daniel Jacobowitz CodeSourcery