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 1pgi9u-0003YE-6t for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2023 08:24: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 1pgi9s-00037L-2W for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Mar 2023 08:24:52 +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 1pgi9r-00037C-Mm for pgsql-hackers@lists.postgresql.org; Mon, 27 Mar 2023 08:24:51 +0000 Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pgi9n-0004Sa-SO for pgsql-hackers@lists.postgresql.org; Mon, 27 Mar 2023 08:24:50 +0000 Received: by mail-pj1-x1030.google.com with SMTP id lr16-20020a17090b4b9000b0023f187954acso7916800pjb.2 for ; Mon, 27 Mar 2023 01:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679905487; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=DHV+6wmZG7/0XYC7TbVtDrHQlZBfij/kcS8cYFYQwFU=; b=QVInz0pnXpks2mfqQCLWrRYUqeOr2ghKUJ/JI28TXtI1feS3wuSEgt191nD+Xtv8VJ FZ2DiUK7TsTQHv19O4r7h0xUdbswqsRdaGe12KrecVCcGXAl9mDF+Eqhqd2EeThQhyIk uLP1xyhFTTX3bLR15d8cF657URGO19kCPffvcOlmoujK0Q5+mpbiJ90fRLW146WgucOA ifJ3Ai6OtWJNnvpnFGdVPU6D86Sq2kNx1xXrIFG5dV7IVNh9WMK7Ow5ixM4+44zBWB1L WGvPMkZx280rQZCN+B1q194BNY3OTs2PH+6nCEVOj6KoTBWXNlYn7sjFWuFjyxO6CWwM KhLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679905487; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=DHV+6wmZG7/0XYC7TbVtDrHQlZBfij/kcS8cYFYQwFU=; b=tdHB45SFTDEtUzkNfGr1JYOqMP3EuZsIdYcRV63xdqMQ5ggTLQLAKFFee2dyc1rkrv f61sBRUIwYNqSKJWx0ZhmC+tM26K3R+CghhwPPBtguRORIBFU7HaYJL++naAlKiDrvPJ N5P4C254HOqyFW7QjVdSI2bwITukWAiSAVPNDEMYp070dAAIl3Zi/2SGu4Yl9O7pPPr5 NjS+5ruN3XxWRuW+WLmUtyxckXbZfALPS2IK1T+w8l4tsgGDhbbJIKRMKXkVXYFmdsHD Z/kYpKU0fY61S34RTTxcy7bH31fB9HM8ml46aWJkEb1iUxPIrogmcDXQtvRSc3gEJRUv /62A== X-Gm-Message-State: AO0yUKWvkh65sUQCntHZ9mcBO+2fXUCzEvr88Grx1Sy9vkzBz54luxwL OB1q3lQTf8TM1FO7E1eEJeg= X-Google-Smtp-Source: AK7set8REhOdR99saU+Igsy/CIjilab0GRJ4h9YHxoI5qG9Xm+Q0GFttkgg10vvGcl8eobmlGPSJpw== X-Received: by 2002:a05:6a20:6da2:b0:d9:f6ee:3b8f with SMTP id gl34-20020a056a206da200b000d9f6ee3b8fmr9428034pzb.17.1679905486555; Mon, 27 Mar 2023 01:24:46 -0700 (PDT) Received: from jrouhaud (2001-b011-1005-b784-305d-98af-4d90-afbc.dynamic-ip6.hinet.net. [2001:b011:1005:b784:305d:98af:4d90:afbc]) by smtp.gmail.com with ESMTPSA id y18-20020a62b512000000b0062d8c855ee9sm777251pfe.149.2023.03.27.01.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 01:24:45 -0700 (PDT) Date: Mon, 27 Mar 2023 16:24:41 +0800 From: Julien Rouhaud To: Tom Lane Cc: Andres Freund , Aleksander Alekseev , PostgreSQL Hackers , Peter Eisentraut Subject: Re: MacOS: xsltproc fails with "warning: failed to load external entity" Message-ID: <20230327082441.h7pa2vqiobbyo7rd@jrouhaud> References: <20230201002206.zmilf5zlwhz2ahow@alap3.anarazel.de> <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> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="d3j7adnnxvsczcrx" Content-Disposition: inline In-Reply-To: <3788434.1675894693@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --d3j7adnnxvsczcrx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. --d3j7adnnxvsczcrx Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-XML_CATALOG_FILES-env-var-for-Apple-M1-base-mach.patch" From e51f1b13dc70798b37e9d8f4bb34664fe138dd86 Mon Sep 17 00:00:00 2001 From: Julien Rouhaud 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 The Homebrew-supplied programs require the following environment variable - to be set: + to be set. For Intel based machines: export XML_CATALOG_FILES=/usr/local/etc/xml/catalog + + or for Apple M1 based machines: + +export XML_CATALOG_FILES=/opt/homebrew//etc/xml/catalog Without it, xsltproc will throw errors like this: -- 2.37.0 --d3j7adnnxvsczcrx--