summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2021-02-28 16:36:56 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-15 14:49:51 +0000
commit142fa3c5a0cfcb7d5a4a86c54368594d99bbb853 (patch)
treede10e39d927ba1800823ddb60afec4c3ac783aa1
parentb608cf6120235754582edd3e73e34a9af0959b79 (diff)
downloadpoky-142fa3c5a0cfcb7d5a4a86c54368594d99bbb853.tar.gz
procps: update 3.3.16 -> 3.3.17
(From OE-Core rev: a3f0ee1cff8c4fef82e82effcc9944a39caec7c6) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/procps/procps/0001-w.c-correct-musl-builds.patch44
-rw-r--r--meta/recipes-extended/procps/procps/0002-proc-escape.c-add-missing-include.patch23
-rw-r--r--meta/recipes-extended/procps/procps_3.3.17.bb (renamed from meta/recipes-extended/procps/procps_3.3.16.bb)4
3 files changed, 70 insertions, 1 deletions
diff --git a/meta/recipes-extended/procps/procps/0001-w.c-correct-musl-builds.patch b/meta/recipes-extended/procps/procps/0001-w.c-correct-musl-builds.patch
new file mode 100644
index 0000000000..c92ad28e4f
--- /dev/null
+++ b/meta/recipes-extended/procps/procps/0001-w.c-correct-musl-builds.patch
@@ -0,0 +1,44 @@
1From 22f8d25567b8d64bdbab0fb0b4915b4362561d9b Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 24 Feb 2021 21:14:31 +0000
4Subject: [PATCH] w.c: correct musl builds
5
6No need to redefine UT_ stuff to something that does not exist.
7
8UT_ is already provided in musl but via utmp.h header, so include
9it always.
10
11Upstream-Status: Submitted [https://gitlab.com/procps-ng/procps/-/merge_requests/126]
12Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
13---
14 w.c | 9 +--------
15 1 file changed, 1 insertion(+), 8 deletions(-)
16
17diff --git a/w.c b/w.c
18index 9d07ac9..d10639b 100644
19--- a/w.c
20+++ b/w.c
21@@ -57,9 +57,8 @@
22 #include <unistd.h>
23 #ifdef HAVE_UTMPX_H
24 # include <utmpx.h>
25-#else
26-# include <utmp.h>
27 #endif
28+#include <utmp.h>
29 #include <arpa/inet.h>
30
31 static int ignoreuser = 0; /* for '-u' */
32@@ -72,12 +71,6 @@ typedef struct utmpx utmp_t;
33 typedef struct utmp utmp_t;
34 #endif
35
36-#if !defined(UT_HOSTSIZE) || defined(__UT_HOSTSIZE)
37-# define UT_HOSTSIZE __UT_HOSTSIZE
38-# define UT_LINESIZE __UT_LINESIZE
39-# define UT_NAMESIZE __UT_NAMESIZE
40-#endif
41-
42 #ifdef W_SHOWFROM
43 # define FROM_STRING "on"
44 #else
diff --git a/meta/recipes-extended/procps/procps/0002-proc-escape.c-add-missing-include.patch b/meta/recipes-extended/procps/procps/0002-proc-escape.c-add-missing-include.patch
new file mode 100644
index 0000000000..5fa1ac9d78
--- /dev/null
+++ b/meta/recipes-extended/procps/procps/0002-proc-escape.c-add-missing-include.patch
@@ -0,0 +1,23 @@
1From 4f964821398dff7ab21fec63da15e1e00b2e9277 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Wed, 24 Feb 2021 21:16:14 +0000
4Subject: [PATCH] proc/escape.c: add missing include
5
6Upstream-Status: Submitted [https://gitlab.com/procps-ng/procps/-/merge_requests/126]
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 proc/escape.c | 1 +
10 1 file changed, 1 insertion(+)
11
12diff --git a/proc/escape.c b/proc/escape.c
13index 2e8fb7d..e1f4612 100644
14--- a/proc/escape.c
15+++ b/proc/escape.c
16@@ -21,6 +21,7 @@
17 #include <sys/types.h>
18 #include <string.h>
19 #include <limits.h>
20+#include <langinfo.h>
21 #include "procps.h"
22 #include "escape.h"
23 #include "readproc.h"
diff --git a/meta/recipes-extended/procps/procps_3.3.16.bb b/meta/recipes-extended/procps/procps_3.3.17.bb
index ef3ac86e97..c74a901d9a 100644
--- a/meta/recipes-extended/procps/procps_3.3.16.bb
+++ b/meta/recipes-extended/procps/procps_3.3.17.bb
@@ -14,8 +14,10 @@ inherit autotools gettext pkgconfig update-alternatives
14 14
15SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https \ 15SRC_URI = "git://gitlab.com/procps-ng/procps.git;protocol=https \
16 file://sysctl.conf \ 16 file://sysctl.conf \
17 file://0001-w.c-correct-musl-builds.patch \
18 file://0002-proc-escape.c-add-missing-include.patch \
17 " 19 "
18SRCREV = "59c88e18f29000ceaf7e5f98181b07be443cf12f" 20SRCREV = "19a508ea121c0c4ac6d0224575a036de745eaaf8"
19 21
20S = "${WORKDIR}/git" 22S = "${WORKDIR}/git"
21 23