pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Julien Rouhaud <rjuju123@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Andres Freund <andres@anarazel.de>
Cc: Aleksander Alekseev <aleksander@timescale.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Subject: Re: MacOS: xsltproc fails with "warning: failed to load external entity"
Date: Mon, 27 Mar 2023 16:24:41 +0800
Message-ID: <20230327082441.h7pa2vqiobbyo7rd@jrouhaud> (raw)
In-Reply-To: <3788434.1675894693@sss.pgh.pa.us>
References: <20230201002206.zmilf5zlwhz2ahow@alap3.anarazel.de>
	<CAJ7c6TOifNa77Oii2-PVZP323ifai3pPqC--y0=5tmByx-_4Ow@mail.gmail.com>
	<20230201103204.ddqqjbuxe5e2jct2@alap3.anarazel.de>
	<1383731.1675272207@sss.pgh.pa.us>
	<20230201174900.n7aa35mgwwdtkxum@alap3.anarazel.de>
	<20230201190428.m2syfhxxhyjx6vpl@alap3.anarazel.de>
	<1404694.1675279219@sss.pgh.pa.us>
	<20230206005207.djeq3322p4focdxo@alap3.anarazel.de>
	<2563864.1675646734@sss.pgh.pa.us>
	<3788434.1675894693@sss.pgh.pa.us>

Hi,

On Wed, Feb 08, 2023 at 05:18:13PM -0500, Tom Lane wrote:
> I pushed the discussed documentation improvements, and changed the
> behavior of "ninja docs" to only build the HTML docs.  However,
> I've not done anything about documenting what is the minimum
> ninja version.

FTR the documented XML_CATALOG_FILES environment variable is only valid for
Intel based machines, as homebrew installs everything in a different location
for M1...

I'm attaching a patch to make that distinction, hoping that no one else will
have to waste time trying to figure out how to get it working on such hardware.
From e51f1b13dc70798b37e9d8f4bb34664fe138dd86 Mon Sep 17 00:00:00 2001
From: Julien Rouhaud <julien.rouhaud@free.fr>
Date: Mon, 27 Mar 2023 16:18:12 +0800
Subject: [PATCH] Fix XML_CATALOG_FILES env var for Apple M1 base machines.

Author: Julien Rouhaud
Reviewed-by: FIXME
Discussion: FIXME
---
 doc/src/sgml/docguide.sgml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/doc/src/sgml/docguide.sgml b/doc/src/sgml/docguide.sgml
index cf8c072a49..81626d51cd 100644
--- a/doc/src/sgml/docguide.sgml
+++ b/doc/src/sgml/docguide.sgml
@@ -209,9 +209,13 @@ brew install docbook docbook-xsl libxslt fop
 
    <para>
     The Homebrew-supplied programs require the following environment variable
-    to be set:
+    to be set.  For Intel based machines:
 <programlisting>
 export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
+</programlisting>
+    or for Apple M1 based machines:
+<programlisting>
+export XML_CATALOG_FILES=/opt/homebrew//etc/xml/catalog
 </programlisting>
     Without it, <command>xsltproc</command> will throw errors like this:
 <programlisting>
-- 
2.37.0

Attachments:

  [text/plain] 0001-Fix-XML_CATALOG_FILES-env-var-for-Apple-M1-base-mach.patch (1.1K, ../20230327082441.h7pa2vqiobbyo7rd@jrouhaud/2-0001-Fix-XML_CATALOG_FILES-env-var-for-Apple-M1-base-mach.patch)
  download | inline diff:
From e51f1b13dc70798b37e9d8f4bb34664fe138dd86 Mon Sep 17 00:00:00 2001
From: Julien Rouhaud <julien.rouhaud@free.fr>
Date: Mon, 27 Mar 2023 16:18:12 +0800
Subject: [PATCH] Fix XML_CATALOG_FILES env var for Apple M1 base machines.

Author: Julien Rouhaud
Reviewed-by: FIXME
Discussion: FIXME
---
 doc/src/sgml/docguide.sgml | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/doc/src/sgml/docguide.sgml b/doc/src/sgml/docguide.sgml
index cf8c072a49..81626d51cd 100644
--- a/doc/src/sgml/docguide.sgml
+++ b/doc/src/sgml/docguide.sgml
@@ -209,9 +209,13 @@ brew install docbook docbook-xsl libxslt fop
 
    <para>
     The Homebrew-supplied programs require the following environment variable
-    to be set:
+    to be set.  For Intel based machines:
 <programlisting>
 export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
+</programlisting>
+    or for Apple M1 based machines:
+<programlisting>
+export XML_CATALOG_FILES=/opt/homebrew//etc/xml/catalog
 </programlisting>
     Without it, <command>xsltproc</command> will throw errors like this:
 <programlisting>
-- 
2.37.0

view thread (41+ messages)  latest in thread

Message-ID: <20230327082441.h7pa2vqiobbyo7rd@jrouhaud>
Permalink:  ../20230327082441.h7pa2vqiobbyo7rd@jrouhaud/
Also on:    postgresql.org/message-id/20230327082441.h7pa2vqiobbyo7rd@jrouhaud

 ·  · 

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: rjuju123@gmail.com, tgl@sss.pgh.pa.us, andres@anarazel.de, aleksander@timescale.com, pgsql-hackers@lists.postgresql.org, peter.eisentraut@enterprisedb.com
  Subject: Re: MacOS: xsltproc fails with "warning: failed to load external entity"
  In-Reply-To: <20230327082441.h7pa2vqiobbyo7rd@jrouhaud>

* 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