void-packages/srcpkgs/valabind/patches/0002-vala-0.50-fix.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

25 lines
628 B
Diff

From 70e8b9f2bc718eeb5642a6680fd0525baaadc6c1 Mon Sep 17 00:00:00 2001
From: Nathan Owens <ndowens@artixlinux.org>
Date: Tue, 1 Dec 2020 14:40:31 -0600
Subject: vala-0.50 fix
---
valabindwriter.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git valabindwriter.vala valabindwriter.vala
index 5b71abd..d9e36fd 100644
--- a/valabindwriter.vala
+++ b/valabindwriter.vala
@@ -36,7 +36,7 @@ public class ValabindWriter : CodeVisitor {
#if VALA_0_50
// required to avoid ugly runtime errors
#else
- context.profile = Profile.GOBJECT;
+ context.set_target_profile(Profile.GOBJECT);
#endif
}
--
2.29.2