Re: Issues cross-compiling libpq 14.x to MacOS armv8 - Mailing list pgsql-general

From Peter Eisentraut
Subject Re: Issues cross-compiling libpq 14.x to MacOS armv8
Date
Msg-id 5e38102f-4463-6e9e-9256-20ec6a07e8e5@enterprisedb.com
Whole thread Raw
In response to Re: Issues cross-compiling libpq 14.x to MacOS armv8  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Issues cross-compiling libpq 14.x to MacOS armv8  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-general
On 30.11.21 22:04, Tom Lane wrote:
> Daniel Gustafsson <daniel@yesql.se> writes:
>>> On 30 Nov 2021, at 20:59, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>>> AFAICS this is the only test in our configure script that is a hard
>>> fail when cross-compiling, and I don't see a reason for it to be that.
>>> We could just assume that /dev/urandom will be available --- that's no
>>> worse than a lot of the other optimistic assumptions that configure
>>> makes in that mode.
> 
>> Agreed, I don't see a problem with that.  I'm not terribly familiar with
>> supporting cross compilation in autoconf, would a reasonable approach be to
>> just remove the check altogether like the below sketch?
> 
> It seems like a useful test when *not* cross compiling, which is most
> of the time.

You still don't know whether the file will exist on the system you are 
running this on.

> (I'm a bit surprised that the AC_CHECK_FILE macro doesn't provide
> an action-if-cross-compiling option, but it apparently doesn't.)

Because you are only supposed to look for files that you need during the 
build.



pgsql-general by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [EXT] Re: XQuery/XPath 2.0+ support
Next
From: Patrick FICHE
Date:
Subject: RE: Wildcarding json keys in json query