pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.
@ 2021-01-20 17:08 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-01-20 17:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Further tweaking of PG_SYSROOT heuristics for macOS.

It emerges that in some phases of the moon (perhaps to do with
directory entry order?), xcrun will report that the SDK path is
  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
which is normally a symlink to a version-numbered sibling directory.
Our heuristic to skip non-version-numbered pathnames was rejecting
that, which is the wrong thing to do.  We'd still like to end up
with a version-numbered PG_SYSROOT value, but we can have that by
dereferencing the symlink.

Like the previous fix, back-patch to all supported versions.

Discussion: https://postgr.es/m/522433.1611089678@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/9d23c15a034ba163ae1045b945954e8e1bcfc72a

Modified Files
--------------
src/template/darwin | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.
@ 2021-01-20 17:08 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-01-20 17:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Further tweaking of PG_SYSROOT heuristics for macOS.

It emerges that in some phases of the moon (perhaps to do with
directory entry order?), xcrun will report that the SDK path is
  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
which is normally a symlink to a version-numbered sibling directory.
Our heuristic to skip non-version-numbered pathnames was rejecting
that, which is the wrong thing to do.  We'd still like to end up
with a version-numbered PG_SYSROOT value, but we can have that by
dereferencing the symlink.

Like the previous fix, back-patch to all supported versions.

Discussion: https://postgr.es/m/522433.1611089678@sss.pgh.pa.us

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/6671e81946266fae44eb812a1c76e21845f2990c

Modified Files
--------------
src/template/darwin | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.
@ 2021-01-20 17:08 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-01-20 17:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Further tweaking of PG_SYSROOT heuristics for macOS.

It emerges that in some phases of the moon (perhaps to do with
directory entry order?), xcrun will report that the SDK path is
  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
which is normally a symlink to a version-numbered sibling directory.
Our heuristic to skip non-version-numbered pathnames was rejecting
that, which is the wrong thing to do.  We'd still like to end up
with a version-numbered PG_SYSROOT value, but we can have that by
dereferencing the symlink.

Like the previous fix, back-patch to all supported versions.

Discussion: https://postgr.es/m/522433.1611089678@sss.pgh.pa.us

Branch
------
REL_12_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/561dd8d8a2eab5097fedddabcc6dee4981c73550

Modified Files
--------------
src/template/darwin | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.
@ 2021-01-20 17:08 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-01-20 17:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Further tweaking of PG_SYSROOT heuristics for macOS.

It emerges that in some phases of the moon (perhaps to do with
directory entry order?), xcrun will report that the SDK path is
  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
which is normally a symlink to a version-numbered sibling directory.
Our heuristic to skip non-version-numbered pathnames was rejecting
that, which is the wrong thing to do.  We'd still like to end up
with a version-numbered PG_SYSROOT value, but we can have that by
dereferencing the symlink.

Like the previous fix, back-patch to all supported versions.

Discussion: https://postgr.es/m/522433.1611089678@sss.pgh.pa.us

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cbcff1729ff27a7fb28d3339e448f90ca0a70dac

Modified Files
--------------
src/template/darwin | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.
@ 2021-01-20 17:08 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-01-20 17:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Further tweaking of PG_SYSROOT heuristics for macOS.

It emerges that in some phases of the moon (perhaps to do with
directory entry order?), xcrun will report that the SDK path is
  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
which is normally a symlink to a version-numbered sibling directory.
Our heuristic to skip non-version-numbered pathnames was rejecting
that, which is the wrong thing to do.  We'd still like to end up
with a version-numbered PG_SYSROOT value, but we can have that by
dereferencing the symlink.

Like the previous fix, back-patch to all supported versions.

Discussion: https://postgr.es/m/522433.1611089678@sss.pgh.pa.us

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a3345383d88b7410bee3d73852cfd5c0f5737973

Modified Files
--------------
src/template/darwin | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.
@ 2021-01-20 17:08 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-01-20 17:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Further tweaking of PG_SYSROOT heuristics for macOS.

It emerges that in some phases of the moon (perhaps to do with
directory entry order?), xcrun will report that the SDK path is
  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
which is normally a symlink to a version-numbered sibling directory.
Our heuristic to skip non-version-numbered pathnames was rejecting
that, which is the wrong thing to do.  We'd still like to end up
with a version-numbered PG_SYSROOT value, but we can have that by
dereferencing the symlink.

Like the previous fix, back-patch to all supported versions.

Discussion: https://postgr.es/m/522433.1611089678@sss.pgh.pa.us

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/cbcf7b130f5e53e405c5b366e78a4b3d8ff5f642

Modified Files
--------------
src/template/darwin | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* pgsql: Further tweaking of PG_SYSROOT heuristics for macOS.
@ 2021-01-20 17:08 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2021-01-20 17:08 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Further tweaking of PG_SYSROOT heuristics for macOS.

It emerges that in some phases of the moon (perhaps to do with
directory entry order?), xcrun will report that the SDK path is
  /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
which is normally a symlink to a version-numbered sibling directory.
Our heuristic to skip non-version-numbered pathnames was rejecting
that, which is the wrong thing to do.  We'd still like to end up
with a version-numbered PG_SYSROOT value, but we can have that by
dereferencing the symlink.

Like the previous fix, back-patch to all supported versions.

Discussion: https://postgr.es/m/522433.1611089678@sss.pgh.pa.us

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/175f716a8f37c0325cc3f683dad242536f9515d0

Modified Files
--------------
src/template/darwin | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)



^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2021-01-20 17:08 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-01-20 17:08 pgsql: Further tweaking of PG_SYSROOT heuristics for macOS. Tom Lane <tgl@sss.pgh.pa.us>
2021-01-20 17:08 pgsql: Further tweaking of PG_SYSROOT heuristics for macOS. Tom Lane <tgl@sss.pgh.pa.us>
2021-01-20 17:08 pgsql: Further tweaking of PG_SYSROOT heuristics for macOS. Tom Lane <tgl@sss.pgh.pa.us>
2021-01-20 17:08 pgsql: Further tweaking of PG_SYSROOT heuristics for macOS. Tom Lane <tgl@sss.pgh.pa.us>
2021-01-20 17:08 pgsql: Further tweaking of PG_SYSROOT heuristics for macOS. Tom Lane <tgl@sss.pgh.pa.us>
2021-01-20 17:08 pgsql: Further tweaking of PG_SYSROOT heuristics for macOS. Tom Lane <tgl@sss.pgh.pa.us>
2021-01-20 17:08 pgsql: Further tweaking of PG_SYSROOT heuristics for macOS. 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