Subject: | Presence of random 0-returning program named 'cc' in PATH adds hard dep on Variable::Magic |
This is an issue just like https://rt.cpan.org/Ticket/Display.html?id=113682, except in your case the optional xs prereq is injected.
Attached a complete session log.
Contact leont for advice how to use ExtUtils::HasCompiler (which does not have this problem).
Subject: | bheos_argh.txt |
rabbit@Ahasver:~$ cpanm --look --dev B::Hooks::EndOfScope
--> Working on B::Hooks::EndOfScope
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/B-Hooks-EndOfScope-0.16-TRIAL.tar.gz ... OK
Entering /home/rabbit/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16 with /bin/bash
rabbit@Ahasver:~/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16$ ln -sf /bin/true ~/bin/cc
rabbit@Ahasver:~/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16$ ls -l $(which cc)
lrwxrwxrwx 1 rabbit rabbit 9 Apr 11 18:47 /home/rabbit/bin/cc -> /bin/true
rabbit@Ahasver:~/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for B::Hooks::EndOfScope
Writing MYMETA.yml and MYMETA.json
rabbit@Ahasver:~/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16$ grep 'PREREQ.*Magic' Makefile
# PREREQ_PM => { warnings=>q[0], File::Glob=>q[0], ExtUtils::MakeMaker=>q[0], File::Spec=>q[0], strict=>q[0], Test::More=>q[0.89], Sub::Exporter::Progressive=>q[0.001006], IPC::Open2=>q[0], Module::Implementation=>q[0.05], Variable::Magic=>q[0.48] }
rabbit@Ahasver:~/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16$ ln -sf /bin/false ~/bin/cc
rabbit@Ahasver:~/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16$ ls -l $(which cc)
lrwxrwxrwx 1 rabbit rabbit 10 Apr 11 18:48 /home/rabbit/bin/cc -> /bin/false
rabbit@Ahasver:~/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16$ perl Makefile.PL
Generating a Unix-style Makefile
Writing Makefile for B::Hooks::EndOfScope
Writing MYMETA.yml and MYMETA.json
rabbit@Ahasver:~/.cpanm/work/1460393220.24298/B-Hooks-EndOfScope-0.16$ grep 'PREREQ.*Magic' Makefile