]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-124228: Fix UUID test in configure files for NetBSD (#124229)
authorFurkan Onder <furkanonder@protonmail.com>
Mon, 23 Sep 2024 06:54:36 +0000 (09:54 +0300)
committerGitHub <noreply@github.com>
Mon, 23 Sep 2024 06:54:36 +0000 (08:54 +0200)
Fix UUID configuration in configure files for NetBSD compatibility.

configure
configure.ac

index d88acc580b790b083ef254ea7cc2529b45bef5e3..8c69b44ed7318e524d876f9c7e820505aa85677b 100755 (executable)
--- a/configure
+++ b/configure
@@ -14068,6 +14068,14 @@ 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
+
+fi
+
 if test "x$have_uuid" = xmissing
 then :
   have_uuid=no
index e83cba49d034338107fa252c646bf218c7a9873d..d3cdeb8a252a243990b7f5be0637f12b9ac2fad9 100644 (file)
@@ -3802,6 +3802,13 @@ 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])
+fi
+
 AS_VAR_IF([have_uuid], [missing], [have_uuid=no])
 
 # 'Real Time' functions on Solaris