-
Notifications
You must be signed in to change notification settings - Fork 7.2k
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
Save man files in /usr/share/man instead of /usr/local/share/man #23855
Conversation
Forcing rerun of CI |
@rzippo - I'm concerned about MacOS, wouldn't it be better to make this change for Linux only (especially since brew installs PowerShell in `/usr/local/Cellar') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this change should only be for Linux as MacOS brew installs in /usr/local
I agree with Jim. If our Linux packages are installing everything else to /usr/ not /usr/local, then the same should go for the man page. Which correspondingly means that on macOS where the "package manager" (brew) installs to /usr/local it should remain there...which, sidebar, did we never contribute (or did we attempt and it was refused) a formula to brew? I don't see powershell nor pwsh at https://github.com/Homebrew/homebrew-core/tree/master/Formula/p, and I only found our tap https://github.com/PowerShell/Homebrew-Tap/blob/master/Formula/powershell.rb.
|
I agree with this change for MacOS given your arguments, but I don't have a MacOS system to test with. Judging from the rest of the code, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks better
I would be happier to see some validation for this, but that doesn't block this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
📣 Hey @rzippo, how did we do? We would love to hear your feedback with the link below! 🗣️ 🔗 https://aka.ms/PSRepoFeedback |
@rzippo Thank you for your contribution! |
PR Summary
This PR fixes #13517, #16679, #19217, #23835.
The man files should go to
/usr/share/man
, not/usr/local/share/man
.The latter not only is against packaging policies, it also breaks on OSTree-based systems where the
/usr/local/share
location is not writable during package install.The fix was tested by building a 7.4.2 package (see this branch) and installing it on Aurora-DX.
PR Context
PR Checklist
.h
,.cpp
,.cs
,.ps1
and.psm1
files have the correct copyright headerWIP:
or[ WIP ]
to the beginning of the title (theWIP
bot will keep its status check atPending
while the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).