From acac3e8eee4f949fe9a39db41109cd9c94bd40ad Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Thu, 19 Sep 2024 02:28:08 +0300 Subject: [PATCH 1/2] Fix UUID configuration in configure files for NetBSD compatibility --- configure | 6 ++++++ configure.ac | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/configure b/configure index d88acc580b790b..f91a6bd8cb37af 100755 --- a/configure +++ b/configure @@ -14068,6 +14068,12 @@ done fi +if test "$ac_sys_system" = "NetBSD"; then + have_uuid=missing + printf "%s\n" "#define HAVE_UUID_H 0" >>confdefs.h + +fi + if test "x$have_uuid" = xmissing then : have_uuid=no diff --git a/configure.ac b/configure.ac index e83cba49d03433..ae2d6e484a0dab 100644 --- a/configure.ac +++ b/configure.ac @@ -3802,6 +3802,11 @@ AS_VAR_IF([have_uuid], [missing], [ ]) ]) +if test "$ac_sys_system" = "NetBSD"; then + have_uuid=missing + AC_DEFINE([HAVE_UUID_H], [0]) +fi + AS_VAR_IF([have_uuid], [missing], [have_uuid=no]) # 'Real Time' functions on Solaris From febcfa4270dc39beb7fd309bf819b091ae046815 Mon Sep 17 00:00:00 2001 From: Furkan Onder Date: Sun, 22 Sep 2024 18:23:40 +0300 Subject: [PATCH 2/2] Add comment for UUID support limitation in configure files --- configure | 2 ++ configure.ac | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index f91a6bd8cb37af..8c69b44ed7318e 100755 --- a/configure +++ b/configure @@ -14068,6 +14068,8 @@ done fi +# gh-124228: While the libuuid library is available on NetBSD, it supports only UUID version 4. +# This restriction inhibits the proper generation of time-based UUIDs. if test "$ac_sys_system" = "NetBSD"; then have_uuid=missing printf "%s\n" "#define HAVE_UUID_H 0" >>confdefs.h diff --git a/configure.ac b/configure.ac index ae2d6e484a0dab..d3cdeb8a252a24 100644 --- a/configure.ac +++ b/configure.ac @@ -3802,6 +3802,8 @@ AS_VAR_IF([have_uuid], [missing], [ ]) ]) +# gh-124228: While the libuuid library is available on NetBSD, it supports only UUID version 4. +# This restriction inhibits the proper generation of time-based UUIDs. if test "$ac_sys_system" = "NetBSD"; then have_uuid=missing AC_DEFINE([HAVE_UUID_H], [0])