void-packages/srcpkgs/ttfautohint/patches/musl_bool.patch
Đoàn Trần Công Danh 4f75cf25fd srcpkgs/t*: 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

14 lines
311 B
Diff

--- a/lib/llrb.h 2018-01-13 08:59:09.826617752 -0800
+++ b/lib/llrb.h 2018-01-13 09:19:04.165564680 -0800
@@ -52,6 +52,11 @@
#ifndef LLRB_H
#define LLRB_H
+#ifndef _Bool
+#include <stdbool.h>
+#define _Bool bool
+#endif
+
#define LLRB_VENDOR "william@25thandClement.com"
#define LLRB_VERSION 0x20130925