summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2022-05-05 07:04:45 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-05 21:17:37 +0100
commit990b07108707a1b7c252b7d7e2e4c92410943859 (patch)
tree6a1ea2d60b821a194173011f7a854b07440580b9 /meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch
parent4eba2c38d7ea200fed9479abed336496cc1c3e1f (diff)
downloadpoky-990b07108707a1b7c252b7d7e2e4c92410943859.tar.gz
systemd: upgrade 250.4 -> 250.5
Drop 0029-network-enable-KeepConfiguration-when-running-on-net.patch as patch merged upstream. (From OE-Core rev: e07ba76fc78b44f338e574644a8ae3b6cddc9f08) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch20
1 files changed, 17 insertions, 3 deletions
diff --git a/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch b/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch
index d93f630752..1bd538b0c0 100644
--- a/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch
+++ b/meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch
@@ -1,4 +1,4 @@
1From 3e0df2c22bfd37bc62bf09a01ec498e40d3599de Mon Sep 17 00:00:00 2001 1From 3d9910dcda697b1e361bba49c99050ee0d116742 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com> 2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Sat, 22 May 2021 20:26:24 +0200 3Date: Sat, 22 May 2021 20:26:24 +0200
4Subject: [PATCH] add fallback parse_printf_format implementation 4Subject: [PATCH] add fallback parse_printf_format implementation
@@ -22,6 +22,8 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
22 create mode 100644 src/basic/parse-printf-format.c 22 create mode 100644 src/basic/parse-printf-format.c
23 create mode 100644 src/basic/parse-printf-format.h 23 create mode 100644 src/basic/parse-printf-format.h
24 24
25diff --git a/meson.build b/meson.build
26index cb9936ee8b..ae53345260 100644
25--- a/meson.build 27--- a/meson.build
26+++ b/meson.build 28+++ b/meson.build
27@@ -686,6 +686,7 @@ endif 29@@ -686,6 +686,7 @@ endif
@@ -32,9 +34,11 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
32 'sys/auxv.h', 34 'sys/auxv.h',
33 'valgrind/memcheck.h', 35 'valgrind/memcheck.h',
34 'valgrind/valgrind.h', 36 'valgrind/valgrind.h',
37diff --git a/src/basic/meson.build b/src/basic/meson.build
38index 49e1e7f43e..4131494bfa 100644
35--- a/src/basic/meson.build 39--- a/src/basic/meson.build
36+++ b/src/basic/meson.build 40+++ b/src/basic/meson.build
37@@ -335,6 +335,11 @@ endforeach 41@@ -334,6 +334,11 @@ endforeach
38 42
39 basic_sources += generated_gperf_headers 43 basic_sources += generated_gperf_headers
40 44
@@ -46,6 +50,9 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
46 ############################################################ 50 ############################################################
47 51
48 arch_list = [ 52 arch_list = [
53diff --git a/src/basic/parse-printf-format.c b/src/basic/parse-printf-format.c
54new file mode 100644
55index 0000000000..49437e5445
49--- /dev/null 56--- /dev/null
50+++ b/src/basic/parse-printf-format.c 57+++ b/src/basic/parse-printf-format.c
51@@ -0,0 +1,273 @@ 58@@ -0,0 +1,273 @@
@@ -322,6 +329,9 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
322+ 329+
323+ return last; 330+ return last;
324+} 331+}
332diff --git a/src/basic/parse-printf-format.h b/src/basic/parse-printf-format.h
333new file mode 100644
334index 0000000000..47be7522d7
325--- /dev/null 335--- /dev/null
326+++ b/src/basic/parse-printf-format.h 336+++ b/src/basic/parse-printf-format.h
327@@ -0,0 +1,57 @@ 337@@ -0,0 +1,57 @@
@@ -382,6 +392,8 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
382+size_t parse_printf_format(const char *fmt, size_t n, int *types); 392+size_t parse_printf_format(const char *fmt, size_t n, int *types);
383+ 393+
384+#endif /* HAVE_PRINTF_H */ 394+#endif /* HAVE_PRINTF_H */
395diff --git a/src/basic/stdio-util.h b/src/basic/stdio-util.h
396index 69d7062ec6..f55c5aab2c 100644
385--- a/src/basic/stdio-util.h 397--- a/src/basic/stdio-util.h
386+++ b/src/basic/stdio-util.h 398+++ b/src/basic/stdio-util.h
387@@ -1,13 +1,13 @@ 399@@ -1,13 +1,13 @@
@@ -399,6 +411,8 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
399 411
400 #define snprintf_ok(buf, len, fmt, ...) \ 412 #define snprintf_ok(buf, len, fmt, ...) \
401 ({ \ 413 ({ \
414diff --git a/src/libsystemd/sd-journal/journal-send.c b/src/libsystemd/sd-journal/journal-send.c
415index 1e10ed5524..e6ceba54f9 100644
402--- a/src/libsystemd/sd-journal/journal-send.c 416--- a/src/libsystemd/sd-journal/journal-send.c
403+++ b/src/libsystemd/sd-journal/journal-send.c 417+++ b/src/libsystemd/sd-journal/journal-send.c
404@@ -2,7 +2,6 @@ 418@@ -2,7 +2,6 @@
@@ -409,7 +423,7 @@ Signed-off-by: Scott Murray <scott.murray@konsulko.com>
409 #include <stddef.h> 423 #include <stddef.h>
410 #include <sys/un.h> 424 #include <sys/un.h>
411 #include <unistd.h> 425 #include <unistd.h>
412@@ -21,6 +20,7 @@ 426@@ -25,6 +24,7 @@
413 #include "stdio-util.h" 427 #include "stdio-util.h"
414 #include "string-util.h" 428 #include "string-util.h"
415 #include "tmpfile-util.h" 429 #include "tmpfile-util.h"