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>,
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Date: 2023-01-31T20:22:02Z
Lists: pgsql-hackers
Aleksander Alekseev <aleksander@timescale.com> writes: >> 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. > Peter, thanks for reporting this. I got the same results: neither > tools work without setting XML_CATALOG_FILES and setting this > environment variable work for both Homebrew and macOS versions. > Here is the summary of our findings. PFA the updated patch v2. It's worse than that: I find that export XML_CATALOG_FILES=/dev/null breaks the docs build on RHEL8 and Fedora 37 (latest) too, with the same "failed to load external entity" symptom. I conclude from this that there is no version of xsltproc anywhere that can still download the required files automatically. So we need to take out the advice that says you can rely on auto-download for everybody, not just macOS. If this is indeed the case, perhaps we ought to start inserting --nonet into the invocations. There's not much use in allowing these tools to perform internet access when the best-case scenario is that they fail. (Worst-case, you could end up getting hacked, perhaps?) 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