pg.ddx.io pgsql-committers@postgresql.org mailing list archive
help / color / mirror / Atom feedpgsql: Huh, we do need to look in $python_configdir for the Python shli
4+ messages / 2 participants
[nested] [flat]
* pgsql: Huh, we do need to look in $python_configdir for the Python shli
@ 2016-10-04 20:38 Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2016-10-04 20:38 UTC (permalink / raw)
To: pgsql-committers
Huh, we do need to look in $python_configdir for the Python shlib.
Debian does it that way, for no doubt what seems to them a good reason.
Thanks to Aidan Van Dyk for confirmation.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/fc76259f5b8473dbd3d2009b0e4a267cf3a7e704
Modified Files
--------------
config/python.m4 | 13 ++++++++-----
configure | 3 ++-
2 files changed, 10 insertions(+), 6 deletions(-)
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Huh, we do need to look in $python_configdir for the Python shli
@ 2016-10-05 13:20 Andrew Dunstan <andrew@dunslane.net>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Dunstan @ 2016-10-05 13:20 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; pgsql-committers
On 10/04/2016 04:38 PM, Tom Lane wrote:
> Huh, we do need to look in $python_configdir for the Python shlib.
>
> Debian does it that way, for no doubt what seems to them a good reason.
> Thanks to Aidan Van Dyk for confirmation.
>
>
Looks like there are still problems on Windows/mingw and OpenBSD - see
frogmouth and curculio on the buildfarm.
Do we need to fall back on the old mechanism?
cheers
andrew
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Huh, we do need to look in $python_configdir for the Python shli
@ 2016-10-05 13:27 Tom Lane <tgl@sss.pgh.pa.us>
parent: Andrew Dunstan <andrew@dunslane.net>
0 siblings, 1 reply; 4+ messages in thread
From: Tom Lane @ 2016-10-05 13:27 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers
Andrew Dunstan <andrew@dunslane.net> writes:
> Looks like there are still problems on Windows/mingw and OpenBSD - see
> frogmouth and curculio on the buildfarm.
Yeah. I just sent you an offlist request to look into what's happening
on frogmouth, and I'm talking to curculio's owner as well.
> Do we need to fall back on the old mechanism?
I hope not. What is really going on here is that we're being pickier
about whether we understand where libpython is. It looks to me like
on the machines where it's failing now, it was only accidental that
it worked at all before. The fact that frogmouth was producing
checking how to link an embedded Python application... -L -lpython2.7
certainly doesn't leave a warm feeling --- how did the linker parse that?
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: pgsql: Huh, we do need to look in $python_configdir for the Python shli
@ 2016-10-05 14:24 Tom Lane <tgl@sss.pgh.pa.us>
parent: Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 4+ messages in thread
From: Tom Lane @ 2016-10-05 14:24 UTC (permalink / raw)
To: Andrew Dunstan <andrew@dunslane.net>; +Cc: pgsql-committers
I wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>> Looks like there are still problems on Windows/mingw and OpenBSD - see
>> frogmouth and curculio on the buildfarm.
> Yeah. I just sent you an offlist request to look into what's happening
> on frogmouth, and I'm talking to curculio's owner as well.
The answer on curculio seems to be that OpenBSD doesn't bother with
providing symlinks like libpython2.7.so -> libpython2.7.so.0.0.
They've evidently hacked the linker so that it will find such a shlib
even when told only "-lpython2.7". I can't say that I think that's
a good design --- what if there's more than one version installed? ---
but there you have it. (Thanks to Mikael Kjellstrom for assisting
with this investigation.)
This seems reasonably easy to fix by allowing the configure probe
to accept files that have the expected name plus some trailing junk.
I can't tell what to make of frogmouth's results from here. Awaiting
your input. If you're not sure what to check, it would be helpful
to see the results of
python -c "import distutils.sysconfig; print(distutils.sysconfig.get_config_vars())"
and to know exactly where libpython.dll is and what it's named.
regards, tom lane
--
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2016-10-05 14:24 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-10-04 20:38 pgsql: Huh, we do need to look in $python_configdir for the Python shli Tom Lane <tgl@sss.pgh.pa.us>
2016-10-05 13:20 ` Andrew Dunstan <andrew@dunslane.net>
2016-10-05 13:27 ` Tom Lane <tgl@sss.pgh.pa.us>
2016-10-05 14:24 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox