a03d116397
```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 ```
25 lines
623 B
Diff
25 lines
623 B
Diff
From c6891596fc4a1f41dae60c5a8bd08dd7a933d625 Mon Sep 17 00:00:00 2001
|
|
From: Nathan Owens <ndowens@artixlinux.org>
|
|
Date: Sun, 22 Nov 2020 19:56:11 -0600
|
|
Subject: [PATCH] musl build fix
|
|
|
|
---
|
|
tools/find_event_devices.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git tools/find_event_devices.c tools/find_event_devices.c
|
|
index 2a43d54..70314e8 100644
|
|
--- a/tools/find_event_devices.c
|
|
+++ b/tools/find_event_devices.c
|
|
@@ -32,7 +32,7 @@
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>
|
|
#include <unistd.h>
|
|
-
|
|
+#include <limits.h>
|
|
|
|
#define DEV_INPUT_EVENT "/dev/input"
|
|
#define EVENT_DEV_NAME "event"
|
|
--
|
|
2.29.2
|
|
|