commit: 50377dd4846e07faf977cfd59b7d74f240bf40d0 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> AuthorDate: Fri Sep 26 20:16:29 2025 +0000 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> CommitDate: Fri Sep 26 20:16:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50377dd4
sys-apps/systemd: fix build with passwdqc Closes: https://bugs.gentoo.org/963481 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> ...systemd-258-shared-add-missing-alloc-util.patch | 24 ++++++++++++++++++++++ sys-apps/systemd/systemd-258.ebuild | 1 + 2 files changed, 25 insertions(+) diff --git a/sys-apps/systemd/files/systemd-258-shared-add-missing-alloc-util.patch b/sys-apps/systemd/files/systemd-258-shared-add-missing-alloc-util.patch new file mode 100644 index 000000000000..f384b3fece57 --- /dev/null +++ b/sys-apps/systemd/files/systemd-258-shared-add-missing-alloc-util.patch @@ -0,0 +1,24 @@ +https://bugs.gentoo.org/963481 +https://github.com/systemd/systemd/pull/39149 + +From 3df39cedda01dec35e49f1ab5632cf9f325e5320 Mon Sep 17 00:00:00 2001 +From: Xarblu <[email protected]> +Date: Fri, 26 Sep 2025 21:40:50 +0200 +Subject: [PATCH] shared: add missing alloc-util.h include + +Needed for _cleanup_free_ +--- + src/shared/password-quality-util-passwdqc.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/shared/password-quality-util-passwdqc.c b/src/shared/password-quality-util-passwdqc.c +index d74e0fb7f2370..844068a4d64a3 100644 +--- a/src/shared/password-quality-util-passwdqc.c ++++ b/src/shared/password-quality-util-passwdqc.c +@@ -1,5 +1,6 @@ + /* SPDX-License-Identifier: LGPL-2.1-or-later */ + ++#include "alloc-util.h" + #include "dlfcn-util.h" + #include "errno-util.h" + #include "log.h" diff --git a/sys-apps/systemd/systemd-258.ebuild b/sys-apps/systemd/systemd-258.ebuild index e7b582da84f4..fdcd0f248500 100644 --- a/sys-apps/systemd/systemd-258.ebuild +++ b/sys-apps/systemd/systemd-258.ebuild @@ -281,6 +281,7 @@ src_unpack() { src_prepare() { local PATCHES=( + "${FILESDIR}/systemd-258-shared-add-missing-alloc-util.patch" ) if ! use vanilla; then
