summaryrefslogtreecommitdiff
diff options
authorMike Gilbert <[email protected]>2025-09-26 16:16:29 -0400
committerMike Gilbert <[email protected]>2025-09-26 16:16:29 -0400
commit50377dd4846e07faf977cfd59b7d74f240bf40d0 (patch)
tree1f8e2cbba3d621fef6c63682ac8082b06cd46fb1
parentsys-apps/systemd: add 'passwdqc' USE flag (diff)
downloadgentoo-50377dd4846e07faf977cfd59b7d74f240bf40d0.tar.gz
gentoo-50377dd4846e07faf977cfd59b7d74f240bf40d0.tar.bz2
gentoo-50377dd4846e07faf977cfd59b7d74f240bf40d0.zip
sys-apps/systemd: fix build with passwdqc
Closes: https://bugs.gentoo.org/963481 Signed-off-by: Mike Gilbert <[email protected]>
-rw-r--r--sys-apps/systemd/files/systemd-258-shared-add-missing-alloc-util.patch24
-rw-r--r--sys-apps/systemd/systemd-258.ebuild1
2 files changed, 25 insertions, 0 deletions
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