#1129610 krb5 FTBFS on musl: unsatisfiable libnss-myhostname

Package:
src:krb5
Source:
src:krb5
Submitter:
Helmut Grohne
Date:
2026-03-03 21:37:03 UTC
Severity:
normal
Tags:
#1129610#5
Date:
2026-03-03 21:03:38 UTC
From:
To:
Hi,

krb5 fails to build from source on musl-linux-any. The musl C library
does not support nss libraries. Therefore, they'll be disabled in
systemd, see
https://salsa.debian.org/systemd-team/systemd/-/merge_requests/305.
Then, there will be no libnss-myhostname for musl-linux-any
architectures. As a result, krb5 has unsatisfiable Build-Depends and
that prevents us from bootstrapping the port.

The use of libnss-myhostname is for running tests. As such, the
dependency can be annotated <!nocheck>. This will resolve the situation
for the cross bootstrap. I don't expect musl-based Debian to become
self-hosting anytime soon. Please find a patch attached.

Helmut