man: System manpages have higher priority than user manpages #348946
Labels
0.kind: regression
Something that worked before working no longer
6.topic: nixos
Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS
Describe the bug
/run/current-system/sw/share/man
has higher priority than/etc/profiles/per-user/$USER/share/man
because/run/wrappers/bin
is earlier in the PATH, and it's set to/run/current-system/sw/share/man
in the MANPATH_MAP.Steps To Reproduce
Steps to reproduce the behavior:
man parallel
).Expected behavior
It should have opened the manpage for the one installed for the user, as that corresponds to the program that would be executed.
Additional context
I think that the easiest solution here is to remove the
MANPATH_MAP
entry for/run/wrappers/bin
, though maybe this should be behind a setting (I could make a PR for this if desired). I think that ideally there would be a separate manpage collection just for wrappers, but I don't think this is feasible.Note that this issue started with #65844.
Notify maintainers
@sternenseemann
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: