From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30629 invoked by alias); 19 Sep 2012 08:04:40 -0000 Received: (qmail 30612 invoked by uid 22791); 19 Sep 2012 08:04:37 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 19 Sep 2012 08:04:18 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8J84Fj1018533 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 Sep 2012 04:04:15 -0400 Received: from host2.jankratochvil.net (ovpn-113-58.phx2.redhat.com [10.3.113.58]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8J84A5R008664 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 19 Sep 2012 04:04:13 -0400 Date: Wed, 19 Sep 2012 08:04:00 -0000 From: Jan Kratochvil To: Doug Evans Cc: Joel Brobecker , Meador Inge , gdb@sourceware.org Subject: Re: Using Py_SetPythonHome Message-ID: <20120919080410.GA12296@host2.jankratochvil.net> References: <50511945.2070400@codesourcery.com> <20120917170657.GB5716@adacore.com> <20120917174611.GA27891@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00053.txt.bz2 On Tue, 18 Sep 2012 21:37:47 +0200, Doug Evans wrote: > On Mon, Sep 17, 2012 at 10:46 AM, Jan Kratochvil wrote: > > On Mon, 17 Sep 2012 19:06:57 +0200, Joel Brobecker wrote: > > and the last one with Python upstream decision: > > http://sourceware.org/ml/gdb-patches/2012-05/msg01041.html > > It's not clear to me that upstream has made a decision (or that they > sufficiently understand our use-case). It is important to make clear what is "our use-case". My use-case is standard GNU/Linux distribution. Joel's use-case is separate unconfigured directory with bundled various libraries incl. Python. Not sure which one is yours. I believe the default configuration should be suitable for GNU/Linux distribution and not for bundled uninstalled pack of files. We probably do not agree in this item I guess. I (plus all GNU/Linux distros should) already have to disable relocate_gdb_directory to make 'gdb' suitable for GNU/Linux distribution: http://pkgs.fedoraproject.org/cgit/gdb.git/commit/?id=a5cb59e730e456e3dbf1a834027453e282046b45 For the bundled uninstalled pack of files I find OK to use Py_SetPythonHome although only in the case $PYTHONHOME is not set. If $PYTHONHOME is set then GDB should not override it. This override is what was decided in: http://bugs.python.org/issue14956#msg161959 There should be decided - also for relocate_gdb_directory: * What is the target installation layout for: ./configure; make; make install * Whether there are other installation layouts which should be made available by some: ./configure --enable-xxx=yyy; make; make install * For Python: upstream mentions some virtualenv/venv which should reportedly obsolete all the Python-specific hacks we discuss here. http://bugs.python.org/issue14956 But that also means Python-3.x requirement which GDB is not compatible with. Regards, Jan