void-packages/srcpkgs/switchboard-plug-printers/patches/ftbfs.patch
Đoàn Trần Công Danh 4b97cd2fb4 srcpkgs/s*: 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

23 lines
816 B
Diff

From 3175c2ebf106145a95355d2571e0a2aa4834e884 Mon Sep 17 00:00:00 2001
From: Enerccio <admin@en-circle.com>
Date: Tue, 17 Sep 2019 15:31:37 +0200
Subject: [PATCH] Update cups.vapi (#118)
Fixed bug with compilation
---
vapi/cups.vapi | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vapi/cups.vapi b/vapi/cups.vapi
index 7f1b795..5dcdba6 100644
--- a/vapi/cups.vapi
+++ b/vapi/cups.vapi
@@ -605,7 +605,7 @@ namespace CUPS {
[CCode (cname = "ippAddBooleans")]
private unowned Attribute _add_booleans (Tag group, string name, [CCode (array_length_pos = 0.9)] char[] values);
public unowned Attribute add_booleans (Tag group, string name, bool[] values) {
- char[] char_values;
+ char[] char_values = {};
foreach (var val in values) {
char_values += val ? 1 : 0;
}