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
This commit is contained in:
Daniel Gustafsson 2023-03-27 21:35:34 +02:00
parent 78838bc3d4
commit 4257d34e31
1 changed files with 5 additions and 1 deletions

View File

@ -209,9 +209,13 @@ 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>