From 7efb0ec3e15f37f9c5e12845aeccd9cd8693c01d Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 1 Mar 2021 07:58:17 +0100 Subject: [PATCH] doc: Update information on macOS SIP On more recent versions of macOS, it is sufficient to disable only a part of SIP in order to get make check to run before make install. Document how. --- doc/src/sgml/installation.sgml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 66ad4ba938..39adf1f5d9 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -2375,6 +2375,9 @@ macOS You may or may not wish to also install Xcode. + + Sysroot + On recent macOS releases, it's necessary to embed the sysroot path in the include switches used to @@ -2419,6 +2422,10 @@ macOS to build with a non-Apple compiler, but beware that that case is not tested or supported by the PostgreSQL developers. + + + + System Integrity Protection macOS's System Integrity @@ -2429,6 +2436,25 @@ macOS install before make check. Most PostgreSQL developers just turn off SIP, though. + + + To disable SIP, boot into recovery mode, open a terminal, and run + +csrutil disable + + and reboot. In macOS version 10.14 and later, it is sufficient to disable + the Debugging part of SIP, by running + +csrutil enable --without debug + + instead. The status of SIP can be shown using + +csrutil status + + Note that that status display does not reflect changes until after a + reboot. + + -- 2.30.1