Comments (4)
Noted, but my first suspicion is that this is a problem with CPANPLUS. Can you run the Makefile.PL manually?
from test-file.
Hmm, yes, manual installation steps run smoothly and easily.
from test-file.
I was able to reproduce this on perl5.10.1 and CPANPLUS 0.9160. I've also been able to make it work by getting rid of:
-e use strict; BEGIN { my $old = select STDERR; $|++; select $old; $|++; $0 = shift(@ARGV); my $rv = do($0); die $@ if $@; }
The problem here is the do()
. The Makefile.PL here is a modulino (https://www.masteringperl.org/2015/01/makefile-pl-as-a-modulino/). If you load it as a module, it doesn't execute. You're supposed to run Makefile.PL as a script.
Starting in CPANPLUS 0.76, there was a perlwrapper
feature and it was apparently configurable. In CPANPLUS-0.9158, released this May after seven years of no updates, changed this to a constant. The cpanp_run_perl
script what used to be the value of perlwrapper
is basically the same thing as that command line.
CPANPLUS does this as a kludge to set auto flushing on the filehandles. I think there's probably a better way to do what it wants to do while avoiding the do
. Perhaps exec
.
I get too much benefit from my modulino approach, and neither cpan nor cpanm have this issue.
from test-file.
Fair enough. Thank you so much for the explanation!
from test-file.
Related Issues (17)
- Request for feature: dir_exists_ok HOT 2
- symlink_target_is_absolute_ok HOT 3
- Test::README Overwrites File From Test-MockObject HOT 6
- [PATCH] After the removal of cwd from @INC t/setup_common is not found. HOT 3
- Test::Manifest changes which tests run HOT 1
- Tests fail on some cygwin systems HOT 3
- Don't allow plain file tests to run on non-plain files HOT 4
- Mismatching license HOT 1
- Tests fails on Windows 10, MSYS2
- Documentation mentions non-existent package Test2::Tool::File HOT 2
- Test::File does not account for user names that are only numbers HOT 5
- Failed test 'file_mtime_lt_ok success works' HOT 2
- Request for feature: file_contains_ok HOT 7
- t\links.t on systems that support symlink but when current user is not allowed (Windows case) HOT 13
- Check file contents in utf8 or other encoding HOT 6
- Would you welcome merge for file_mtime_?_ok HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test-file.