861ac185a6
```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 ```
14 lines
511 B
Diff
14 lines
511 B
Diff
--- a/lib/config/defaults.h 2017-04-27 18:16:05.879936377 +0200
|
|
+++ b/lib/config/defaults.h 2017-04-27 18:16:35.141849047 +0200
|
|
@@ -55,7 +55,11 @@
|
|
#define DEFAULT_LVMLOCKD_LOCK_RETRIES 3
|
|
#define DEFAULT_LVMETAD_UPDATE_WAIT_TIME 10
|
|
#define DEFAULT_PRIORITISE_WRITE_LOCKS 1
|
|
+#ifdef __GLIBC__
|
|
#define DEFAULT_USE_MLOCKALL 0
|
|
+#else
|
|
+#define DEFAULT_USE_MLOCKALL 1
|
|
+#endif
|
|
#define DEFAULT_METADATA_READ_ONLY 0
|
|
#define DEFAULT_LVDISPLAY_SHOWS_FULL_DEVICE_PATH 0
|
|
#define DEFAULT_UNKNOWN_DEVICE_NAME "[unknown]"
|