Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMWtq-0003af-UD for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2023 16:20:54 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pMWtp-00010d-Nr for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Jan 2023 16:20:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMWtp-00010T-F2 for pgsql-hackers@lists.postgresql.org; Mon, 30 Jan 2023 16:20:53 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMWtl-0003PS-MP for pgsql-hackers@lists.postgresql.org; Mon, 30 Jan 2023 16:20:52 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 30UGKm4g489605; Mon, 30 Jan 2023 11:20:48 -0500 From: Tom Lane To: Aleksander Alekseev cc: PostgreSQL Hackers Subject: Re: MacOS: xsltproc fails with "warning: failed to load external entity" In-reply-to: References: Comments: In-reply-to Aleksander Alekseev message dated "Mon, 30 Jan 2023 14:53:25 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <489603.1675095648.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 30 Jan 2023 11:20:48 -0500 Message-ID: <489604.1675095648@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Aleksander Alekseev writes: >> I've found a solution: >> = >> ``` >> export SGML_CATALOG_FILES=3D/usr/local/etc/xml/catalog >> export XMLLINT=3D"xmllint --catalogs" >> export XSLTPROC=3D"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-TOOL= SETS-INST-MACOS and it works okay for me as long as I use MacPorts' version of xsltproc. regards, tom lane