diff options
Diffstat (limited to 'meta/recipes-core/sysvinit/sysvinit/realpath.patch')
-rw-r--r-- | meta/recipes-core/sysvinit/sysvinit/realpath.patch | 85 |
1 files changed, 33 insertions, 52 deletions
diff --git a/meta/recipes-core/sysvinit/sysvinit/realpath.patch b/meta/recipes-core/sysvinit/sysvinit/realpath.patch index 5e0dca3bf1..859fd8baad 100644 --- a/meta/recipes-core/sysvinit/sysvinit/realpath.patch +++ b/meta/recipes-core/sysvinit/sysvinit/realpath.patch | |||
@@ -1,4 +1,8 @@ | |||
1 | Fix build on musl use realpath() API its available on all libcs | 1 | From eb158c97f19d473d01befe96359a7f93ae834517 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Thu, 19 Nov 2015 00:10:03 +0000 | ||
4 | Subject: [PATCH] Fix build on musl use realpath() API its available on all | ||
5 | libcs | ||
2 | 6 | ||
3 | realpath() API doesnt work on systems with PATH_MAX set to be unlimited e.g. GNU/Hurd | 7 | realpath() API doesnt work on systems with PATH_MAX set to be unlimited e.g. GNU/Hurd |
4 | However for Linux it should always work | 8 | However for Linux it should always work |
@@ -7,52 +11,17 @@ Upstream-Status: Inappropriate[Linux specific] | |||
7 | 11 | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
9 | 13 | ||
10 | Index: sysvinit-2.88dsf/src/ifdown.c | 14 | --- |
11 | =================================================================== | 15 | src/killall5.c | 4 ++-- |
12 | --- sysvinit-2.88dsf.orig/src/ifdown.c 2010-03-23 07:37:01.000000000 -0700 | 16 | src/mountpoint.c | 1 + |
13 | +++ sysvinit-2.88dsf/src/ifdown.c 2014-04-02 00:43:43.675437029 -0700 | 17 | src/wall.c | 1 + |
14 | @@ -26,11 +26,11 @@ | 18 | 3 files changed, 4 insertions(+), 2 deletions(-) |
15 | #include <unistd.h> | 19 | |
16 | #include <time.h> | 20 | diff --git a/src/killall5.c b/src/killall5.c |
17 | #include <string.h> | 21 | index a664954..9798423 100644 |
18 | +#include <errno.h> | 22 | --- a/src/killall5.c |
19 | 23 | +++ b/src/killall5.c | |
20 | #include <sys/ioctl.h> | 24 | @@ -977,9 +977,9 @@ int matches(PROC *o, PROC *p) |
21 | #include <sys/socket.h> | ||
22 | #include <sys/time.h> | ||
23 | -#include <sys/errno.h> | ||
24 | |||
25 | #include <net/if.h> | ||
26 | #include <netinet/in.h> | ||
27 | Index: sysvinit-2.88dsf/src/init.c | ||
28 | =================================================================== | ||
29 | --- sysvinit-2.88dsf.orig/src/init.c 2014-04-02 00:42:10.488770162 -0700 | ||
30 | +++ sysvinit-2.88dsf/src/init.c 2014-04-02 00:42:59.432103823 -0700 | ||
31 | @@ -49,6 +49,7 @@ | ||
32 | #include <utmp.h> | ||
33 | #include <ctype.h> | ||
34 | #include <stdarg.h> | ||
35 | +#include <sys/ttydefaults.h> | ||
36 | #include <sys/syslog.h> | ||
37 | #include <sys/time.h> | ||
38 | |||
39 | Index: sysvinit-2.88dsf/src/mountpoint.c | ||
40 | =================================================================== | ||
41 | --- sysvinit-2.88dsf.orig/src/mountpoint.c 2009-09-10 01:28:49.000000000 -0700 | ||
42 | +++ sysvinit-2.88dsf/src/mountpoint.c 2014-04-02 00:44:18.248770942 -0700 | ||
43 | @@ -23,6 +23,7 @@ | ||
44 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
45 | */ | ||
46 | |||
47 | +#include <sys/types.h> | ||
48 | #include <sys/stat.h> | ||
49 | #include <unistd.h> | ||
50 | #include <stdlib.h> | ||
51 | Index: sysvinit-2.88dsf/src/killall5.c | ||
52 | =================================================================== | ||
53 | --- sysvinit-2.88dsf.orig/src/killall5.c 2014-03-26 00:49:52.982668074 -0700 | ||
54 | +++ sysvinit-2.88dsf/src/killall5.c 2014-04-02 00:46:45.838771653 -0700 | ||
55 | @@ -846,9 +846,9 @@ | ||
56 | char *oargv1, *pargv1; | 25 | char *oargv1, *pargv1; |
57 | if ((o->argv0 && p->argv0 && !strcmp(o->argv0,p->argv0))) { | 26 | if ((o->argv0 && p->argv0 && !strcmp(o->argv0,p->argv0))) { |
58 | if (o->argv1 && p->argv1) { | 27 | if (o->argv1 && p->argv1) { |
@@ -64,14 +33,26 @@ Index: sysvinit-2.88dsf/src/killall5.c | |||
64 | pargv1 = strdup(p->argv1); | 33 | pargv1 = strdup(p->argv1); |
65 | if (! strcmp(oargv1, pargv1)) { | 34 | if (! strcmp(oargv1, pargv1)) { |
66 | ret = 1; | 35 | ret = 1; |
67 | Index: sysvinit-2.88dsf/src/wall.c | 36 | diff --git a/src/mountpoint.c b/src/mountpoint.c |
68 | =================================================================== | 37 | index b24335e..5f20522 100644 |
69 | --- sysvinit-2.88dsf.orig/src/wall.c 2009-11-22 14:05:53.000000000 -0800 | 38 | --- a/src/mountpoint.c |
70 | +++ sysvinit-2.88dsf/src/wall.c 2014-04-02 00:49:15.258772217 -0700 | 39 | +++ b/src/mountpoint.c |
71 | @@ -29,6 +29,7 @@ | 40 | @@ -23,6 +23,7 @@ |
41 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
42 | */ | ||
43 | |||
44 | +#include <sys/types.h> | ||
45 | #include <sys/stat.h> | ||
72 | #include <unistd.h> | 46 | #include <unistd.h> |
47 | #include <stdlib.h> | ||
48 | diff --git a/src/wall.c b/src/wall.c | ||
49 | index d3a2c70..00826e9 100644 | ||
50 | --- a/src/wall.c | ||
51 | +++ b/src/wall.c | ||
52 | @@ -30,6 +30,7 @@ | ||
73 | #include <pwd.h> | 53 | #include <pwd.h> |
74 | #include <syslog.h> | 54 | #include <syslog.h> |
55 | #include <sys/types.h> | ||
75 | +#include <time.h> | 56 | +#include <time.h> |
76 | #include "init.h" | 57 | #include "init.h" |
77 | 58 | ||