From 635e9da391995fe80fb8cd5783363a62a52a54c3 Mon Sep 17 00:00:00 2001
From: Đoàn Trần Công Danh <congdanhqx@gmail.com>
Date: Sat, 19 Jun 2021 10:03:21 +0700
Subject: srcpkgs/q*: convert patches to -Np1

* par is kept at -Np0

```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
```
---
 srcpkgs/qt5-webkit/patches/ppc-llint.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'srcpkgs/qt5-webkit/patches/ppc-llint.patch')

diff --git a/srcpkgs/qt5-webkit/patches/ppc-llint.patch b/srcpkgs/qt5-webkit/patches/ppc-llint.patch
index 2fc5a46e523..96440d2e2e3 100644
--- a/srcpkgs/qt5-webkit/patches/ppc-llint.patch
+++ b/srcpkgs/qt5-webkit/patches/ppc-llint.patch
@@ -3,8 +3,8 @@ This fixes JavaScriptCore on big endian systems (mainly ppc).
 Without the patch, attempting to run any JS results in
 a crash as the generated code was endian specific.
 
---- Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
-+++ Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
+--- a/Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
++++ b/Source/JavaScriptCore/llint/LowLevelInterpreter32_64.asm
 @@ -1500,13 +1500,13 @@ _llint_op_put_by_id:
      loadp StructureChain::m_vector[t3], t3
      assert(macro (ok) btpnz t3, ok end)
-- 
cgit v1.2.3