pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make some fixes to allow building Postgres on macOS 10.14 ("Moja
Date: Tue, 25 Sep 2018 17:24:06 +0000
Message-ID: <E1g4r4A-0002JK-6e@gemulon.postgresql.org> (raw)

Make some fixes to allow building Postgres on macOS 10.14 ("Mojave").

Apple's latest rearrangements of the system-supplied headers have broken
building of PL/Perl and PL/Tcl.  The only practical way to fix PL/Tcl is to
start using the "-isysroot" compiler flag to point to SDK-supplied headers,
as Apple expects.  We must also start distinguishing where to find Perl's
headers from where to find its shared library; but that seems like good
cleanup anyway.

Extensions that formerly did something like -I$(perl_archlibexp)/CORE
should now do -I$(perl_includedir)/CORE instead.  perl_archlibexp
is still the place to look for libperl.so, though.

If for some reason you don't like the default -isysroot setting, you can
override that by setting PG_SYSROOT in configure's arguments.  I don't
currently think people would need to do so, unless maybe for cross-version
build purposes.

In addition, teach configure where to find tclConfig.sh.  Our traditional
method of searching $auto_path hasn't worked for the last couple of macOS
releases, and it now seems clear that Apple's not going to change that.
The workaround of manually specifying --with-tclconfig was annoying
already, but Mojave's made it a lot more so because the sysroot path now
has to be included as well.  Let's just wire the knowledge into configure
instead.  To avoid breaking builds against non-default Tcl installations
(e.g. MacPorts) wherein the $auto_path method probably still works,
arrange to try the additional case only after all else has failed.

Back-patch to all supported versions, since at least the buildfarm
cares about that.  The changes are set up to not do anything on macOS
releases that are old enough to not have functional sysroot trees.

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6019247a5b5c51d5600681f969536222918fd03b

Modified Files
--------------
config/tcl.m4             | 13 ++++++++++++-
configure                 | 20 ++++++++++++++++++--
configure.in              | 11 ++++++++++-
src/Makefile.global.in    |  1 +
src/pl/plperl/GNUmakefile |  2 +-
src/template/darwin       | 23 +++++++++++++++++++----
6 files changed, 61 insertions(+), 9 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1g4r4A-0002JK-6e@gemulon.postgresql.org>
Permalink:  ../E1g4r4A-0002JK-6e@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1g4r4A-0002JK-6e@gemulon.postgresql.org

 · 

reply

Reply instructions:

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

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Make some fixes to allow building Postgres on macOS 10.14 ("Moja
  In-Reply-To: <E1g4r4A-0002JK-6e@gemulon.postgresql.org>
  References: <E1g4r4A-0002JK-6e@gemulon.postgresql.org>

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

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