void-packages/srcpkgs/touchegg/patches/musl.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

24 lines
572 B
Diff

From da9a3a95cfe9965ff6e15e3a0e1a98f8840a34d7 Mon Sep 17 00:00:00 2001
From: Alexander Gehrke <void@qwertyuiop.de>
Date: Tue, 25 May 2021 23:47:51 +0000
Subject: [PATCH] Fix missing header for musl
---
src/utils/client-lock.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/utils/client-lock.cpp b/src/utils/client-lock.cpp
index fb1e67b..27c6c6a 100644
--- a/src/utils/client-lock.cpp
+++ b/src/utils/client-lock.cpp
@@ -19,6 +19,7 @@
#include <sys/file.h>
#include <unistd.h>
+#include <fcntl.h>
#include <exception>
#include <stdexcept>
--
2.31.1