Skip to content
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

Specify $ENV{PATH} consistency with @INC #1

Open
dolmen opened this issue Mar 24, 2012 · 5 comments
Open

Specify $ENV{PATH} consistency with @INC #1

dolmen opened this issue Mar 24, 2012 · 5 comments

Comments

@dolmen
Copy link
Member

dolmen commented Mar 24, 2012

This is a general CPAN client spec issue, not specific to Build.PL.

In the environment variable section something must be said about $ENV{PATH}: it must be consistent with @INC.

I'm writing this because some packages fail to install because the CPAN client has modified $ENV{PERL5LIB} to add some temporary lib paths, but did not modify PATH to add the bin or script dirs. This cause problems for distributions that rely on Perl scripts instead of modules, as we can get trouble if there is a mismatch between the script and its supporting modules (example: running an older script with the newer modules, or finding the module but not the newer script).

Here is an example issue: https://rt.cpan.org/Ticket/Display.html?id=75376

@dagolden
Copy link

2012/3/24 Olivier Mengué
[email protected]:

In the environment variable section something must be said about $ENV{PATH}: it must be consistent with @inc.

That's a good point. I'll bring it up in Paris at the QA hackathon.

David

@Leont
Copy link
Member

Leont commented Mar 26, 2012

Yeah, I had realized this before, but had never seen actual problems because of it. The same goes for manpaths, though that's unlikely to cause any issues.

@dolmen
Copy link
Member Author

dolmen commented Mar 26, 2012

@dagolden I will be at the hackathon.

@dagolden
Copy link

Awesome. Could you please put this issue on the wiki projects page?

David

@dolmen
Copy link
Member Author

dolmen commented Mar 26, 2012

Already done, in the "Build.PL" and "Misc CPAN client stuff" section. You are invited to edit the wiki page (you have to login with your Act credentials).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants