```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 ```
37 lines
1,000 B
Diff
37 lines
1,000 B
Diff
From 5eb4ab1c139ea38ebe6bb4acba08b09ee7d77d3c Mon Sep 17 00:00:00 2001
|
||
From: Baruch Siach <baruch@tkos.co.il>
|
||
Date: Sun, 18 Aug 2019 10:01:06 +0300
|
||
Subject: [PATCH] Add missing limits.h include
|
||
MIME-Version: 1.0
|
||
Content-Type: text/plain; charset=UTF-8
|
||
Content-Transfer-Encoding: 8bit
|
||
|
||
Fixes build with musl libc that does not include limits.h indirectly via
|
||
other headers.
|
||
|
||
evtest.c: In function ‘scan_devices’:
|
||
evtest.c:886:14: error: ‘PATH_MAX’ undeclared (first use in this function); did you mean INT8_MAX’?
|
||
char fname[PATH_MAX];
|
||
^~~~~~~~
|
||
|
||
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
|
||
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
|
||
---
|
||
evtest.c | 1 +
|
||
1 file changed, 1 insertion(+)
|
||
|
||
diff --git evtest.c evtest.c
|
||
index 37d4f85..548c203 100644
|
||
--- a/evtest.c
|
||
+++ b/evtest.c
|
||
@@ -56,6 +56,7 @@
|
||
#include <getopt.h>
|
||
#include <ctype.h>
|
||
#include <signal.h>
|
||
+#include <limits.h>
|
||
#include <sys/time.h>
|
||
#include <sys/types.h>
|
||
#include <unistd.h>
|
||
--
|
||
2.23.0
|
||
|