pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Subject: configure --with-uuid=bsd fails on NetBSD
Date: Sat, 20 Aug 2022 19:39:32 -0400
Message-ID: <3848059.1661038772@sss.pgh.pa.us> (raw)

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.  NetBSD indeed has the same uuid_create() function
as FreeBSD, but it produces version-4 UUIDs not version-1, which causes
the contrib/uuid-ossp regression tests to fail.  You have to dig down
a level to the respective uuidgen(2) man pages to find documentation
about this, but each system appears to be conforming to its docs,
and the old DCE standard they both refer to conveniently omits saying
anything about what kind of UUID you get.  So this isn't a bug as
far as either BSD is concerned.

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.

			regards, tom lane





view thread (10+ messages)  latest in thread

Message-ID: <3848059.1661038772@sss.pgh.pa.us>
Permalink:  ../3848059.1661038772@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3848059.1661038772@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, pgsql-hackers@lists.postgresql.org
  Subject: Re: configure --with-uuid=bsd fails on NetBSD
  In-Reply-To: <3848059.1661038772@sss.pgh.pa.us>

* 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