cpython: provide libuuid for the _uuid module (#377458)

* util-linuxMinimal: build without pam and shadow

These depend on python via audit preventing the use of libuuid from
util-linux in python builds.

* cpython: provide libuuid for the _uuid module

Relying on libuuid offers synchronization primitives, so that "no two
processes can obtain the same UUID"¹.

[1] https://docs.python.org/3/library/uuid.html#module-uuid
This commit is contained in:
Martin Weinelt
2025-02-08 16:16:43 +01:00
committed by GitHub
3 changed files with 5 additions and 0 deletions
@@ -15,6 +15,7 @@
, bzip2
, expat
, libffi
, libuuid
, libxcrypt
, mpdecimal
, ncurses
@@ -166,6 +167,7 @@ let
bzip2
expat
libffi
libuuid
libxcrypt
mpdecimal
ncurses
@@ -117,6 +117,7 @@ in {
gdbm = null;
sqlite = null;
tzdata = null;
libuuid = null;
libffi = libffiBoot; # without test suite
stripConfig = true;
stripIdlelib = true;
+2
View File
@@ -12497,6 +12497,8 @@ with pkgs;
util-linuxMinimal = util-linux.override {
nlsSupport = false;
ncursesSupport = false;
pamSupport = false;
shadowSupport = false;
systemdSupport = false;
translateManpages = false;
};