diff options
author | Paul Barker <paul@paulbarker.me.uk> | 2014-08-20 10:59:13 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-23 09:26:09 +0100 |
commit | e335d9519c883165e70cda5c1fde348391686e31 (patch) | |
tree | f39d72b5e04212b974ef21b4e8b6b724302050d5 /meta/recipes-extended | |
parent | 0c6c0b655536d9ed64074a7664999b9deaa63aa1 (diff) | |
download | poky-e335d9519c883165e70cda5c1fde348391686e31.tar.gz |
psmisc: Fix musl build failure
As in procps, we just need to include <limits.h> for PATH_MAX.
(From OE-Core rev: 914c285de743af04b9dd1cd6436d6b672a4ddb09)
Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r-- | meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch | 29 | ||||
-rw-r--r-- | meta/recipes-extended/psmisc/psmisc_22.21.bb | 4 |
2 files changed, 32 insertions, 1 deletions
diff --git a/meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch b/meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch new file mode 100644 index 0000000000..d8d148218b --- /dev/null +++ b/meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From aa66afecd8ba9cc4139f25ab15ec315173413a7d Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Barker <paul@paulbarker.me.uk> | ||
3 | Date: Wed, 20 Aug 2014 10:31:37 +0000 | ||
4 | Subject: [PATCH] Include <limits.h> for PATH_MAX | ||
5 | |||
6 | When building against musl libc, PATH_MAX is defined in <limits.h>. | ||
7 | |||
8 | Signed-off-by: Paul Barker <paul@paulbarker.me.uk> | ||
9 | |||
10 | Upstream-status: Pending | ||
11 | --- | ||
12 | src/pstree.c | 1 + | ||
13 | 1 file changed, 1 insertion(+) | ||
14 | |||
15 | diff --git a/src/pstree.c b/src/pstree.c | ||
16 | index 071e6c4..0d28260 100644 | ||
17 | --- a/src/pstree.c | ||
18 | +++ b/src/pstree.c | ||
19 | @@ -41,6 +41,7 @@ | ||
20 | #include <sys/types.h> | ||
21 | #include <sys/stat.h> | ||
22 | #include <sys/ioctl.h> | ||
23 | +#include <limits.h> | ||
24 | |||
25 | #include "i18n.h" | ||
26 | #include "comm.h" | ||
27 | -- | ||
28 | 2.0.4 | ||
29 | |||
diff --git a/meta/recipes-extended/psmisc/psmisc_22.21.bb b/meta/recipes-extended/psmisc/psmisc_22.21.bb index 9f328bb81b..66aba9ec57 100644 --- a/meta/recipes-extended/psmisc/psmisc_22.21.bb +++ b/meta/recipes-extended/psmisc/psmisc_22.21.bb | |||
@@ -5,4 +5,6 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3" | |||
5 | SRC_URI[md5sum] = "935c0fd6eb208288262b385fa656f1bf" | 5 | SRC_URI[md5sum] = "935c0fd6eb208288262b385fa656f1bf" |
6 | SRC_URI[sha256sum] = "97323cad619210845b696d7d722c383852b2acb5c49b5b0852c4f29c77a8145a" | 6 | SRC_URI[sha256sum] = "97323cad619210845b696d7d722c383852b2acb5c49b5b0852c4f29c77a8145a" |
7 | 7 | ||
8 | SRC_URI += "file://0001-Typo-in-fuser-makes-M-on-all-the-time.patch" | 8 | SRC_URI += "file://0001-Typo-in-fuser-makes-M-on-all-the-time.patch \ |
9 | file://0002-Include-limits.h-for-PATH_MAX.patch \ | ||
10 | " | ||