```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
15 lines
452 B
Diff
15 lines
452 B
Diff
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)) {
|