public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Doug Evans <dje@google.com>
Cc: Joel Brobecker <brobecker@adacore.com>,
	       Meador Inge <meadori@codesourcery.com>,
	gdb@sourceware.org
Subject: Re: Using Py_SetPythonHome
Date: Wed, 19 Sep 2012 08:04:00 -0000	[thread overview]
Message-ID: <20120919080410.GA12296@host2.jankratochvil.net> (raw)
In-Reply-To: <CADPb22R4cTRqHyRi6asd6muJooPFPaCaRi2DDuqEtA+ew9jrRQ@mail.gmail.com>

On Tue, 18 Sep 2012 21:37:47 +0200, Doug Evans wrote:
> On Mon, Sep 17, 2012 at 10:46 AM, Jan Kratochvil <jan.kratochvil@redhat.com> 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

  reply	other threads:[~2012-09-19  8:04 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-12 23:23 Meador Inge
2012-09-17 17:07 ` Joel Brobecker
2012-09-17 17:46   ` Jan Kratochvil
2012-09-18 19:38     ` Doug Evans
2012-09-19  8:04       ` Jan Kratochvil [this message]
2012-09-21 15:37         ` Joel Brobecker
2012-09-21 15:44           ` Jan Kratochvil
2012-09-21 15:58             ` Joel Brobecker
2012-09-21 17:28               ` Jan Kratochvil
2012-10-02 13:09                 ` Joel Brobecker
2012-10-03 15:13                   ` Jan Kratochvil
2012-10-03 15:14                     ` Jan Kratochvil
2012-10-03 15:39                     ` Joel Brobecker
2012-10-03 17:44                       ` Eli Zaretskii
2012-10-03 17:54                       ` Jan Kratochvil
2012-10-03 17:57                         ` Paul_Koning
2012-10-03 18:35                           ` Eli Zaretskii
2012-10-03 18:43                             ` Jan Kratochvil
2012-10-03 18:52                               ` Eli Zaretskii
2012-10-03 19:03                                 ` Jan Kratochvil
2012-10-03 19:10                                   ` Eli Zaretskii
2012-10-03 19:54                               ` Paul_Koning
2012-10-03 20:04                                 ` Jan Kratochvil
2012-10-03 20:11                               ` Alfred M. Szmidt
2012-10-03 18:40                         ` Eli Zaretskii
2012-10-03 19:26                         ` Terekhov, Mikhail
2012-10-04  7:33                         ` John Gilmore
2012-10-11  8:42                           ` Jan Kratochvil
2012-10-11 14:54                             ` Doug Evans
2012-09-21 15:55   ` Meador Inge
2012-09-21 16:01     ` Jan Kratochvil
2012-09-21 16:36       ` Doug Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20120919080410.GA12296@host2.jankratochvil.net \
    --to=jan.kratochvil@redhat.com \
    --cc=brobecker@adacore.com \
    --cc=dje@google.com \
    --cc=gdb@sourceware.org \
    --cc=meadori@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).