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

Carton doesn't pass PERL_CPANM_OPT? #203

Open
jwittkoski opened this issue Dec 17, 2015 · 3 comments
Open

Carton doesn't pass PERL_CPANM_OPT? #203

jwittkoski opened this issue Dec 17, 2015 · 3 comments

Comments

@jwittkoski
Copy link

If I have:

export PERL_CPANM_OPT='--configure-args=CCFLAGS="-I/some/path/include"'

when I do carton install and carton calls cpanm to install a module cpanm doesn't seem to see this setting.

If I install directly with cpanm it does.

@miyagawa
Copy link
Contributor

Carton overrides PERL_CPANM_OPT. There's currently no way to pass per-dist configuration flags in Carton.

@jwittkoski
Copy link
Author

So PR #199 would address this, correct? Although it would apply to every call to cpanm, not per-dist.

@jwittkoski
Copy link
Author

Ok, did some testing, #199 alone doesn't help because:

        $cmd = $self->append_args($cmd, 'configure') if $depth == 0;

And depth always seems to be > 0 even if the module is listed in cpanfile (that is, not a sub-dependency) so the configure-args are never appended.

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