Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 753230 - net-misc/openssh - musl doesn't support wtmp
Summary: net-misc/openssh - musl doesn't support wtmp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-05 17:02 UTC by Ed Wildgoose
Modified: 2022-04-06 19:57 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Wildgoose 2020-11-05 17:02:22 UTC
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?
Comment 1 Mike Gilbert gentoo-dev 2020-11-05 17:10:30 UTC
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.
Comment 2 Ed Wildgoose 2020-11-05 17:37:40 UTC
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.
Comment 3 Larry the Git Cow gentoo-dev 2020-11-05 18:38:46 UTC
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(-)
Comment 4 Michael 'veremitz' Everitt 2021-03-07 04:09:20 UTC
Also filed under https://github.com/gentoo/musl/issues/52 .

Thanks for pushing update Mike.