Perl module installation is affected by the PERL_MB_OPT and PERL_MM_OPT environment variables. Users may set these to make modules install into their home directory (the 'cpan' tool encourages this and offers to add the lines to .bashrc automatically). However when building RPMs, you don't want files put into /home/... under the buildroot.
The spec file generated by cpanspec could sanitize the environment when building, I would suggest by removing all PERL* environment variables at least.
Alternatively, if you think that it is the user's responsibility to build packages with a clean environment, it would be great for cpanspec to print a warning when making the spec file if PERL_MB_OPT or PERL_MM_OPT are set.
Log in to post a comment.