https://github.com/python/cpython/commit/2e8c769481d5729d86be8c6cff5881c4c5fbb8d2 commit: 2e8c769481d5729d86be8c6cff5881c4c5fbb8d2 branch: main author: Furkan Onder <[email protected]> committer: vstinner <[email protected]> date: 2024-09-23T08:54:36+02:00 summary:
gh-124228: Fix UUID test in configure files for NetBSD (#124229) Fix UUID configuration in configure files for NetBSD compatibility. files: M configure M configure.ac diff --git a/configure b/configure index d88acc580b790b..8c69b44ed7318e 100755 --- 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 diff --git a/configure.ac b/configure.ac index e83cba49d03433..d3cdeb8a252a24 100644 --- a/configure.ac +++ b/configure.ac @@ -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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
