From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3354 invoked by alias); 8 Feb 2010 20:05:14 -0000 Received: (qmail 3346 invoked by uid 22791); 8 Feb 2010 20:05:13 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.33.17) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 08 Feb 2010 20:05:10 +0000 Received: from kpbe15.cbf.corp.google.com (kpbe15.cbf.corp.google.com [172.25.105.79]) by smtp-out.google.com with ESMTP id o18K57lI025359 for ; Mon, 8 Feb 2010 20:05:07 GMT Received: from wwi18 (wwi18.prod.google.com [10.241.243.18]) by kpbe15.cbf.corp.google.com with ESMTP id o18K4641029970 for ; Mon, 8 Feb 2010 12:04:47 -0800 Received: by wwi18 with SMTP id 18so1688139wwi.33 for ; Mon, 08 Feb 2010 12:04:44 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.90.212 with SMTP id e62mr1812221wef.26.1265659484235; Mon, 08 Feb 2010 12:04:44 -0800 (PST) In-Reply-To: <20100208195627.GA16662@caradoc.them.org> References: <20100208192942.D971F84415@ruffy.mtv.corp.google.com> <20100208195627.GA16662@caradoc.them.org> Date: Mon, 08 Feb 2010 20:05:00 -0000 Message-ID: Subject: Re: [RFC] Help python find its files From: Doug Evans To: Doug Evans , gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true X-IsSubscribed: yes 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/msg00229.txt.bz2 On Mon, Feb 8, 2010 at 11:56 AM, Daniel Jacobowitz w= rote: > 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 =A0Doug Evans =A0 >> >> =A0 =A0 =A0 * configure.ac (--with-python): Define WITH_PYTHON_PATH if >> =A0 =A0 =A0 --with-python arg is a path. >> =A0 =A0 =A0 * config.in: Regenerated. >> =A0 =A0 =A0 * configure: Regenerated. >> =A0 =A0 =A0 * python/python.c (_initialize_python): If configured >> =A0 =A0 =A0 --with-python=3D/path, pass a fake argv[0] to Py_SetProgramN= ame so >> =A0 =A0 =A0 python can find its files. > > I suspect this patch will break relocatability. =A0--with-python is a > path on the build system (for -I and -L), not a path on the host > system. Amazing, or depressing, how I forget such things.