Musl libc doesn't support wtmp, so the default openssh config on gentoo leads to an error: This can be corrected by adding the following stanza in the configure phase: use elibc_musl && myconf+=( --disable-wtmp ) reference: https://gitlab.alpinelinux.org/alpine/aports/-/commit/1e351e79248a9fc51f26fc99f9b49a403a0a5750 There is an existing test against elibc_musl for something else, so propose to put this test along side that. Do you need a patch or is it sufficiently trivial that this is sufficient?
I don't see any evidence of an error. Can you provide a log please? I don't see a forked ebuild in the musl overlay, and given the high profile of this package, I think we would have heard about this already if it were a common issue.
Oops, I forgot to paste the error. Apologies: Nov 5 12:32:35 redbox auth.info sshd[8907]: wtmp_write: problem writing /dev/null/wtmp: Not a directory This is on a gentoo openssh-8.1 machine, I think I can repro this on 32bit + 64bit and I might be able to confirm arm later. Note that the error is not fatal, it's just an ugly error in the logs.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=466c34fd3e7836a9b180dcf320023596a1df0567 commit 466c34fd3e7836a9b180dcf320023596a1df0567 Author: Mike Gilbert <floppym@gentoo.org> AuthorDate: 2020-11-05 18:38:01 +0000 Commit: Mike Gilbert <floppym@gentoo.org> CommitDate: 2020-11-05 18:38:01 +0000 net-misc/openssh: disable utmp and wtmp on musl Closes: https://bugs.gentoo.org/753230 Signed-off-by: Mike Gilbert <floppym@gentoo.org> net-misc/openssh/openssh-8.4_p1-r2.ebuild | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
Also filed under https://github.com/gentoo/musl/issues/52 . Thanks for pushing update Mike.