www-servers/lighttpd-1.4.55 builds and installs just fine without dev-libs/libgamin installed. The latter depends on dev-lang/python:2.7 and was the only package remaining on my system with that dependency. The Lighttpd ebuild should lose the BDEPEND on dev-libs/libgamin so Python 2.7 can be cut loose.
libgamin does not depend on python2.7, unless you requested it to. So this potential lighttpd bug does in no way block the python stuff (there's a separate bug for libgamin on that). As for this bug, it seems it does need libgamin (or rather virtual/fam), but that should only be with USE=fam. But maybe something in autotools could also be wonky, and fam.h check is unconditional. That's for the maintainer to look into.
lighttpd 1.4.56 (upstream) removes use of FAM or gamin on Linux, and uses inotify() directly, even if USE=fam. Please remove the lighttpd FAM/gamin declared dependency in gentoo, and remove USE=fam.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ce9a25069d8b2699fae5fafe9c86a215f321eed commit 6ce9a25069d8b2699fae5fafe9c86a215f321eed Author: Herb Miller Jr <hmillerj@gmail.com> AuthorDate: 2021-01-11 13:47:28 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2021-01-26 14:33:31 +0000 www-servers/lighttpd: Version bump (v1.4.58) Modernized dependencies and modules with the version bump. Modules that have been deprecated for the last vew versions have been removed, mainly around database adapters. Added support for additional SSL implementations, but removed libressl since that's on the chopping block. Addressed a few bugs as well. Signed-off-by: Herb Miller Jr. <herb@hlmjr.com> Package-Manager: Portage-3.0.12, Repoman-3.0.2 Bug: https://bugs.gentoo.org/740626 Bug: https://bugs.gentoo.org/719480 Bug: https://bugs.gentoo.org/759955 Bug: https://bugs.gentoo.org/727404 Closes: https://github.com/gentoo/gentoo/pull/19032 Signed-off-by: Joonas Niilola <juippis@gentoo.org> www-servers/lighttpd/Manifest | 1 + www-servers/lighttpd/lighttpd-1.4.58.ebuild | 265 ++++++++++++++++++++++++++++ www-servers/lighttpd/metadata.xml | 16 +- 3 files changed, 281 insertions(+), 1 deletion(-)