#1 Santiize environment when building

open
nobody
None
5
2012-03-15
2012-03-15
Ed Avis
No

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.

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks