This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] ignore PYTHONHOME environment variable.
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Doug Evans <dje at google dot com>, gdb-patches at sourceware dot org, David Malcolm <dmalcolm at redhat dot com>, Tom Tromey <tromey at redhat dot com>, Ben Woodard <woodard at redhat dot com>
- Date: Mon, 28 May 2012 19:29:30 +0200
- Subject: Re: [RFA] ignore PYTHONHOME environment variable.
- References: <20101123030037.GA19962@host0.dyn.jankratochvil.net> <AANLkTiko2FVL+ktF9JTBRedYz_wvsq_eP4rU3rLcOYmF@mail.gmail.com> <20101123163045.GA1737@host0.dyn.jankratochvil.net> <AANLkTi=W+PnwOfNkRRe5OMz0qm5vCghhduO5ve1Qk3zH@mail.gmail.com> <20101123173054.GW2634@adacore.com> <20101214071210.GQ2596@adacore.com> <20101214092645.GA20415@host0.dyn.jankratochvil.net> <20101214103305.GU2596@adacore.com> <20120518193352.GA12340@host2.jankratochvil.net> <20120528144121.GI5492@adacore.com>
Hi Joel,
On Mon, 28 May 2012 16:41:21 +0200, Joel Brobecker wrote:
> Is there something you need to fix on your side?
Yes, user has requested the same feature. It is rather a decision what
should be general behavior across applications linking with libpython (not
just for GDB). For example (yum is like AFAIK apt):
$ echo foo >site.py; PYTHONPATH=. yum list bash
Traceback (most recent call last):
File "./site.py", line 1, in <module>
foo
NameError: name 'foo' is not defined
$ _
VIM behaves the same (although its crashes only after first :python command).
Therefore I have filed distro-wide (sure to be only FYI for FSF GDB, after/if
it gets decided):
https://fedorahosted.org/fesco/ticket/858
> But does it answer your question about "ignore it"?
I have left the downstream decision to the ticket above, my already proposed
behavior (current FSF GDB state) is clearly wrong for users.
Thanks,
Jan