void-packages/srcpkgs/valabind/patches/cross.patch
Đoàn Trần Công Danh 76acfa2dd2 srcpkgs/v*: 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

12 lines
539 B
Diff

--- a/meson.build
+++ b/meson.build
@@ -26,7 +26,8 @@ libvala_dep = dependency('libvala-@0@'.format(libvala_version))
glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
-valaccodegen_dep = cc.find_library('valaccodegen', dirs : [libvala_dep.get_pkgconfig_variable('pkglibdir')])
+cc_sysroot = run_command(cc.cmd_array()[0], '-print-sysroot').stdout().strip()
+valaccodegen_dep = cc.find_library('valaccodegen', dirs : [cc_sysroot + libvala_dep.get_pkgconfig_variable('pkglibdir')])
executable(
'valabind',