void-packages/srcpkgs/libvirt-glib/patches/fix-cross.diff
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

20 lines
687 B
Diff

--- a/meson.build 2021-04-05 19:05:59.233949995 +0200
+++ b/meson.build 2021-04-05 19:06:10.010949599 +0200
@@ -61,7 +61,7 @@ includedir = join_paths(prefix, get_opti
# gobject introspection
gir = find_program('g-ir-scanner', required: get_option('introspection'))
-enable_introspection = gir.found() and not meson.is_cross_build()
+enable_introspection = gir.found()
# vala
vapi_opt = get_option('vapi')
@@ -76,7 +76,7 @@ endif
# gtk-doc
if not get_option('docs').disabled()
gtk_doc = find_program('gtkdoc-scan', required: get_option('docs'))
- enable_doc = gtk_doc.found() and not meson.is_cross_build()
+ enable_doc = gtk_doc.found()
else
enable_doc = false
endif