[
https://issues.apache.org/jira/browse/LUCY-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15704835#comment-15704835
]
Nick Wellnhofer commented on LUCY-316:
--------------------------------------
Our .pod files are autogenerated. In order to make them available on sites like
search.cpan.org or metacpan.org, we have to build them before creating the CPAN
tarball. When building the distro, the .pod files are generated again. But the
.pod generator in Clownfish::CFC tries to be smart and only writes out files if
they changed. So in many cases, there's no attempt to overwrite the files.
For Lucy 0.6.0.3, I created the .pod files with a local version of
Clownfish::CFC containing a fix that isn't in the current CPAN version yet. So
many of the .pod files would get rewritten, triggering the bug.
Possible solutions:
* Fiddle with permissions. Highly platform-dependent.
* Don't regenerate POD in the CPAN build at all. The CPAN tarball shouldn't be
used for development, so this should be OK.
* Overwrite files by deleting the old file first.
Option 2 seems like the right choice to me, maybe with option 3 for good
measure.
> Lucy-0.6.0.3 build failure
> --------------------------
>
> Key: LUCY-316
> URL: https://issues.apache.org/jira/browse/LUCY-316
> Project: Lucy
> Issue Type: Bug
> Components: Perl bindings
> Environment: FreeBSD, Linux, various perl versions (5.8.9 .. 5.25.6)
> Reporter: Slaven Rezic
>
> A "permission denied" error happens while trying to build the distribution
> with CPAN.pm:
> {noformat}
> Output from './Build':
> Couldn't open 'lib/Lucy/Index/DataReader.pod': Zugriff verweigert at
> /usr/perl5.16.3t/lib/site_perl/5.16.3/amd64-freebsd-thread-multi/Clownfish/CFC/Perl/Build.pm
> line 322.
> Building Lucy
> Parsing Clownfish files...
> Writing Clownfish autogenerated files...
> Writing typemap...
> Writing POD...
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)