in reply to Re^4: create-modulino.pl appears in a CPAN module Makefile.PL, and nukes the install retval
in thread create-modulino.pl appears in a CPAN module Makefile.PL, and nukes the install retval

From pryrt:

When I look at an example from the testers, like this one, I do notice that it says "Output from 'C:\Strawberry\c\bin\gmake.exe test':" -- that is, I don't think that the automated testers necessarily do the gmake install -- they might just do the gmake test ... in which case, they wouldn't see the gmake install failure, and thus wouldn't report that failure.

I will just echo that this is a fine job of investigating, good clear thinking and asking the right questions. I didn't occur to me that testers don't send in data on the results of (g)make install, so I was left puzzling about what was uniquely wrong with my setup.

One question now remained for me: where does create-modulino.pl come from? In other words, we've seen that the postamble shell code won't work on a MSWin box, but how does it work on Linux/Unix? So, I tried it out, and it's b0rken on Linux too, because create-modulino.pl doesn't exist:

destdir=; \
test -n "$destdir" && destdir="-d $destdir"; \
create-modulino.pl -m Module::ScanDeps::FindRequires \
-a find-requires $destdir -b /usr/local/bin
/bin/sh: 3: create-modulino.pl: not found
make: *** Makefile:1007: install Error 127

    — Soren

Sep 27, 2025 at 17:33 UTC

  • Comment on Re^5: create-modulino.pl appears in a CPAN module Makefile.PL, and nukes the install retval

Replies are listed 'Best First'.
Re^6: create-modulino.pl appears in a CPAN module Makefile.PL, and nukes the install retval
by pryrt (Abbot) on Sep 27, 2025 at 19:37 UTC
    CLI::Simple is one of the prereqs for Module::ScanDeps::Static . It installs the perl script create-modulino (with no .pl extension) in the bin/ when it install, as shown here. In the previous v0.0.9 of that distro, the bin directory included both the create-modulino and create-modulino.pl -- so with an older version of the CLI::Simple, that postamble in Module::ScanDeps::Static probably would have worked in a linux environment:

    Yep, I installed CLI::Simple in my Ubuntu setup, and then installed Module::ScanDeps::Static, and it failed for

    destdir=; \ test -n "$destdir" && destdir="-d $destdir"; \ create-modulino.pl -m Module::ScanDeps::FindRequires \ -a find-requires $destdir -b /home/pryrt/delme/bin /bin/sh: 3: create-modulino.pl: not found

    Whereas, if I install CLI::Simple@0.0.9 and then Module::ScanDeps::Static, it passed, including the install. So it's definitely caused by the upstream repo not including the .pl version of the script in the bin installation.

    The funny thing is, BIGFOOT is the owner of both Module::ScanDeps::Static and CLI::Simple, so should have noticed that changing the prereq would have influenced the postamble of the other distro.

    reported

      We were working on parallel investigations today, pryrt ;-) I made the same discoveries you reported above. BIGFOOT messed up ... there I said it ;-). But I know well that such things happen to the best of us.

      For those a little curious about this create-modulino.pl, but not curious enough to build CLI::Simple just to look at one script, I've set up a gist with that script.

          —Soren