htmlify_pods: account for empty prefix ($podroot)#96
Conversation
Do not pass a podroot argument to pod2html if $podroot is empty. $podroot (via
original_prefix('core')) is empty if perl is built with no prefix. An argument
of '--podroot=' with no value causes pod2html to fail.
That does not make sense, that should never happen AFAIK. Sounds like you're working around a bug elsewhere? Is this a Windows thing or something? |
|
I'm sure it's not common, but yes I am working around a problem. I came across this is my own distro, where I build perl (and everything else) without a prefix. I'm suggesting it here because I don't think it has any other impact on the code, and avoids the problem should it ever come up for anyone else. |
|
In re-reading I noticed I misunderstood part of your comment and my response wasn't very clear. Sorry about that. I missed the word "elsewhere", which changes my answer to "no, I believe the bug is here." I have been working around the problem (for quite a while) by skipping tests whenever M::B is installed. I'll try to reword in the hope I can be more clear. In the end, this is an edge case so I don't want to take too much of anyone's time. In my environment, system perl is built with an empty prefix ( When installing M::B and running tests, I found the problem to be here, where This patch fixed the problem for me, and the changes only affect the case of an empty In the other uses of I don't have enough of an understanding why it was chosen to break off prefix into a podroot arg, relativise the other paths in podpaths with the absolute path to blib. It was done in 876e97c to fix links in the generated html, where previously podroot was just |
Do not pass a podroot argument to pod2html if $podroot is empty. $podroot (via original_prefix('core')) is empty if perl is built with no prefix. An argument of '--podroot=' with no value causes pod2html to fail.