Re: MacOS: xsltproc fails with "warning: failed to load external entity"
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aleksander Alekseev <aleksander@timescale.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-01-30T16:20:48Z
Lists: pgsql-hackers
Aleksander Alekseev <aleksander@timescale.com> writes: >> I've found a solution: >> >> ``` >> export SGML_CATALOG_FILES=/usr/local/etc/xml/catalog >> export XMLLINT="xmllint --catalogs" >> export XSLTPROC="xsltproc --catalogs" >> ``` Hmm, there is no such directory on my Mac, and indeed this recipe does not work here. I tried to transpose it to MacPorts by substituting /opt/local/etc/xml/catalog, which does exist --- but the recipe still doesn't work. I believe what is actually failing is that http://docbook.sourceforge.net now redirects to https:, and the ancient xsltproc version provided by Apple doesn't do https. What you need to do if you want to use their xsltproc is install a local copy of the SGML catalog files and stylesheets, preferably in the place that xsltproc would look by default (/etc/xml/catalog seems to be the standard one). It would be good to document how to do that, but this patch doesn't do so. What we do actually have already is a recommendation to install appropriate MacPorts or Homebrew packages: https://www.postgresql.org/docs/devel/docguide-toolsets.html#DOCGUIDE-TOOLSETS-INST-MACOS and it works okay for me as long as I use MacPorts' version of xsltproc. regards, tom lane
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