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

40 lines
1.3 KiB
Diff

--- a/src/migration/mdb/3rdparty/mdbtools/libmdb/catalog.c 2018-03-06 22:46:18.503349370 +0100
+++ b/src/migration/mdb/3rdparty/mdbtools/libmdb/catalog.c 2018-03-06 22:46:18.503349370 +0100
@@ -17,6 +17,7 @@
*/
#include "mdbtools.h"
+#include <strings.h>
#ifdef DMALLOC
#include "dmalloc.h"
--- a/src/migration/mdb/3rdparty/mdbtools/libmdb/data.c 2018-03-06 22:46:18.503349370 +0100
+++ b/src/migration/mdb/3rdparty/mdbtools/libmdb/data.c 2018-03-06 22:46:18.503349370 +0100
@@ -18,6 +18,7 @@
#include <time.h>
#include <math.h>
+#include <strings.h>
#include "mdbtools.h"
#ifdef DMALLOC
--- a/src/migration/mdb/3rdparty/mdbtools/libmdb/sargs.c 2018-03-06 22:46:18.507349448 +0100
+++ b/src/migration/mdb/3rdparty/mdbtools/libmdb/sargs.c 2018-03-06 22:46:18.507349448 +0100
@@ -27,6 +27,7 @@
* a mdb_test_[type]() function and invoke it from mdb_test_sarg()
*/
+#include <strings.h>
#include <time.h>
#include "mdbtools.h"
#ifdef DMALLOC
--- a/src/migration/mdb/3rdparty/mdbtools/libmdb/table.c 2018-03-06 22:46:18.507349448 +0100
+++ b/src/migration/mdb/3rdparty/mdbtools/libmdb/table.c 2018-03-06 22:46:18.507349448 +0100
@@ -16,6 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <strings.h>
#include "mdbtools.h"
#ifdef DMALLOC