diff options
author | Zach van Rijn <me@zv.io> | 2024-12-26 14:21:02 -0600 |
---|---|---|
committer | Zach van Rijn <me@zv.io> | 2024-12-26 14:21:02 -0600 |
commit | 0aec696500f51285db1a2218283d6a06f0f47ee6 (patch) | |
tree | a3a7bfa51e65d5fddae5251d2811cc9f241bd46c /experimental/slurm/musl-getpwent.patch | |
parent | eb7899c3ad60ae9f12a8e201bafe3fef1597741f (diff) | |
download | packages-zv/slurm.tar.gz packages-zv/slurm.tar.bz2 packages-zv/slurm.tar.xz packages-zv/slurm.zip |
experimental/slurm: new package.zv/slurm
Diffstat (limited to 'experimental/slurm/musl-getpwent.patch')
-rw-r--r-- | experimental/slurm/musl-getpwent.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/experimental/slurm/musl-getpwent.patch b/experimental/slurm/musl-getpwent.patch new file mode 100644 index 000000000..32b12db1d --- /dev/null +++ b/experimental/slurm/musl-getpwent.patch @@ -0,0 +1,15 @@ +Source: @pullmoll +Upstream: no +Reason: Musl libc does not have getpwent_r(3) + +--- a/src/slurmctld/groups.c 2020-02-23 12:46:32.011563195 +0100 ++++ b/src/slurmctld/groups.c 2020-02-23 12:48:19.259558919 +0100 +@@ -206,7 +206,7 @@ + } + endgrent(); + setpwent(); +-#if defined (__APPLE__) ++#if defined (__APPLE__) || !defined(__GLIBC__) + while ((pwd_result = getpwent()) != NULL) { + #else + while (!getpwent_r(&pw, pw_buffer, PW_BUF_SIZE, &pwd_result)) { |