package/apg: add optional dependency to libxcrypt

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

As glibc's libcrypt was providing apg's libcrypt dependency this broke
the apg build using glibc version 2.39.

To fix this select the libxcrypt dependency to apg when using a glibc
toolchain and add the dependency if selected.

Fixes:
http://autobuild.buildroot.net/results/3df84ae300bb648492cffc21e4481fc5abf02aeb/

Signed-off-by: Bernd Kuhls <bernd@kuhls.net>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Bernd Kuhls 2024-04-03 17:36:33 +02:00 committed by Yann E. MORIN
parent f12c77442e
commit 99abd6e406
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
config BR2_PACKAGE_APG config BR2_PACKAGE_APG
bool "apg" bool "apg"
select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
help help
Automated Password Generator (APG). Automated Password Generator (APG).

View File

@ -9,6 +9,10 @@ APG_SITE = $(call github,wilx,apg,v$(APG_VERSION))
APG_LICENSE = BSD-3-Clause APG_LICENSE = BSD-3-Clause
APG_LICENSE_FILES = COPYING APG_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
APG_DEPENDENCIES += libxcrypt
endif
define APG_BUILD_CMDS define APG_BUILD_CMDS
$(MAKE) $(TARGET_CONFIGURE_OPTS) FLAGS="$(TARGET_CFLAGS)" -C $(@D) $(MAKE) $(TARGET_CONFIGURE_OPTS) FLAGS="$(TARGET_CFLAGS)" -C $(@D)
endef endef