-o src/shared/libsystemd-shared-249.a.p/tpm2-util.c.o -c ../systemd-stable-249.5/src/shared/tpm2-util.c ../systemd-stable-249.5/src/shared/tpm2-util.c: In function 'tpm2_init': ../systemd-stable-249.5/src/shared/tpm2-util.c:150:34: error: implicit declaration of function 'strndupa'; did you mean 'strndup'? [-Werror=implicit-function-declaration] 150 | driver = strndupa(device, param - device); | ^~~~~~~~ | strndup A simple patch for this is: --- a/src/shared/tpm2-util.c.orig 2021-10-12 17:24:04.000000000 +0200 +++ b/src/shared/tpm2-util.c 2021-11-07 10:28:13.808438726 +0100 @@ -3,6 +3,7 @@ #include "extract-word.h" #include "parse-util.h" #include "tpm2-util.h" +#include "missing_stdlib.h" #if HAVE_TPM2 #include "alloc-util.h" can we add this to the musl patchset we carry, please? Thanks, Fabian
sure I will refresh patchset.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67f9ab44e0a35685bb3f6e0dfb14eddc50f1825b commit 67f9ab44e0a35685bb3f6e0dfb14eddc50f1825b Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2021-11-09 01:09:19 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2021-11-09 01:09:19 +0000 sys-apps/systemd-tmpfiles: fix build on musl Closes: https://bugs.gentoo.org/822264 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> sys-apps/systemd-tmpfiles/Manifest | 2 +- sys-apps/systemd-tmpfiles/systemd-tmpfiles-249.5.ebuild | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
done and thanks for the patch, we already have 3 ours, need to send them upstream to yocto.
Thanks Georgy for picking it up, really appreciated.