void-packages/srcpkgs/celestia-gtk/patches/memcpy_notdecleared.patch
Đoàn Trần Công Danh c987560802 srcpkgs/c*: 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

22 lines
528 B
Diff

--- a/src/celengine/image.cpp 2014-04-26 14:41:56.359993709 +0200
+++ b/src/celengine/image.cpp 2014-04-26 14:42:16.886993341 +0200
@@ -42,6 +42,7 @@
#include "jpeglib.h"
#else
#include <cstdio>
+#include <string.h>
#include <jpeglib.h>
#endif
}
--- a/src/celengine/texture.cpp 2014-04-26 15:54:19.937915924 +0200
+++ b/src/celengine/texture.cpp 2014-04-26 15:54:46.992915439 +0200
@@ -28,6 +28,7 @@
#include <cstdlib>
#include <cstdio>
#include <cassert>
+#include <string.h>
#ifndef _WIN32
#ifndef TARGET_OS_MAC