void-packages/srcpkgs/w_scan/patches/musl-time_h.patch
Đoàn Trần Công Danh 04b9978a29 srcpkgs/w*: convert patches to -Np1
* wine is kept at -Np0

```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

32 lines
818 B
Diff

--- a/dump-xml.c 2014-11-22 09:49:26.000000000 +0100
+++ b/dump-xml.c 2016-05-03 23:36:55.792377942 +0200
@@ -26,6 +26,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <time.h>
#include "si_types.h"
#include "dump-xml.h"
--- a/scan.c 2014-11-23 10:59:26.000000000 +0100
+++ b/scan.c 2016-05-03 23:39:03.783377563 +0200
@@ -51,6 +51,7 @@
-#include <sys/poll.h>
+#include <poll.h>
#include <unistd.h>
#include <fcntl.h>
+#include <time.h>
#include <signal.h>
#include <assert.h>
#include <getopt.h>
--- a/emulate.c 2014-11-22 09:49:26.000000000 +0100
+++ b/emulate.c 2016-05-03 23:40:41.457377274 +0200
@@ -3,6 +3,7 @@
#include <stdint.h>
#include <string.h>
#include <ctype.h>
+#include <time.h>
-#include <sys/errno.h>
+#include <errno.h>
#include "emulate.h"