pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Yet further rethinking of build changes for macOS Mojave.
7+ messages / 1 participants
[nested] [flat]

* pgsql: Yet further rethinking of build changes for macOS Mojave.
@ 2018-11-02 22:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2018-11-02 22:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Yet further rethinking of build changes for macOS Mojave.

The solution arrived at in commit e74dd00f5 presumes that the compiler
has a suitable default -isysroot setting ... but further experience
shows that in many combinations of macOS version, XCode version, Xcode
command line tools version, and phase of the moon, Apple's compiler
will *not* supply a default -isysroot value.

We could potentially go back to the approach used in commit 68fc227dd,
but I don't have a lot of faith in the reliability or life expectancy of
that either.  Let's just revert to the approach already shipped in 11.0,
namely specifying an -isysroot switch globally.  As a partial response to
the concerns raised by Jakob Egger, adjust the contents of Makefile.global
to look like

CPPFLAGS = -isysroot $(PG_SYSROOT) ...
PG_SYSROOT = /path/to/sysroot

This allows overriding the sysroot path at build time in a relatively
painless way.

Add documentation to installation.sgml about how to use the PG_SYSROOT
option.  I also took the opportunity to document how to work around
macOS's "System Integrity Protection" feature.

As before, back-patch to all supported versions.

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1440c461f7ea665b7e743aa636aa6adafa5c6fc6

Modified Files
--------------
configure                      | 10 +++++++++
configure.in                   |  9 ++++++++
doc/src/sgml/installation.sgml | 51 ++++++++++++++++++++++++++++++++++++++++++
src/Makefile.global.in         |  1 +
src/template/darwin            |  7 +++---
5 files changed, 75 insertions(+), 3 deletions(-)



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

* pgsql: Yet further rethinking of build changes for macOS Mojave.
@ 2018-11-02 22:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2018-11-02 22:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Yet further rethinking of build changes for macOS Mojave.

The solution arrived at in commit e74dd00f5 presumes that the compiler
has a suitable default -isysroot setting ... but further experience
shows that in many combinations of macOS version, XCode version, Xcode
command line tools version, and phase of the moon, Apple's compiler
will *not* supply a default -isysroot value.

We could potentially go back to the approach used in commit 68fc227dd,
but I don't have a lot of faith in the reliability or life expectancy of
that either.  Let's just revert to the approach already shipped in 11.0,
namely specifying an -isysroot switch globally.  As a partial response to
the concerns raised by Jakob Egger, adjust the contents of Makefile.global
to look like

CPPFLAGS = -isysroot $(PG_SYSROOT) ...
PG_SYSROOT = /path/to/sysroot

This allows overriding the sysroot path at build time in a relatively
painless way.

Add documentation to installation.sgml about how to use the PG_SYSROOT
option.  I also took the opportunity to document how to work around
macOS's "System Integrity Protection" feature.

As before, back-patch to all supported versions.

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

Branch
------
REL_11_STABLE

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

Modified Files
--------------
configure                      | 10 +++++++++
configure.in                   |  9 ++++++++
doc/src/sgml/installation.sgml | 51 ++++++++++++++++++++++++++++++++++++++++++
src/Makefile.global.in         |  1 +
src/template/darwin            |  7 +++---
5 files changed, 75 insertions(+), 3 deletions(-)



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

* pgsql: Yet further rethinking of build changes for macOS Mojave.
@ 2018-11-02 22:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2018-11-02 22:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Yet further rethinking of build changes for macOS Mojave.

The solution arrived at in commit e74dd00f5 presumes that the compiler
has a suitable default -isysroot setting ... but further experience
shows that in many combinations of macOS version, XCode version, Xcode
command line tools version, and phase of the moon, Apple's compiler
will *not* supply a default -isysroot value.

We could potentially go back to the approach used in commit 68fc227dd,
but I don't have a lot of faith in the reliability or life expectancy of
that either.  Let's just revert to the approach already shipped in 11.0,
namely specifying an -isysroot switch globally.  As a partial response to
the concerns raised by Jakob Egger, adjust the contents of Makefile.global
to look like

CPPFLAGS = -isysroot $(PG_SYSROOT) ...
PG_SYSROOT = /path/to/sysroot

This allows overriding the sysroot path at build time in a relatively
painless way.

Add documentation to installation.sgml about how to use the PG_SYSROOT
option.  I also took the opportunity to document how to work around
macOS's "System Integrity Protection" feature.

As before, back-patch to all supported versions.

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

Branch
------
REL_10_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/229a5c8ade48db7eced79539ab1b8d8a0e86ae88

Modified Files
--------------
configure                      | 10 +++++++++
configure.in                   |  9 ++++++++
doc/src/sgml/installation.sgml | 51 ++++++++++++++++++++++++++++++++++++++++++
src/Makefile.global.in         |  1 +
src/template/darwin            |  7 +++---
5 files changed, 75 insertions(+), 3 deletions(-)



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

* pgsql: Yet further rethinking of build changes for macOS Mojave.
@ 2018-11-02 22:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2018-11-02 22:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Yet further rethinking of build changes for macOS Mojave.

The solution arrived at in commit e74dd00f5 presumes that the compiler
has a suitable default -isysroot setting ... but further experience
shows that in many combinations of macOS version, XCode version, Xcode
command line tools version, and phase of the moon, Apple's compiler
will *not* supply a default -isysroot value.

We could potentially go back to the approach used in commit 68fc227dd,
but I don't have a lot of faith in the reliability or life expectancy of
that either.  Let's just revert to the approach already shipped in 11.0,
namely specifying an -isysroot switch globally.  As a partial response to
the concerns raised by Jakob Egger, adjust the contents of Makefile.global
to look like

CPPFLAGS = -isysroot $(PG_SYSROOT) ...
PG_SYSROOT = /path/to/sysroot

This allows overriding the sysroot path at build time in a relatively
painless way.

Add documentation to installation.sgml about how to use the PG_SYSROOT
option.  I also took the opportunity to document how to work around
macOS's "System Integrity Protection" feature.

As before, back-patch to all supported versions.

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

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/401202b7988ca75549c6cb6609ac958675f0aeb7

Modified Files
--------------
configure                      | 10 +++++++++
configure.in                   |  9 ++++++++
doc/src/sgml/installation.sgml | 51 ++++++++++++++++++++++++++++++++++++++++++
src/Makefile.global.in         |  1 +
src/template/darwin            |  7 +++---
5 files changed, 75 insertions(+), 3 deletions(-)



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

* pgsql: Yet further rethinking of build changes for macOS Mojave.
@ 2018-11-02 22:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2018-11-02 22:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Yet further rethinking of build changes for macOS Mojave.

The solution arrived at in commit e74dd00f5 presumes that the compiler
has a suitable default -isysroot setting ... but further experience
shows that in many combinations of macOS version, XCode version, Xcode
command line tools version, and phase of the moon, Apple's compiler
will *not* supply a default -isysroot value.

We could potentially go back to the approach used in commit 68fc227dd,
but I don't have a lot of faith in the reliability or life expectancy of
that either.  Let's just revert to the approach already shipped in 11.0,
namely specifying an -isysroot switch globally.  As a partial response to
the concerns raised by Jakob Egger, adjust the contents of Makefile.global
to look like

CPPFLAGS = -isysroot $(PG_SYSROOT) ...
PG_SYSROOT = /path/to/sysroot

This allows overriding the sysroot path at build time in a relatively
painless way.

Add documentation to installation.sgml about how to use the PG_SYSROOT
option.  I also took the opportunity to document how to work around
macOS's "System Integrity Protection" feature.

As before, back-patch to all supported versions.

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

Branch
------
REL9_5_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/94ea1cf731834baff3a17b266c202d482fb1d9a1

Modified Files
--------------
configure                      | 10 +++++++++
configure.in                   |  9 ++++++++
doc/src/sgml/installation.sgml | 51 ++++++++++++++++++++++++++++++++++++++++++
src/Makefile.global.in         |  1 +
src/template/darwin            |  7 +++---
5 files changed, 75 insertions(+), 3 deletions(-)



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

* pgsql: Yet further rethinking of build changes for macOS Mojave.
@ 2018-11-02 22:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2018-11-02 22:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Yet further rethinking of build changes for macOS Mojave.

The solution arrived at in commit e74dd00f5 presumes that the compiler
has a suitable default -isysroot setting ... but further experience
shows that in many combinations of macOS version, XCode version, Xcode
command line tools version, and phase of the moon, Apple's compiler
will *not* supply a default -isysroot value.

We could potentially go back to the approach used in commit 68fc227dd,
but I don't have a lot of faith in the reliability or life expectancy of
that either.  Let's just revert to the approach already shipped in 11.0,
namely specifying an -isysroot switch globally.  As a partial response to
the concerns raised by Jakob Egger, adjust the contents of Makefile.global
to look like

CPPFLAGS = -isysroot $(PG_SYSROOT) ...
PG_SYSROOT = /path/to/sysroot

This allows overriding the sysroot path at build time in a relatively
painless way.

Add documentation to installation.sgml about how to use the PG_SYSROOT
option.  I also took the opportunity to document how to work around
macOS's "System Integrity Protection" feature.

As before, back-patch to all supported versions.

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

Branch
------
REL9_4_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1b5e8b408eb9014d0779515705a601debd22ba56

Modified Files
--------------
configure                      | 10 +++++++++
configure.in                   |  9 ++++++++
doc/src/sgml/installation.sgml | 51 ++++++++++++++++++++++++++++++++++++++++++
src/Makefile.global.in         |  1 +
src/template/darwin            |  7 +++---
5 files changed, 75 insertions(+), 3 deletions(-)



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

* pgsql: Yet further rethinking of build changes for macOS Mojave.
@ 2018-11-02 22:54 Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 7+ messages in thread

From: Tom Lane @ 2018-11-02 22:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Yet further rethinking of build changes for macOS Mojave.

The solution arrived at in commit e74dd00f5 presumes that the compiler
has a suitable default -isysroot setting ... but further experience
shows that in many combinations of macOS version, XCode version, Xcode
command line tools version, and phase of the moon, Apple's compiler
will *not* supply a default -isysroot value.

We could potentially go back to the approach used in commit 68fc227dd,
but I don't have a lot of faith in the reliability or life expectancy of
that either.  Let's just revert to the approach already shipped in 11.0,
namely specifying an -isysroot switch globally.  As a partial response to
the concerns raised by Jakob Egger, adjust the contents of Makefile.global
to look like

CPPFLAGS = -isysroot $(PG_SYSROOT) ...
PG_SYSROOT = /path/to/sysroot

This allows overriding the sysroot path at build time in a relatively
painless way.

Add documentation to installation.sgml about how to use the PG_SYSROOT
option.  I also took the opportunity to document how to work around
macOS's "System Integrity Protection" feature.

As before, back-patch to all supported versions.

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

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1aad3a724a402b7449c58ea4518bab8bb7fb9521

Modified Files
--------------
configure                      | 10 +++++++++
configure.in                   |  9 ++++++++
doc/src/sgml/installation.sgml | 51 ++++++++++++++++++++++++++++++++++++++++++
src/Makefile.global.in         |  1 +
src/template/darwin            |  7 +++---
5 files changed, 75 insertions(+), 3 deletions(-)



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


end of thread, other threads:[~2018-11-02 22:54 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-02 22:54 pgsql: Yet further rethinking of build changes for macOS Mojave. Tom Lane <tgl@sss.pgh.pa.us>
2018-11-02 22:54 pgsql: Yet further rethinking of build changes for macOS Mojave. Tom Lane <tgl@sss.pgh.pa.us>
2018-11-02 22:54 pgsql: Yet further rethinking of build changes for macOS Mojave. Tom Lane <tgl@sss.pgh.pa.us>
2018-11-02 22:54 pgsql: Yet further rethinking of build changes for macOS Mojave. Tom Lane <tgl@sss.pgh.pa.us>
2018-11-02 22:54 pgsql: Yet further rethinking of build changes for macOS Mojave. Tom Lane <tgl@sss.pgh.pa.us>
2018-11-02 22:54 pgsql: Yet further rethinking of build changes for macOS Mojave. Tom Lane <tgl@sss.pgh.pa.us>
2018-11-02 22:54 pgsql: Yet further rethinking of build changes for macOS Mojave. 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