void-packages/srcpkgs/efl/patches/eina-debug.patch
Đoàn Trần Công Danh a03d116397 srcpkgs/e*: 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-20 13:17:29 +07:00

28 lines
762 B
Diff

Use release-type parameters even with buildtype=plain.
--- a/src/lib/eina/meson.build
+++ b/src/lib/eina/meson.build
@@ -205,7 +205,7 @@ if get_option('buildtype') == 'debug'
debug_threads=true
default_mempool=true
want_cow_magic=true
-elif get_option('buildtype') == 'release'
+else
with_max_log_level=3
stringshare_usage=false
use_valgrind=false
@@ -213,14 +213,6 @@ elif get_option('buildtype') == 'release'
debug_threads=false
default_mempool=false
want_cow_magic=false
- else
- with_max_log_level=-1
- stringshare_usage=false
- use_valgrind=true
- debug_malloc=false
- debug_threads=false
- default_mempool=false
- want_cow_magic=false
endif
if with_max_log_level != -1