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 1pMlJL-0001Re-IC for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2023 07:44:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pMlJK-0000wV-64 for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Jan 2023 07:44:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMlJJ-0000wJ-0M for pgsql-hackers@lists.postgresql.org; Tue, 31 Jan 2023 07:44:09 +0000 Received: from new2-smtp.messagingengine.com ([66.111.4.224]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMlJF-0003z9-7u for pgsql-hackers@lists.postgresql.org; Tue, 31 Jan 2023 07:44:07 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailnew.nyi.internal (Postfix) with ESMTP id 609B1582274; Tue, 31 Jan 2023 02:43:59 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 31 Jan 2023 02:43:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1675151039; x= 1675158239; bh=w87Rd4sscMpj6kNRDclJYXE+ZlMwYpiUWU+XPpf/Xyw=; b=L x2sOFmN8s39tRLsTK+feUb/klNm2D4tdHLOHw+kLckXsGhbT5w3SYK8YqXvpOGkE 0b88uBg+Xts60ElnZT0C0FBLqSk0QyT36SBksDeK5dKncjw96YdDO6Rk0C/I6Yy8 G7//hKWqlj+RdEvGBBLr7camBzL+KD8vQ2Nom6jWqYL1LfeagBzyo+UGGKiyRxOe anhGhRIIUDv9nbrAt31ZtKTjF1BXL1SNZVta6Fjok6HWU+SrpW9/DKCDoFughn7h zK6qkTDQu3E6hbCu3qz9e2w7LuizphTze0z4EM4z0t4DsTkwh13Fhf6etO5tEsoC E88cbq6AqFTvjNAO85wWQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudeffedgudduvdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttdefjeenucfhrhhomheprfgv thgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhdrvghishgvnhhtrhgruhhtsegvnh htvghrphhrihhsvggusgdrtghomheqnecuggftrfgrthhtvghrnhepheelffeggedujeet iefhleetuddvieffhfffvdejvdffgeejkeduleduheduieefnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgr uhhtsegvnhhtvghrphhrihhsvggusgdrtghomh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 31 Jan 2023 02:43:58 -0500 (EST) Message-ID: <1182c94f-bd43-262c-9452-597ca7d7a742@enterprisedb.com> Date: Tue, 31 Jan 2023 08:43:56 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Subject: Re: MacOS: xsltproc fails with "warning: failed to load external entity" Content-Language: en-US To: Aleksander Alekseev , PostgreSQL Hackers Cc: Tom Lane References: <489604.1675095648@sss.pgh.pa.us> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.