From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11119 invoked by alias); 21 Sep 2012 15:44:09 -0000 Received: (qmail 11105 invoked by uid 22791); 21 Sep 2012 15:44:07 -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; Fri, 21 Sep 2012 15:43:54 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8LFhoKs014342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 21 Sep 2012 11:43:50 -0400 Received: from host2.jankratochvil.net (ovpn-113-58.phx2.redhat.com [10.3.113.58]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q8LFhkH7015803 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 21 Sep 2012 11:43:48 -0400 Date: Fri, 21 Sep 2012 15:44:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: Doug Evans , Meador Inge , gdb@sourceware.org Subject: Re: Using Py_SetPythonHome Message-ID: <20120921154345.GA30615@host2.jankratochvil.net> References: <50511945.2070400@codesourcery.com> <20120917170657.GB5716@adacore.com> <20120917174611.GA27891@host2.jankratochvil.net> <20120919080410.GA12296@host2.jankratochvil.net> <20120921153645.GD5439@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120921153645.GD5439@adacore.com> 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/msg00062.txt.bz2 On Fri, 21 Sep 2012 17:36:45 +0200, Joel Brobecker wrote: > > 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 > > FWIW, I read the discussion, and I find it inconclusive in the sense > that they seem to lean towards letting each application decide for > themselves what to do. Certainly, I am still in favor of the proposed > patch, but IIRC, this is causing problems for you (?). This is why > I dropped its inclusion in the FSF tree. I cannot answer Py_SetPythonHome in standard build before I find out what is the meaning of relocate_gdb_directory in standard build. Py_SetPythonHome AFAIK does not have a meaning without relocate_gdb_directory and relocate_gdb_directory is IMO already incorrect. This is creating OS-in-an-application designs reimplementing what OS should do. Regards, Jan