Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: getent missing in syschdemd #267

Merged
merged 2 commits into from
Jul 12, 2023
Merged

fix: getent missing in syschdemd #267

merged 2 commits into from
Jul 12, 2023

Conversation

nzbr
Copy link
Member

@nzbr nzbr commented Jul 12, 2023

Related to the discussion in #237 (though it doesn't address the original issue, so don't close that after merging this)

getent was moved to its own derivation and removed from glibc on unstable. Therefore syschdemd crashed on systems running nixos-unstable. By using the getent derivation instead, it works on 22.11, 23.05 and unstable (that's the ones I tested, it might work on older versions as well)

@nzbr nzbr added the bug Something isn't working label Jul 12, 2023
@nzbr nzbr requested a review from SuperSandro2000 July 12, 2023 04:42
@nzbr nzbr self-assigned this Jul 12, 2023
@@ -43,7 +43,7 @@ mkWrappedScript {
"/run/wrappers" # mount
coreutils
daemonize
glibc # getent
getent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could also use glibc.getent but using getent is more cross friendly even if that does not matter here https://github.com/NixOS/nixpkgs/blob/3a671cd64d03f4e55eb6c817d6294910e0ccc133/pkgs/top-level/unixtools.nix#L74-L78

@SuperSandro2000 SuperSandro2000 merged commit 20a1f18 into main Jul 12, 2023
@SuperSandro2000 SuperSandro2000 deleted the getent branch July 12, 2023 12:04
nzbr added a commit that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants