Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] nscd fails to start with musl
@ 2023-04-19  8:41 gabrielhdt
  2023-04-20  3:27 ` nekopsykose
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: gabrielhdt @ 2023-04-19  8:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 852 bytes --]

New issue by gabrielhdt on void-packages repository

https://github.com/void-linux/void-packages/issues/43522

Description:
### Is this a new report?

Yes

### System Info

Void 6.1.21_1 x86_64-musl GenuineIntel notuptodate rrnFFF

### Package(s) Affected

musl-nscd-1.1.1_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

This seems related https://gitlab.alpinelinux.org/alpine/aports/-/issues/11485

### Expected behaviour

Once musl-nscd, I would expect `nscd` to run successfully.
```command
$ nscd # with root privileges
$ echo $?
0
```

### Actual behaviour

```command
$ nscd # with root privileges
nscd: libnss_files.so: Error loading shared library libnss_files.so: No such file or directory
$ echo $?
1
```

### Steps to reproduce

```command
$ xbps-install musl-nscd
$ nscd
```

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nscd fails to start with musl
  2023-04-19  8:41 [ISSUE] nscd fails to start with musl gabrielhdt
@ 2023-04-20  3:27 ` nekopsykose
  2023-04-20  3:28 ` nekopsykose
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: nekopsykose @ 2023-04-20  3:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 310 bytes --]

New comment by nekopsykose on void-packages repository

https://github.com/void-linux/void-packages/issues/43522#issuecomment-1515661131

Comment:
the `/etc/nsswitch.conf` needs to have things it can actually load- the `files` entry tries to load libnss_`files`, and so it fails. nobody implemented that afaik

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nscd fails to start with musl
  2023-04-19  8:41 [ISSUE] nscd fails to start with musl gabrielhdt
  2023-04-20  3:27 ` nekopsykose
@ 2023-04-20  3:28 ` nekopsykose
  2023-04-20  5:53 ` gabrielhdt
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: nekopsykose @ 2023-04-20  3:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

New comment by nekopsykose on void-packages repository

https://github.com/void-linux/void-packages/issues/43522#issuecomment-1515661737

Comment:
(i don't know what 'is' implemented and allowed in nsswitch.conf, nor 3rdparty modules, aside from https://cwrap.org/nss_wrapper.html for instance)

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nscd fails to start with musl
  2023-04-19  8:41 [ISSUE] nscd fails to start with musl gabrielhdt
  2023-04-20  3:27 ` nekopsykose
  2023-04-20  3:28 ` nekopsykose
@ 2023-04-20  5:53 ` gabrielhdt
  2023-04-20  5:54 ` gabrielhdt
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: gabrielhdt @ 2023-04-20  5:53 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

New comment by gabrielhdt on void-packages repository

https://github.com/void-linux/void-packages/issues/43522#issuecomment-1515752924

Comment:
If I understand correctly, this issue would be fixed by implementing `libnss_files` on top of musl, which may be a lot of work.

While we wait for such an implementation, can we do something to warn users that the `files` module isn't available? IMO we can either
- ping the developers of https://github.com/pikhq/musl-nscd and ask them whether they want to do something about that, or
- write some documentation in the Void package, although the issues doesn't seem to be specific to Void?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nscd fails to start with musl
  2023-04-19  8:41 [ISSUE] nscd fails to start with musl gabrielhdt
                   ` (2 preceding siblings ...)
  2023-04-20  5:53 ` gabrielhdt
@ 2023-04-20  5:54 ` gabrielhdt
  2023-04-20  7:42 ` nekopsykose
  2024-03-04 14:29 ` klarasm
  5 siblings, 0 replies; 7+ messages in thread
From: gabrielhdt @ 2023-04-20  5:54 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 705 bytes --]

New comment by gabrielhdt on void-packages repository

https://github.com/void-linux/void-packages/issues/43522#issuecomment-1515752924

Comment:
If I understand correctly, this issue would be fixed by implementing `libnss_files` on top of musl, which may be a lot of work.

While we wait for such an implementation, can we do something to warn users that the `files` module isn't available? IMO we can either
- ping the developers of https://github.com/pikhq/musl-nscd and ask them whether they want to do something about that (knowing that the last commit on the repository is 2 years old), or
- write some documentation in the Void package, although the issues doesn't seem to be specific to Void?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nscd fails to start with musl
  2023-04-19  8:41 [ISSUE] nscd fails to start with musl gabrielhdt
                   ` (3 preceding siblings ...)
  2023-04-20  5:54 ` gabrielhdt
@ 2023-04-20  7:42 ` nekopsykose
  2024-03-04 14:29 ` klarasm
  5 siblings, 0 replies; 7+ messages in thread
From: nekopsykose @ 2023-04-20  7:42 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New comment by nekopsykose on void-packages repository

https://github.com/void-linux/void-packages/issues/43522#issuecomment-1515869495

Comment:
it's not specific to void no

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: nscd fails to start with musl
  2023-04-19  8:41 [ISSUE] nscd fails to start with musl gabrielhdt
                   ` (4 preceding siblings ...)
  2023-04-20  7:42 ` nekopsykose
@ 2024-03-04 14:29 ` klarasm
  5 siblings, 0 replies; 7+ messages in thread
From: klarasm @ 2024-03-04 14:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 405 bytes --]

New comment by klarasm on void-packages repository

https://github.com/void-linux/void-packages/issues/43522#issuecomment-1976706303

Comment:
I'm trying to make nss-pam-ldapd build the nss module for musl in #49070. I found that just removing the files module from nsswitch.conf works. It seems musl always queries the local files first anyway, and if it does not find anything queries the nscd service.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-03-04 14:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-19  8:41 [ISSUE] nscd fails to start with musl gabrielhdt
2023-04-20  3:27 ` nekopsykose
2023-04-20  3:28 ` nekopsykose
2023-04-20  5:53 ` gabrielhdt
2023-04-20  5:54 ` gabrielhdt
2023-04-20  7:42 ` nekopsykose
2024-03-04 14:29 ` klarasm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).