package/systemd: fix build with glibc 2.39

When glibc was bumped to version 2.39 in commit
b5680f53d6 it removed the deprecated
libcrypt support.

As glibc's libcrypt was providing systemd's libcrypt dependency this
broke any systemd build using glibc version 2.39.

To fix this add the libxcrypt dependency to systemd which is the
preferred way of providing libcrypt support in systemd as the glibc
variant is only used as a fallback due to being deprecated.

We should also have host-systemd depend on host-libxcrypt in case
the host system does not provide glibc with libcrypt support.

Fixes:
 - http://autobuild.buildroot.net/results/36e/36efcfc76c015c9b4c955c13afa0f81a98b529f4

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
James Hilliard 2024-04-01 17:40:13 -06:00 committed by Yann E. MORIN
parent 305abd7a30
commit 8a29521747
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ menuconfig BR2_PACKAGE_SYSTEMD
select BR2_PACKAGE_HAS_UDEV
select BR2_PACKAGE_DBUS if !BR2_PACKAGE_DBUS_BROKER # runtime
select BR2_PACKAGE_LIBCAP
select BR2_PACKAGE_LIBXCRYPT
select BR2_PACKAGE_UTIL_LINUX
select BR2_PACKAGE_UTIL_LINUX_LIBS
select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT

View File

@ -55,6 +55,7 @@ SYSTEMD_DEPENDENCIES = \
host-python-jinja2 \
kmod \
libcap \
libxcrypt \
util-linux-libs \
$(TARGET_NLS_DEPENDENCIES)
@ -882,6 +883,7 @@ HOST_SYSTEMD_DEPENDENCIES = \
host-util-linux \
host-patchelf \
host-libcap \
host-libxcrypt \
host-gperf \
host-python-jinja2