-
-
Notifications
You must be signed in to change notification settings - Fork 31
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
include manpages #65
include manpages #65
Conversation
from prebuilt kernel.org releases. This enables the --help option on all commands. fixes conda-forge#17
Hi! This is the friendly automated conda-forge-linting service. I wanted to let you know that I linted all conda-recipes in your PR ( Here's what I've got... For recipe:
|
@conda-forge-admin, please rerender |
I'm looking into the linting issue. |
Hi! This is the friendly automated conda-forge-webservice. I tried to re-render for you, but it looks like there was nothing to do. |
|
||
# Install manpages | ||
cp -r manpages/* $PREFIX/man |
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.
Shouldn't this be $PREFIX/share/man
?
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.
Well. That's a good question. I thought the default was $PREFIX/share/man
but I looked for other packages that have manpages and saw perl
is installing to $PREFIX/man
. I did determine that man
on my ubuntu vm will find $PREFIX/man
without MANPATH
needing to be set.
Another good question is should we create a recipe for man
so that we can configure it to correctly find manpages from $PREFIX/<wherever>
?
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.
See man man
(particularly the info on MANPATH_MAP
) and look at /private/etc/man.conf
. A comment from that file (on my Mac):
# If people ask for "man foo" and have "/dir/bin/foo" in their PATH
# and the docs are found in "/dir/man", then no mapping is required.
There are also some details at conda/conda#845
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.
Do you guys have the manifest from all packages indexed in some searchable location? If so, I'd be happy to look to see which packages have a man
directory and where they are putting it.
If you don't have such a searchable location across all packages, I can do a more brute force grind through them.
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.
@asmeurer The magical looking closely to PATH
only seems to work when MANPATH
is unset and you haven't passed in -M
on the cmdline. Perhaps a man
package could pre-pend $PREFIX/man
if MANPATH
is set, otherwise, leave it unset?
I think what I have in this PR is at least working better than not having the manpages at all.
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'm also realizing that the only reasons why I have MANPATH
set are really ancient, predate conda and I'll be better off if I stop setting it and let man
just look at PATH
.
This morning, I confirmed that my system man
on RHEL6 does find manpages in $PREFIX/man
without MANPATH
but does not find $PREFIX/share/man
. I also see that there are conda packages that install manpages into $PREFIX/share/man
and as I mentioned earlier, there are packages that install into $PREFIX/man
Standardizing conda-forge on a manpage install path and updating the impacted recipes seems bigger than this PR. I'd be happy to work on that. @asmeurer and @scopatz, do you guys think we could go ahead and merge 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.
From man man
:
If you don't specify an explicit path list with -M or MANPATH, man develops its own path list based on the contents of the configura-
tion file /private/etc/man.conf. The MANPATH statements in the configuration file identify particular directories to include in the
search path.
So it's by design that setting MANPATH or -M overrides the defaults (it's not like PYTHONPATH which appends the defaults).
Looking at the recipe linting issue, this is the traceback:
This looks like the recipe-linter is trying to read the meta.yaml without doing the jinja preprocessing. Is that the intended way for the linter to work? If so, I'll need to make the Windows build look like a multi-source build even though it really isn't. |
conda-smithy reads meta.yaml without applying the preprocessing selectors. For this to work, we need to make the windows look like a multiple-source item even though it will only have a single source after the proprocessing selectors are applied. Also needed to cleanup spacing before preprocessing selectors.
Hi! This is the friendly automated conda-forge-linting service. I just wanted to let you know that I linted all conda-recipes in your PR ( |
I pushed another commit that makes |
@conda-forge-admin, please rerender |
Hi! This is the friendly automated conda-forge-webservice. I tried to re-render for you, but it looks like there was nothing to do. |
The Yes. I should. Looks like |
not all platforms with have $PREFIX/man created by dependencies and we shouldn't rely on the deps to create the directory anyway.
@timsnyder, let us know when this is ready for review again! |
Thanks! |
@timsnyder, @scopatz hi! I have just done |
@phil-blain, please open a new issue. Edit: Raised as issue ( #66 ). |
I just ran |
Please raise a new issue |
from prebuilt kernel.org releases on
[not win]
platforms. This enables the --helpoption on all commands.
fixes #17
Checklist
conda-smithy
(Use the phrase@conda-forge-admin, please rerender
in a comment in this PR for automated rerendering)