aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2023-03-27 21:35:24 +0200
committerDaniel Gustafsson <dgustafsson@postgresql.org>2023-03-27 21:35:24 +0200
commit9850ef9fc123e479562011ae308bdabe5bfc04c3 (patch)
tree83cbf274974739fe12e0e3be09af1fe4121fc03a
parent29a20ff0617ab60acbb8d71b6b59f9035c86a4f8 (diff)
downloadpostgresql-9850ef9fc123e479562011ae308bdabe5bfc04c3.tar.gz
postgresql-9850ef9fc123e479562011ae308bdabe5bfc04c3.zip
doc: Fix XML_CATALOG_FILES env var for Apple Silicon machines
Homebrew changed the prefix for Apple Silicon based machines, so our advice for XML_CATALOG_FILES needs to mention both. More info on the Homebrew change can be found at: https://github.com/Homebrew/brew/issues/9177 This is backpatch of commits 4c8d65408 and 5a91c7975, the latter which contained a small fix based on a report from Dagfinn Ilmari Mannsåker. Author: Julien Rouhaud <julien.rouhaud@free.fr> Discussion: https://postgr.es/m/20230327082441.h7pa2vqiobbyo7rd@jrouhaud
-rw-r--r--doc/src/sgml/docguide.sgml6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/src/sgml/docguide.sgml b/doc/src/sgml/docguide.sgml
index 55ef6417749..2d8d5cd64f2 100644
--- a/doc/src/sgml/docguide.sgml
+++ b/doc/src/sgml/docguide.sgml
@@ -209,10 +209,14 @@ brew install docbook docbook-xsl libxslt fop
<para>
The Homebrew-supplied programs require the following environment variable
- to be set:
+ to be set. For Intel based machines, use this:
<programlisting>
export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
</programlisting>
+ On Apple Silicon based machines, use this:
+<programlisting>
+export XML_CATALOG_FILES=/opt/homebrew/etc/xml/catalog
+</programlisting>
Without it, <command>xsltproc</command> will throw errors like this:
<programlisting>
I/O error : Attempt to load network entity http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd