-
Notifications
You must be signed in to change notification settings - Fork 9
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
Without perl-doc installed snazzer --man
doesn't behave well
#49
Comments
It seems like the snazzer manpage display generation needs the The code to display the manpage in snazzer essentially boils down to a simple Currently investigating how this could result in source code display instead of command not found… |
Ok, if I replace Questions:
|
Sorry it's taken a while for me to reply @florianjacob
|
No worries, I now have an idea what's happening there. 😄 I found out that without
which is (very probably) the thing that's causing the error message. I guess there's some pipe in There's nothing we can do about this in our usage of Calling …
perldoc
if [ $? -eq 1 ]
printf "Calling perldoc returned 1. You're probably running Debian and are missing the perl-doc package for this function." >&2
exit 1
fi
… Of course this somewhat ugly and depends on the real perldoc never returning 1. I'm a little reluctant to add this code as a permanent workaround for what seems like a downstream packaging bug, though. It would be interesting to hear the Debian packager's stance to this. Note that this isn't snazzer-specific at all, you can actually reproduce this @jamiereid, in case you want to help @csirac and me out some more, |
I'm aware of the perl-doc limitation. I'm not sure we want to complicate snazzer here; perhaps this would be a problem best solved by doing proper releases with pre-compiled man pages. I think the actionable thing here for this bug is to ensure we're failing loudly during |
Would implementing something like:
cover the "failing loudly during make if the man pages can't be generated properly"? |
AFAIK the dummy pod2usage already exits non-zero, is that the case? We just want the "build" to fail if build dependencies are missing |
Strange thing is, at least on Debian Jessie, the That's lead me to think the problem is more around perl-doc missing and less around pod2usage. |
@jamiereid No, you're right. 😄 I found the same and tried to express that in #49 (comment) .
|
uname -a
=Linux 4.8.0-1-amd64 #1 SMP Debian 4.8.7-1 (2016-11-13) x86_64 GNU/Linux
Bash version 4.4.5(1)-release
Without
perl-doc
installed, when runningsnazzer --man
, the source code forsnazzer
is displayed. After closing (is itless
that's used?) a message is presented saying that "You need to install the perl-doc package to use this program".Expected behaviour: I believe it would be good to, if the dependency isn't there, gracefully fail to the info message instead of opening the source code.
The text was updated successfully, but these errors were encountered: