diff options
| author | Patrick Williams <patrick@stwcx.xyz> | 2026-03-12 00:11:03 +0300 |
|---|---|---|
| committer | Patrick Williams <patrick@stwcx.xyz> | 2026-03-12 00:50:31 +0300 |
| commit | 833e6eeb487809cda27360ff0e744a861a55228d (patch) | |
| tree | b8c962801fcd7e9e3c15150a22afa7af2d60e898 /upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-systemd | |
| parent | 1040f45d14363bb6ff9995199e8ccc6242d638f0 (diff) | |
| download | openbmc-833e6eeb487809cda27360ff0e744a861a55228d.tar.xz | |
meta-openembedded: move to upstream-layers
As part of the poky deprecation, use that as an opportunity
to move upstream layers into their own subdirectory. This allows
us to be clearer as to which layers are owned by the openbmc org and
which ones are from upstream. We can then make it more obvious that
upstream repositories should be left unchanged.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I68742165729545c842c6a4a7c9bb07b3e86fe853
Diffstat (limited to 'upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-systemd')
| -rw-r--r-- | upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-systemd/0001-Provide-implementation-of-strndupa-for-musl.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-systemd/0001-Provide-implementation-of-strndupa-for-musl.patch b/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-systemd/0001-Provide-implementation-of-strndupa-for-musl.patch new file mode 100644 index 0000000000..d7085a8565 --- /dev/null +++ b/upstream-layers/meta-openembedded/meta-python/recipes-devtools/python/python3-systemd/0001-Provide-implementation-of-strndupa-for-musl.patch @@ -0,0 +1,42 @@ +From 8b639f9faf6199e47b9eae0698d01a22917b6abe Mon Sep 17 00:00:00 2001 +From: Tim Orling <timothy.t.orling@linux.intel.com> +Date: Fri, 29 Dec 2017 09:17:17 -0800 +Subject: [PATCH] Provide implementation of strndupa for musl + +Reuse the approach from oe-core: +/meta/recipes-core/systemd/systemd/0002-src-basic-missing.h-check-for-missing-strndupa.patch + +Original patch author: Emil Renner Berthing <systemd@esmil.dk> + +Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com +--- +Upstream-Status: Pending + + systemd/util.c | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/systemd/util.c b/systemd/util.c +index e02c825..277e611 100644 +--- a/systemd/util.c ++++ b/systemd/util.c +@@ -34,6 +34,17 @@ + + #include "util.h" + ++#if !HAVE_DECL_STRNDUPA ++#define strndupa(s, n) \ ++ ({ \ ++ const char *__old = (s); \ ++ size_t __len = strnlen(__old, (n)); \ ++ char *__new = (char *)alloca(__len + 1); \ ++ __new[__len] = '\0'; \ ++ (char *)memcpy(__new, __old, __len); \ ++ }) ++#endif ++ + int safe_atou(const char *s, unsigned *ret_u) { + char *x = NULL; + unsigned long l; +-- +2.13.6 + |
