summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch')
-rw-r--r--meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch55
1 files changed, 26 insertions, 29 deletions
diff --git a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
index 5595b5bc23..f09f2114d3 100644
--- a/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
+++ b/meta/recipes-core/systemd/systemd/0003-src-basic-missing.h-check-for-missing-strndupa.patch
@@ -1,7 +1,7 @@
1From 87f1d38f40c5fe9cadf2b2de442473e4e5605788 Mon Sep 17 00:00:00 2001 1From 843c6c94bf6a29eaceeefafa420cd86a32e844d2 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com> 2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 14:18:21 +0800 3Date: Mon, 25 Feb 2019 14:18:21 +0800
4Subject: [PATCH 03/22] src/basic/missing.h: check for missing strndupa 4Subject: [PATCH] src/basic/missing.h: check for missing strndupa
5 5
6include missing.h for definition of strndupa 6include missing.h for definition of strndupa
7 7
@@ -75,10 +75,10 @@ Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
75 51 files changed, 62 insertions(+) 75 51 files changed, 62 insertions(+)
76 76
77diff --git a/meson.build b/meson.build 77diff --git a/meson.build b/meson.build
78index 01fd3ffc19..61a872b753 100644 78index c4694a9ddc..d376b76afa 100644
79--- a/meson.build 79--- a/meson.build
80+++ b/meson.build 80+++ b/meson.build
81@@ -567,6 +567,7 @@ foreach ident : ['secure_getenv', '__secure_getenv'] 81@@ -569,6 +569,7 @@ foreach ident : ['secure_getenv', '__secure_getenv']
82 endforeach 82 endforeach
83 83
84 foreach ident : [ 84 foreach ident : [
@@ -87,7 +87,7 @@ index 01fd3ffc19..61a872b753 100644
87 ['gettid', '''#include <sys/types.h> 87 ['gettid', '''#include <sys/types.h>
88 #include <unistd.h>'''], 88 #include <unistd.h>'''],
89diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c 89diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
90index 5ac9f904a9..99d5122dd7 100644 90index b2032adaa5..ee9201826d 100644
91--- a/src/backlight/backlight.c 91--- a/src/backlight/backlight.c
92+++ b/src/backlight/backlight.c 92+++ b/src/backlight/backlight.c
93@@ -20,6 +20,7 @@ 93@@ -20,6 +20,7 @@
@@ -111,7 +111,7 @@ index 18b16ecc0e..d2be79622f 100644
111 static int cg_enumerate_items(const char *controller, const char *path, FILE **ret, const char *item) { 111 static int cg_enumerate_items(const char *controller, const char *path, FILE **ret, const char *item) {
112 _cleanup_free_ char *fs = NULL; 112 _cleanup_free_ char *fs = NULL;
113diff --git a/src/basic/env-util.c b/src/basic/env-util.c 113diff --git a/src/basic/env-util.c b/src/basic/env-util.c
114index d3bf73385f..16b17358ca 100644 114index a97651d7af..09fa601250 100644
115--- a/src/basic/env-util.c 115--- a/src/basic/env-util.c
116+++ b/src/basic/env-util.c 116+++ b/src/basic/env-util.c
117@@ -19,6 +19,7 @@ 117@@ -19,6 +19,7 @@
@@ -123,7 +123,7 @@ index d3bf73385f..16b17358ca 100644
123 /* We follow bash for the character set. Different shells have different rules. */ 123 /* We follow bash for the character set. Different shells have different rules. */
124 #define VALID_BASH_ENV_NAME_CHARS \ 124 #define VALID_BASH_ENV_NAME_CHARS \
125diff --git a/src/basic/log.c b/src/basic/log.c 125diff --git a/src/basic/log.c b/src/basic/log.c
126index 1470611a75..9924ec2b9a 100644 126index 7a443005f6..eed69a48ee 100644
127--- a/src/basic/log.c 127--- a/src/basic/log.c
128+++ b/src/basic/log.c 128+++ b/src/basic/log.c
129@@ -40,6 +40,7 @@ 129@@ -40,6 +40,7 @@
@@ -251,7 +251,7 @@ index f9014dc560..1d7840a5b5 100644
251 static clockid_t map_clock_id(clockid_t c) { 251 static clockid_t map_clock_id(clockid_t c) {
252 252
253diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c 253diff --git a/src/boot/bless-boot.c b/src/boot/bless-boot.c
254index 0c0b4f23c7..68fe5ca509 100644 254index 12dfdf76fa..e66332519a 100644
255--- a/src/boot/bless-boot.c 255--- a/src/boot/bless-boot.c
256+++ b/src/boot/bless-boot.c 256+++ b/src/boot/bless-boot.c
257@@ -22,6 +22,7 @@ 257@@ -22,6 +22,7 @@
@@ -263,7 +263,7 @@ index 0c0b4f23c7..68fe5ca509 100644
263 static char **arg_path = NULL; 263 static char **arg_path = NULL;
264 264
265diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c 265diff --git a/src/core/dbus-cgroup.c b/src/core/dbus-cgroup.c
266index 4237e694c0..05f9d9d9a9 100644 266index 8a9570fd21..ac4202e5ce 100644
267--- a/src/core/dbus-cgroup.c 267--- a/src/core/dbus-cgroup.c
268+++ b/src/core/dbus-cgroup.c 268+++ b/src/core/dbus-cgroup.c
269@@ -25,6 +25,7 @@ 269@@ -25,6 +25,7 @@
@@ -275,7 +275,7 @@ index 4237e694c0..05f9d9d9a9 100644
275 275
276 BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", CGroupTasksMax, cgroup_tasks_max_resolve); 276 BUS_DEFINE_PROPERTY_GET(bus_property_get_tasks_max, "t", CGroupTasksMax, cgroup_tasks_max_resolve);
277diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c 277diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
278index 4daa1cefd3..2c77901471 100644 278index 2d05ba7e1d..61a7de0037 100644
279--- a/src/core/dbus-execute.c 279--- a/src/core/dbus-execute.c
280+++ b/src/core/dbus-execute.c 280+++ b/src/core/dbus-execute.c
281@@ -42,6 +42,7 @@ 281@@ -42,6 +42,7 @@
@@ -287,10 +287,10 @@ index 4daa1cefd3..2c77901471 100644
287 BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput); 287 BUS_DEFINE_PROPERTY_GET_ENUM(bus_property_get_exec_output, exec_output, ExecOutput);
288 static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput); 288 static BUS_DEFINE_PROPERTY_GET_ENUM(property_get_exec_input, exec_input, ExecInput);
289diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c 289diff --git a/src/core/dbus-util.c b/src/core/dbus-util.c
290index d680a64268..e59f48103e 100644 290index 7bb026af48..a86128e40c 100644
291--- a/src/core/dbus-util.c 291--- a/src/core/dbus-util.c
292+++ b/src/core/dbus-util.c 292+++ b/src/core/dbus-util.c
293@@ -9,6 +9,7 @@ 293@@ -10,6 +10,7 @@
294 #include "unit-printf.h" 294 #include "unit-printf.h"
295 #include "user-util.h" 295 #include "user-util.h"
296 #include "unit.h" 296 #include "unit.h"
@@ -299,7 +299,7 @@ index d680a64268..e59f48103e 100644
299 int bus_property_get_triggered_unit( 299 int bus_property_get_triggered_unit(
300 sd_bus *bus, 300 sd_bus *bus,
301diff --git a/src/core/execute.c b/src/core/execute.c 301diff --git a/src/core/execute.c b/src/core/execute.c
302index ef0bf88687..bd3da0c401 100644 302index 8dbdfcf369..531bec4c92 100644
303--- a/src/core/execute.c 303--- a/src/core/execute.c
304+++ b/src/core/execute.c 304+++ b/src/core/execute.c
305@@ -72,6 +72,7 @@ 305@@ -72,6 +72,7 @@
@@ -323,7 +323,7 @@ index b8e3f7aadd..8ce8ca68d8 100644
323 #if HAVE_KMOD 323 #if HAVE_KMOD
324 #include "module-util.h" 324 #include "module-util.h"
325diff --git a/src/core/service.c b/src/core/service.c 325diff --git a/src/core/service.c b/src/core/service.c
326index b9eb40c555..268fe7573b 100644 326index 42fffbbd67..80a8d05a19 100644
327--- a/src/core/service.c 327--- a/src/core/service.c
328+++ b/src/core/service.c 328+++ b/src/core/service.c
329@@ -45,6 +45,7 @@ 329@@ -45,6 +45,7 @@
@@ -359,7 +359,7 @@ index 016f3baa7f..b1def81313 100644
359 typedef enum MountPointFlags { 359 typedef enum MountPointFlags {
360 MOUNT_NOAUTO = 1 << 0, 360 MOUNT_NOAUTO = 1 << 0,
361diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c 361diff --git a/src/journal-remote/journal-remote-main.c b/src/journal-remote/journal-remote-main.c
362index da0f20d3ce..f22ce41908 100644 362index 2d380bc7a7..d3f5612728 100644
363--- a/src/journal-remote/journal-remote-main.c 363--- a/src/journal-remote/journal-remote-main.c
364+++ b/src/journal-remote/journal-remote-main.c 364+++ b/src/journal-remote/journal-remote-main.c
365@@ -27,6 +27,7 @@ 365@@ -27,6 +27,7 @@
@@ -371,7 +371,7 @@ index da0f20d3ce..f22ce41908 100644
371 #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem" 371 #define PRIV_KEY_FILE CERTIFICATE_ROOT "/private/journal-remote.pem"
372 #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem" 372 #define CERT_FILE CERTIFICATE_ROOT "/certs/journal-remote.pem"
373diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c 373diff --git a/src/journal/journalctl.c b/src/journal/journalctl.c
374index 7f3dcd56a4..41b7cbaaf1 100644 374index 87e2f28841..58275f41f1 100644
375--- a/src/journal/journalctl.c 375--- a/src/journal/journalctl.c
376+++ b/src/journal/journalctl.c 376+++ b/src/journal/journalctl.c
377@@ -77,6 +77,7 @@ 377@@ -77,6 +77,7 @@
@@ -383,7 +383,7 @@ index 7f3dcd56a4..41b7cbaaf1 100644
383 #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE) 383 #define DEFAULT_FSS_INTERVAL_USEC (15*USEC_PER_MINUTE)
384 #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */ 384 #define PROCESS_INOTIFY_INTERVAL 1024 /* Every 1,024 messages processed */
385diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c 385diff --git a/src/libsystemd/sd-bus/bus-message.c b/src/libsystemd/sd-bus/bus-message.c
386index ff0228081f..9066fcb133 100644 386index ab8b06896d..43f9131205 100644
387--- a/src/libsystemd/sd-bus/bus-message.c 387--- a/src/libsystemd/sd-bus/bus-message.c
388+++ b/src/libsystemd/sd-bus/bus-message.c 388+++ b/src/libsystemd/sd-bus/bus-message.c
389@@ -19,6 +19,7 @@ 389@@ -19,6 +19,7 @@
@@ -407,7 +407,7 @@ index c25c40ff37..57a5da704f 100644
407 static int node_vtable_get_userdata( 407 static int node_vtable_get_userdata(
408 sd_bus *bus, 408 sd_bus *bus,
409diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c 409diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c
410index 3c59d0d615..746922d46f 100644 410index 5ade8e99aa..7553cf319d 100644
411--- a/src/libsystemd/sd-bus/bus-socket.c 411--- a/src/libsystemd/sd-bus/bus-socket.c
412+++ b/src/libsystemd/sd-bus/bus-socket.c 412+++ b/src/libsystemd/sd-bus/bus-socket.c
413@@ -29,6 +29,7 @@ 413@@ -29,6 +29,7 @@
@@ -419,7 +419,7 @@ index 3c59d0d615..746922d46f 100644
419 #define SNDBUF_SIZE (8*1024*1024) 419 #define SNDBUF_SIZE (8*1024*1024)
420 420
421diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c 421diff --git a/src/libsystemd/sd-bus/sd-bus.c b/src/libsystemd/sd-bus/sd-bus.c
422index 4a0259f8bb..aaa90d2223 100644 422index 8befc97460..6ee4d4f595 100644
423--- a/src/libsystemd/sd-bus/sd-bus.c 423--- a/src/libsystemd/sd-bus/sd-bus.c
424+++ b/src/libsystemd/sd-bus/sd-bus.c 424+++ b/src/libsystemd/sd-bus/sd-bus.c
425@@ -46,6 +46,7 @@ 425@@ -46,6 +46,7 @@
@@ -443,7 +443,7 @@ index d988588de0..458df8df9a 100644
443 #define MAX_SIZE (2*1024*1024) 443 #define MAX_SIZE (2*1024*1024)
444 444
445diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c 445diff --git a/src/libsystemd/sd-journal/sd-journal.c b/src/libsystemd/sd-journal/sd-journal.c
446index 6b9ff0a4ed..4a5027ad0f 100644 446index 7a1dd2569f..d187baad47 100644
447--- a/src/libsystemd/sd-journal/sd-journal.c 447--- a/src/libsystemd/sd-journal/sd-journal.c
448+++ b/src/libsystemd/sd-journal/sd-journal.c 448+++ b/src/libsystemd/sd-journal/sd-journal.c
449@@ -44,6 +44,7 @@ 449@@ -44,6 +44,7 @@
@@ -455,7 +455,7 @@ index 6b9ff0a4ed..4a5027ad0f 100644
455 #define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC) 455 #define JOURNAL_FILES_RECHECK_USEC (2 * USEC_PER_SEC)
456 456
457diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c 457diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c
458index b8da266e27..4bb8dd9496 100644 458index bf45974ca5..2cb7e930c0 100644
459--- a/src/login/pam_systemd.c 459--- a/src/login/pam_systemd.c
460+++ b/src/login/pam_systemd.c 460+++ b/src/login/pam_systemd.c
461@@ -35,6 +35,7 @@ 461@@ -35,6 +35,7 @@
@@ -503,10 +503,10 @@ index c64e79bdff..eda26b0b9a 100644
503 static void setup_logging_once(void) { 503 static void setup_logging_once(void) {
504 static pthread_once_t once = PTHREAD_ONCE_INIT; 504 static pthread_once_t once = PTHREAD_ONCE_INIT;
505diff --git a/src/portable/portable.c b/src/portable/portable.c 505diff --git a/src/portable/portable.c b/src/portable/portable.c
506index d4b448a627..bb26623565 100644 506index 3b2a37912f..835a3fdeaa 100644
507--- a/src/portable/portable.c 507--- a/src/portable/portable.c
508+++ b/src/portable/portable.c 508+++ b/src/portable/portable.c
509@@ -40,6 +40,7 @@ 509@@ -42,6 +42,7 @@
510 #include "strv.h" 510 #include "strv.h"
511 #include "tmpfile-util.h" 511 #include "tmpfile-util.h"
512 #include "user-util.h" 512 #include "user-util.h"
@@ -551,7 +551,7 @@ index 8b462b5627..183ce1c18e 100644
551 struct CGroupInfo { 551 struct CGroupInfo {
552 char *cgroup_path; 552 char *cgroup_path;
553diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c 553diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c
554index 4ee9706847..30c8084847 100644 554index 50de98941f..d47beccb0b 100644
555--- a/src/shared/bus-unit-util.c 555--- a/src/shared/bus-unit-util.c
556+++ b/src/shared/bus-unit-util.c 556+++ b/src/shared/bus-unit-util.c
557@@ -50,6 +50,7 @@ 557@@ -50,6 +50,7 @@
@@ -599,7 +599,7 @@ index 83e9834bbf..74eaae6f5e 100644
599 enum { 599 enum {
600 IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */ 600 IMPORTER_STATE_LINE = 0, /* waiting to read, or reading line */
601diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c 601diff --git a/src/shared/logs-show.c b/src/shared/logs-show.c
602index a5d04003bd..10392c132d 100644 602index 0a31be382f..92d629e7e0 100644
603--- a/src/shared/logs-show.c 603--- a/src/shared/logs-show.c
604+++ b/src/shared/logs-show.c 604+++ b/src/shared/logs-show.c
605@@ -41,6 +41,7 @@ 605@@ -41,6 +41,7 @@
@@ -683,7 +683,7 @@ index ed22c8b679..19ebe20237 100644
683 UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl, int log_level) { 683 UdevEvent *udev_event_new(sd_device *dev, usec_t exec_delay_usec, sd_netlink *rtnl, int log_level) {
684 UdevEvent *event; 684 UdevEvent *event;
685diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c 685diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c
686index 5f12002394..febe345b4c 100644 686index c242549654..e5b8df5c2d 100644
687--- a/src/udev/udev-rules.c 687--- a/src/udev/udev-rules.c
688+++ b/src/udev/udev-rules.c 688+++ b/src/udev/udev-rules.c
689@@ -41,6 +41,7 @@ 689@@ -41,6 +41,7 @@
@@ -694,6 +694,3 @@ index 5f12002394..febe345b4c 100644
694 694
695 #define RULES_DIRS ((const char* const*) CONF_PATHS_STRV("udev/rules.d")) 695 #define RULES_DIRS ((const char* const*) CONF_PATHS_STRV("udev/rules.d"))
696 696
697--
6982.34.1
699