b6bcd8cd34
* daemontools and dmraid is kept at -Np0 ```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 ```
19 lines
660 B
Diff
19 lines
660 B
Diff
Source: @pullmoll
|
|
Upstream: no
|
|
Reason: errno is a reserved name
|
|
|
|
--- a/utils.c 2017-02-14 17:32:20.000000000 +0100
|
|
+++ b/utils.c 2020-10-26 20:38:54.549564389 +0100
|
|
@@ -234,9 +234,9 @@
|
|
if (slash)
|
|
*slash = 0;
|
|
if (-1 == stat (tmp, &stat_buf)) {
|
|
- int errno = mkdir (tmp, mode);
|
|
- if (0 != errno) {
|
|
- fprintf (stderr, "Failed to create %s (%d)\n", tmp, errno);
|
|
+ int my_errno = mkdir (tmp, mode);
|
|
+ if (0 != my_errno) {
|
|
+ fprintf (stderr, "Failed to create %s (%d)\n", tmp, my_errno);
|
|
g_free (tmp);
|
|
return 0;
|
|
}
|