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

29 lines
889 B
Diff

--- a/examples/ThirdPartyLibs/Gwen/Gwen.cpp 2015-08-05 11:31:24.936137203 +0200
+++ b/examples/ThirdPartyLibs/Gwen/Gwen.cpp 2015-08-05 11:31:33.447238474 +0200
@@ -5,6 +5,7 @@
*/
+#include <stdio.h>
#include "Gwen/Gwen.h"
--- a/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp 2015-08-05 11:34:15.185162987 +0200
+++ b/examples/ExampleBrowser/GwenGUISupport/GwenParameterInterface.cpp 2015-08-05 11:34:24.896278540 +0200
@@ -1,3 +1,4 @@
+#include <stdio.h>
#include "GwenParameterInterface.h"
#include "gwenInternalData.h"
--- a/Extras/VHACD/inc/vhacdMutex.h 2021-05-07 20:04:02.000000000 +0200
+++ b/Extras/VHACD/inc/vhacdMutex.h 2021-05-07 20:04:02.000000000 +0200
@@ -69,7 +69,7 @@
#include <pthread.h>
#endif
-#if defined(__APPLE__)
+#if defined(__APPLE__) || !defined(__GLIBC__)
#define PTHREAD_MUTEX_RECURSIVE_NP PTHREAD_MUTEX_RECURSIVE
#endif