Skip to content

Don't set $MANPATH #1599

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Don't set $MANPATH #1599

wants to merge 1 commit into from

Conversation

abbeyj
Copy link

@abbeyj abbeyj commented Feb 26, 2025

The man pages aren't built anymore since cfengine/core#715 . The directory /var/cfengine/share/man does not exist as part of the package so it does not make sense to refer to it.

The man pages aren't built anymore since cfengine/core#715 .
The directory /var/cfengine/share/man does not exist as part of the package
so it does not make sense to refer to it.
@craigcomstock
Copy link
Contributor

@abbeyj thanks for the contribution! How did you find this?

@abbeyj
Copy link
Author

abbeyj commented Mar 4, 2025

A coworker of mine noticed that their $MANPATH was pointing at a nonexistent directory and asked why. I figured out that it was getting set by /etc/profile.d/cfengine3.sh. This file is part of the cfengine-community RPM but the man pages are not shipped as part of this RPM, or any other RPM that I can find. So I'm assuming that when the man pages were dropped, removal of this part of profile.sh was overlooked. It would be easy to miss as nothing will really be broken by leaving this in place. It will just waste a few cycles on every login and on every invocation of man.

@craigcomstock
Copy link
Contributor

A coworker of mine noticed that their $MANPATH was pointing at a nonexistent directory and asked why. I figured out that it was getting set by /etc/profile.d/cfengine3.sh. This file is part of the cfengine-community RPM but the man pages are not shipped as part of this RPM, or any other RPM that I can find. So I'm assuming that when the man pages were dropped, removal of this part of profile.sh was overlooked. It would be easy to miss as nothing will really be broken by leaving this in place. It will just waste a few cycles on every login and on every invocation of man.

Very good. Thanks for the explanation. I'll take a look around and try to get this merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants