Skip to content

lighttpd: adjust with glibc and libcrypt-compat - #30557

Open
Matthiasfranck wants to merge 1 commit into
openwrt:masterfrom
Matthiasfranck:dev_libcrypt_compat_lighttpd
Open

Matthiasfranck wants to merge 1 commit into
openwrt:masterfrom
Matthiasfranck:dev_libcrypt_compat_lighttpd

Conversation

@Matthiasfranck

@Matthiasfranck Matthiasfranck commented Sep 18, 2026

Copy link
Copy Markdown

Maintainer: @gstrauss

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Link: #19293

glibc 2.39 has removed libcrypt completely.
solution: link against libxcrypt built with glibc compatibility.

Link: openwrt#19293
Signed-off-by: Matthias Franck <matthias.franck@softathome.com>
@gstrauss

Copy link
Copy Markdown
Contributor

Thanks for the patch. I'll think it over. At the moment, I am focusing on the next lighttpd release (soon)

For this PR, maybe lighttpd should look for libxcrypt and use that, if found, though libxcrypt is not small, weighing in at over 200 KB between .text and .rodata segments on my 64-bit system.

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit.


Generated by Claude Code

Comment thread net/lighttpd/Makefile
$(call Package/lighttpd/Default)
MENU:=1
DEPENDS:=+libpthread +LIGHTTPD_LOGROTATE:logrotate \
DEPENDS:=+USE_GLIBC:libcrypt-compat +libpthread +LIGHTTPD_LOGROTATE:logrotate \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libcrypt is linked into mod_authn_file and mod_authn_dbi only — the module table in src/meson.build gives libcrypt to those two and nothing else, and the lighttpd binary itself never calls crypt(). Declared on the core package it pulls libxcrypt onto every glibc install even when neither auth backend is selected; the plugin dependency lists at Makefile:257-258 are the matching place.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants