pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Aleksander Alekseev <aleksander@timescale.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: MacOS: xsltproc fails with "warning: failed to load external entity"
Date: Tue, 31 Jan 2023 08:43:56 +0100
Message-ID: <1182c94f-bd43-262c-9452-597ca7d7a742@enterprisedb.com> (raw)
In-Reply-To: <CAJ7c6TO3w+F8TvhNq-_GCOa8KUGbZjCdqynb7hCEAr5jq0giTQ@mail.gmail.com>
References: <CAJ7c6TO8Aro2nxg=EQsVGiSDe-TstP4EsSvDHd7DSRsP40PgGA@mail.gmail.com>
	<CAJ7c6TO0mA_wPDuUT8b+DdwzUe+SBfGqHE+XXb52GrRnLWu1iQ@mail.gmail.com>
	<CAJ7c6TNq3phiefEopG8X7ZJ7oj7kZyQdPefHM+kt=XvVPkd08Q@mail.gmail.com>
	<489604.1675095648@sss.pgh.pa.us>
	<CAJ7c6TO3w+F8TvhNq-_GCOa8KUGbZjCdqynb7hCEAr5jq0giTQ@mail.gmail.com>

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.






view thread (41+ messages)  latest in thread

Message-ID: <1182c94f-bd43-262c-9452-597ca7d7a742@enterprisedb.com>
Permalink:  ../1182c94f-bd43-262c-9452-597ca7d7a742@enterprisedb.com/
Also on:    postgresql.org/message-id/1182c94f-bd43-262c-9452-597ca7d7a742@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: peter.eisentraut@enterprisedb.com, aleksander@timescale.com, pgsql-hackers@lists.postgresql.org, tgl@sss.pgh.pa.us
  Subject: Re: MacOS: xsltproc fails with "warning: failed to load external entity"
  In-Reply-To: <1182c94f-bd43-262c-9452-597ca7d7a742@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox