[Buildroot] [PATCH 1/1] package/nginx: select libxcrypt with glibc

Fabrice Fontaine fontaine.fabrice at gmail.com
Sun Apr 7 13:05:50 UTC 2024


Fix the following build failure raised since bump of glibc to version
2.39 in commit b5680f53d60acf8ff6010082f873438a39bd5d97:

In file included from src/core/ngx_config.h:26,
                 from src/core/nginx.c:8:
src/os/unix/ngx_linux_config.h:55:10: fatal error: crypt.h: No such file or directory
   55 | #include <crypt.h>
      |          ^~~~~~~~~

Fixes: b5680f53d60acf8ff6010082f873438a39bd5d97
 - http://autobuild.buildroot.org/results/a186fffc468f9c901626c47c4ce216ae501085b8

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 package/nginx/Config.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/nginx/Config.in b/package/nginx/Config.in
index 8e888baa1c..1c74f6e116 100644
--- a/package/nginx/Config.in
+++ b/package/nginx/Config.in
@@ -2,6 +2,7 @@ menuconfig BR2_PACKAGE_NGINX
 	bool "nginx"
 	depends on BR2_USE_MMU # fork()
 	select BR2_PACKAGE_LIBATOMIC_OPS if BR2_sparc_v8 || BR2_sparc_leon3
+	select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
 	help
 	  nginx is an HTTP and reverse proxy server, as well as a mail
 	  proxy server.
-- 
2.43.0




More information about the buildroot mailing list