Re: MacOS: xsltproc fails with "warning: failed to load external entity"

From: Andres Freund <andres(at)anarazel(dot)de>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Aleksander Alekseev <aleksander(at)timescale(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>
Subject: Re: MacOS: xsltproc fails with "warning: failed to load external entity"
Date: 2023-02-01 19:04:28
Message-ID: 20230201190428.m2syfhxxhyjx6vpl@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On 2023-02-01 09:49:00 -0800, Andres Freund wrote:
> On 2023-02-01 12:23:27 -0500, Tom Lane wrote:
> > And the minimum version appears to be newer than RHEL8's 1.8.2, which
> > I find pretty unfortunate. On RHEL8, it fails with
> > $ ninja
> > ninja: error: build.ninja:6771: multiple outputs aren't (yet?) supported by depslog; bring this up on the mailing list if it affects you
>
> What's in that line +- 2 lines? And/or what are the steps that got you
> to that point?
>
> I'll try building 1.8.2 and reproing.
>
>
> > I did manage to test this stuff on bleeding-edge Fedora,
> > but ...
>
> Yea, I worked a fair bit to avoid requiring a too new version, I'll try
> to figure out what went wrong. I did built on rhel8 not long ago, so I
> suspect it's a corner case somewhere.

Unfortunately the test script accidentally pulled in ninja from epel,
hence not noticing the issue.

There's three issues:

One is easy enough, albeit slightly annoying: 1.8.2 wants the
"depending" file only be named once in a dependency file. Slightly
uglier code in snowball_create.pl, but whatever.

The second is one case of multiple outputs with a depfile:
create_help.pl creates both sql_help.c and sql_help.h. Not immediately
sure what a good solution here is. The brute force solution would be to
invoke it twice, but I don't like that at all.

The last case is the various man directories. That'd be easy enough to
avoid if we generated them inside a man/ directory.

Greetings,

Andres Freund

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2023-02-01 19:20:19 Re: MacOS: xsltproc fails with "warning: failed to load external entity"
Previous Message Tom Lane 2023-02-01 18:36:38 Re: MacOS: xsltproc fails with "warning: failed to load external entity"