srcpkgs/n*: convert patches to -Np1
```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
```
2021-06-19 05:03:21 +02:00
|
|
|
--- a/deps/uvwasi/uvwasi.gyp
|
|
|
|
+++ b/deps/uvwasi/uvwasi.gyp
|
2021-04-25 18:59:58 +02:00
|
|
|
@@ -18,9 +18,6 @@
|
|
|
|
'src/wasi_rights.c',
|
|
|
|
'src/wasi_serdes.c',
|
|
|
|
],
|
|
|
|
- 'dependencies': [
|
|
|
|
- '../uv/uv.gyp:libuv',
|
|
|
|
- ],
|
|
|
|
'direct_dependent_settings': {
|
|
|
|
'include_dirs': ['include']
|
|
|
|
},
|
|
|
|
@@ -31,6 +28,12 @@
|
|
|
|
'_POSIX_C_SOURCE=200112',
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
+ [ 'node_shared_libuv=="false"', {
|
|
|
|
+ 'dependencies': [ '../uv/uv.gyp:libuv' ],
|
|
|
|
+ }],
|
|
|
|
+ [ 'node_shared_libuv=="true"', {
|
|
|
|
+ 'libraries': [ '-luv' ],
|
|
|
|
+ }]
|
|
|
|
],
|
|
|
|
}
|
|
|
|
]
|