void-packages/srcpkgs/urbanterror/patches/musl.patch
Đoàn Trần Công Danh 5769f150de srcpkgs/u*: 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

25 lines
648 B
Diff

From 3f0a36985a046dfb9432e57fb26e5ee4913fc7fe Mon Sep 17 00:00:00 2001
From: Andrea Brancaleoni <miwaxe@gmail.com>
Date: Tue, 25 Aug 2015 19:06:12 +0200
Subject: [PATCH] musl
---
code/unix/unix_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git code/unix/unix_main.c code/unix/unix_main.c
index ab3608b..f823800 100644
--- a/code/unix/unix_main.c
+++ b/code/unix/unix_main.c
@@ -53,7 +53,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#include <dlfcn.h>
#endif
-#ifdef __linux__
+#ifdef __GLIBC__
#include <fpu_control.h> // bk001213 - force dumps on divide by zero
#endif
--
2.5.0