Re: configure --with-uuid=bsd fails on NetBSD - Mailing list pgsql-hackers

From Andres Freund
Subject Re: configure --with-uuid=bsd fails on NetBSD
Date
Msg-id 20220821004851.5mc74mrqboxtq6d5@awork3.anarazel.de
Whole thread Raw
In response to configure --with-uuid=bsd fails on NetBSD  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: configure --with-uuid=bsd fails on NetBSD
List pgsql-hackers
Hi,

On 2022-08-20 19:39:32 -0400, Tom Lane wrote:
> Our documentation claims that --with-uuid=bsd works on both
> FreeBSD and NetBSD: installation.sgml says
> 
>            <option>bsd</option> to use the UUID functions found in FreeBSD, NetBSD,
>            and some other BSD-derived systems
> 
> and there is comparable wording in uuid-ossp.sgml.
> 
> In the course of setting up a NetBSD buildfarm animal, I discovered
> that this is a lie.

Also recently reported as a bug: https://postgr.es/m/17358-89806e7420797025%40postgresql.org
with a bunch of discussion.

> I'm not personally inclined to do anything about this; I'm certainly
> not excited enough about it to write our own v1-UUID creation code.
> Perhaps we should just document that on NetBSD, uuid_generate_v1()
> and uuid_generate_v1mc() don't conform to spec.

Perhaps we should make them error out instead? It doesn't seem helpful to
just return something wrong...

Certainly would be good to get the regression tests to pass somehow, given
that we don't expect this to work. Don't want to add netbsd's results as an
alternative, because that'd maybe hide bugs. But if we errored out we could
probably have an alternative with the errors, without a large risk of hiding
bugs.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: [RFC] building postgres with meson
Next
From: Tom Lane
Date:
Subject: Re: configure --with-uuid=bsd fails on NetBSD