diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-12-28 09:55:41 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-28 23:59:55 +0000 |
commit | 77d8b2cc80f2cd12b3267367dc453ef0d53c2af2 (patch) | |
tree | 77466925ebdbdf655f0e5bb8b16dff497cfaafdc /meta/recipes-core/systemd/systemd/0004-add-fallback-parse_printf_format-implementation.patch | |
parent | ff81714af34de533104df1686d28bc9735c02c58 (diff) | |
download | poky-77d8b2cc80f2cd12b3267367dc453ef0d53c2af2.tar.gz |
systemd: Fix 252 release build on musl
(From OE-Core rev: 38256b5d8caa54024df9df908cc7fa49ca5fac39)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
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.patch | 22 |
1 files changed, 4 insertions, 18 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 0c85f2bcbe..f9c7ced947 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 | |||
@@ -22,11 +22,9 @@ 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 | ||
25 | diff --git a/meson.build b/meson.build | ||
26 | index 36cbfa4893..30b5305b89 100644 | ||
27 | --- a/meson.build | 25 | --- a/meson.build |
28 | +++ b/meson.build | 26 | +++ b/meson.build |
29 | @@ -694,6 +694,7 @@ endif | 27 | @@ -739,6 +739,7 @@ endif |
30 | foreach header : ['crypt.h', | 28 | foreach header : ['crypt.h', |
31 | 'linux/memfd.h', | 29 | 'linux/memfd.h', |
32 | 'linux/vm_sockets.h', | 30 | 'linux/vm_sockets.h', |
@@ -34,11 +32,9 @@ index 36cbfa4893..30b5305b89 100644 | |||
34 | 'sys/auxv.h', | 32 | 'sys/auxv.h', |
35 | 'valgrind/memcheck.h', | 33 | 'valgrind/memcheck.h', |
36 | 'valgrind/valgrind.h', | 34 | 'valgrind/valgrind.h', |
37 | diff --git a/src/basic/meson.build b/src/basic/meson.build | ||
38 | index 9b89fdcdea..0b1ef91016 100644 | ||
39 | --- a/src/basic/meson.build | 35 | --- a/src/basic/meson.build |
40 | +++ b/src/basic/meson.build | 36 | +++ b/src/basic/meson.build |
41 | @@ -336,6 +336,11 @@ endforeach | 37 | @@ -337,6 +337,11 @@ endforeach |
42 | 38 | ||
43 | basic_sources += generated_gperf_headers | 39 | basic_sources += generated_gperf_headers |
44 | 40 | ||
@@ -50,9 +46,6 @@ index 9b89fdcdea..0b1ef91016 100644 | |||
50 | ############################################################ | 46 | ############################################################ |
51 | 47 | ||
52 | arch_list = [ | 48 | arch_list = [ |
53 | diff --git a/src/basic/parse-printf-format.c b/src/basic/parse-printf-format.c | ||
54 | new file mode 100644 | ||
55 | index 0000000000..49437e5445 | ||
56 | --- /dev/null | 49 | --- /dev/null |
57 | +++ b/src/basic/parse-printf-format.c | 50 | +++ b/src/basic/parse-printf-format.c |
58 | @@ -0,0 +1,273 @@ | 51 | @@ -0,0 +1,273 @@ |
@@ -329,9 +322,6 @@ index 0000000000..49437e5445 | |||
329 | + | 322 | + |
330 | + return last; | 323 | + return last; |
331 | +} | 324 | +} |
332 | diff --git a/src/basic/parse-printf-format.h b/src/basic/parse-printf-format.h | ||
333 | new file mode 100644 | ||
334 | index 0000000000..47be7522d7 | ||
335 | --- /dev/null | 325 | --- /dev/null |
336 | +++ b/src/basic/parse-printf-format.h | 326 | +++ b/src/basic/parse-printf-format.h |
337 | @@ -0,0 +1,57 @@ | 327 | @@ -0,0 +1,57 @@ |
@@ -392,8 +382,6 @@ index 0000000000..47be7522d7 | |||
392 | +size_t parse_printf_format(const char *fmt, size_t n, int *types); | 382 | +size_t parse_printf_format(const char *fmt, size_t n, int *types); |
393 | + | 383 | + |
394 | +#endif /* HAVE_PRINTF_H */ | 384 | +#endif /* HAVE_PRINTF_H */ |
395 | diff --git a/src/basic/stdio-util.h b/src/basic/stdio-util.h | ||
396 | index 69d7062ec6..f55c5aab2c 100644 | ||
397 | --- a/src/basic/stdio-util.h | 385 | --- a/src/basic/stdio-util.h |
398 | +++ b/src/basic/stdio-util.h | 386 | +++ b/src/basic/stdio-util.h |
399 | @@ -1,13 +1,13 @@ | 387 | @@ -1,13 +1,13 @@ |
@@ -409,10 +397,8 @@ index 69d7062ec6..f55c5aab2c 100644 | |||
409 | #include "memory-util.h" | 397 | #include "memory-util.h" |
410 | +#include "parse-printf-format.h" | 398 | +#include "parse-printf-format.h" |
411 | 399 | ||
412 | #define snprintf_ok(buf, len, fmt, ...) \ | 400 | #define snprintf_ok(buf, len, fmt, ...) \ |
413 | ({ \ | 401 | ({ \ |
414 | diff --git a/src/libsystemd/sd-journal/journal-send.c b/src/libsystemd/sd-journal/journal-send.c | ||
415 | index 1e10ed5524..e6ceba54f9 100644 | ||
416 | --- a/src/libsystemd/sd-journal/journal-send.c | 402 | --- a/src/libsystemd/sd-journal/journal-send.c |
417 | +++ b/src/libsystemd/sd-journal/journal-send.c | 403 | +++ b/src/libsystemd/sd-journal/journal-send.c |
418 | @@ -2,7 +2,6 @@ | 404 | @@ -2,7 +2,6 @@ |