Git Product home page Git Product logo

Comments (4)

briandfoy avatar briandfoy commented on July 23, 2024

Noted, but my first suspicion is that this is a problem with CPANPLUS. Can you run the Makefile.PL manually?

from test-file.

martinthurn-LFT avatar martinthurn-LFT commented on July 23, 2024

Hmm, yes, manual installation steps run smoothly and easily.

from test-file.

briandfoy avatar briandfoy commented on July 23, 2024

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.

martinthurn-LFT avatar martinthurn-LFT commented on July 23, 2024

Fair enough. Thank you so much for the explanation!

from test-file.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.