commit: fad8143675dd45c9f725c02bd94bf8fe815851e3 Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Wed Feb 17 18:49:11 2021 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Wed Feb 17 18:49:29 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fad81436
sys-apps/systemd-tmpfiles: fix build on recent musl Thanks-to: ernsteiswuerfel <erhard_f <AT> mailbox.org> Closes: https://bugs.gentoo.org/766833 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> sys-apps/systemd-tmpfiles/files/musl-1.2.2.patch | 14 ++++++++++++++ sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild | 1 + 2 files changed, 15 insertions(+) diff --git a/sys-apps/systemd-tmpfiles/files/musl-1.2.2.patch b/sys-apps/systemd-tmpfiles/files/musl-1.2.2.patch new file mode 100644 index 00000000000..dc8905d5aab --- /dev/null +++ b/sys-apps/systemd-tmpfiles/files/musl-1.2.2.patch @@ -0,0 +1,14 @@ +diff --git a/meson.build b/meson.build +index bea9935..03b40f2 100644 +--- a/meson.build ++++ b/meson.build +@@ -510,7 +510,8 @@ foreach ident : [ + #include <sys/stat.h> + #include <unistd.h>'''], + ['explicit_bzero' , '''#include <string.h>'''], +- ['reallocarray', '''#include <malloc.h>'''], ++ ['reallocarray', '''#include <malloc.h> ++ #include <stdlib.h>'''], + ['set_mempolicy', '''#include <stdlib.h> + #include <unistd.h>'''], + ['get_mempolicy', '''#include <stdlib.h> diff --git a/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild b/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild index e4e1196d366..d12d038db90 100644 --- a/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild +++ b/sys-apps/systemd-tmpfiles/systemd-tmpfiles-246.ebuild @@ -53,6 +53,7 @@ src_prepare() { # musl patchset from: # http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-core/systemd/systemd use elibc_musl && eapply "${WORKDIR}/${P}-musl" + use elibc_musl && eapply "${FILESDIR}/musl-1.2.2.patch" # https://bugs.gentoo.org/766833 default }