|CC:||rt-cpan [...] trout.me.uk|
|Subject:||The XS part of Cwd ought to be optional|
There is a number of different "can we build XS" checks available in the wild currently. All of them end up simply relying on ExtUtils::CBuilder->new->has_compiler (with various fallbacks when EU::CB is not available, most of them plain suck). While EU::CB itself properly installs and tests in an environment without a compiler, it depends on a specific version of File::Spec, not available on older perls. In that line of events, File::Spec itself is a pure-perl module, but Cwd has an XS portion, which PathTools insists on building, even though a PP falback is available. As a result if someone with a gcc-less system tries to install a module which configure-requires EU::CB on e.g. perl 5.8.5 using something that does respect configure-requires (e.g. cpanminus) - the installation will ultimately fail, without any clear workarounds. Is it possible to make the lack of XS a soft-failure for PathTools?