Re: MacOS: xsltproc fails with "warning: failed to load external entity"
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Aleksander Alekseev <aleksander@timescale.com>,
PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2023-01-31T07:43:56Z
Lists: pgsql-hackers
On 30.01.23 20:04, Aleksander Alekseev wrote: > I would appreciate it if you could help figuring out how to do this > for MacPorts, since I'm not a MacPorts user. I'll figure out how to do > this for Homebrew. I'm on macOS Monterey and Homebrew. I'm sure I have gone through many variations of this setup, but checking what I happen to be using right now, Makefile.global says XMLLINT = /usr/bin/xmllint XSLTPROC = /usr/bin/xsltproc and in the environment there is XML_CATALOG_FILES=/usr/local/etc/xml/catalog Just testing this right now, you can avoid having to set this environment variable by making the default catalog file /etc/xml/catalog include /usr/local/etc/xml/catalog. It also works for me to use the Homebrew-provided versions of these tools: XMLLINT = /usr/local/opt/libxml2/bin/xmllint XSLTPROC = /usr/local/opt/libxslt/bin/xsltproc But I can't determine right now what catalog file they look at by default. It appears that it's neither /etc/xml/catalog nor /usr/local/etc/xml/catalog. So in this case, setting XML_CATALOG_FILES is necessary. For either sets of tools, the automatic download option doesn't appear to work anymore. This probably has to do with either the https or the redirects that have been mentioned.
Commits
-
docs: meson: Change what 'docs' target builds
- 9e5b2a091fd0 17.0 landed
-
doc: Fix XML_CATALOG_FILES env var for Apple Silicon machines
- 4257d34e310b 11.20 landed
- aad9a2ee7c2d 12.15 landed
- c6f1f4e443fb 14.8 landed
- 9850ef9fc123 13.11 landed
- 50792b155371 15.3 landed
-
doc: fix Apple Silicon Homebrew prefix change documentation
- 5a91c7975503 16.0 landed
-
doc: Fix XML_CATALOG_FILES env var for Apple M1 machines
- 4c8d65408470 16.0 landed
-
Stop recommending auto-download of DTD files, and indeed disable it.
- 36a646d99c3f 11.20 landed
- 11f1f9f4fa30 12.15 landed
- 969509c3f2e3 16.0 landed
- c7b608600547 13.11 landed
- 7f8778fcf342 14.8 landed
- 2ee703c9d1c6 15.3 landed