Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpanm can't install Time::Out because cpanm packs too old of version.pm #682

Open
djerius opened this issue Oct 29, 2024 · 5 comments
Open

Comments

@djerius
Copy link

djerius commented Oct 29, 2024

cpanm v1.7047 packages version v0.9912.

Time::Out requires version v0.9915:

$ cpanm Time::Out
Error evaling version line ' my $dummy = q#  Hide from _packages_inside()
    #; package Module::Metadata::_version::p1;
    use version;
    sub {
      local $VERSION;
      use version 0.9915; our $VERSION = version->declare( '1.0.0' );;
      $VERSION
    };
  ' in /home/dj/.plenv/versions/5.40/lib/perl5/site_perl/5.40.0/Time/Out.pm: version version 0.9915 required--this is only version 0.9912 at (eval 48) line 6.
BEGIN failed--compilation aborted at (eval 48) line 6, <$handle> line 8.

failed to build version sub for /home/dj/.plenv/versions/5.40/lib/perl5/site_perl/5.40.0/Time/Out.pm at /home/dj/.plenv/versions/5.40/bin/cpanm line 119.
$ cpanm --version
cpanm (App::cpanminus) version 1.7047 (/home/dj/.plenv/versions/5.40/bin/cpanm)
perl version 5.040000 (/home/dj/.plenv/versions/5.40/bin/perl5.40.0)

  %Config:
    archname=x86_64-linux
    installsitelib=/home/dj/.plenv/versions/5.40/lib/perl5/site_perl/5.40.0
    installsitebin=/home/dj/.plenv/versions/5.40/bin
    installman1dir=/home/dj/.plenv/versions/5.40/man/man1
    installman3dir=/home/dj/.plenv/versions/5.40/man/man3
    sitearchexp=/home/dj/.plenv/versions/5.40/lib/perl5/site_perl/5.40.0/x86_64-linux
    sitelibexp=/home/dj/.plenv/versions/5.40/lib/perl5/site_perl/5.40.0
    archlibexp=/home/dj/.plenv/versions/5.40/lib/perl5/5.40.0/x86_64-linux
    privlibexp=/home/dj/.plenv/versions/5.40/lib/perl5/5.40.0
  %ENV:
    PERL_CPANM_OPT=--cascade-search --mirror-only  --mirror /home/dj/Work/darkpan --mirror http://www.cpan.org
    PERL_CPAN_MIRROR_TINY_BASE=/home/dj/Work/darkpan
    PERL_DARKPAN=/home/dj/Work/darkpan
  @INC:
    FatPacked::94456193634928=HASH(0x55e84bde5270)
    /home/dj/.plenv/versions/5.40/lib/perl5/site_perl/5.40.0/x86_64-linux
    /home/dj/.plenv/versions/5.40/lib/perl5/site_perl/5.40.0
    /home/dj/.plenv/versions/5.40/lib/perl5/5.40.0/x86_64-linux
    /home/dj/.plenv/versions/5.40/lib/perl5/5.40.0
@miyagawa
Copy link
Owner

interestingly this succeeds with cpanm 1.7046 for me. Upgraded to 1.7047 locally and it started failing.

@djerius
Copy link
Author

djerius commented Oct 29, 2024

1.7047 is the version on CPAN; maybe the version on CPAN just needs to be upgraded?

@miyagawa
Copy link
Owner

Actually, upgrading and then downgrading to 1.7046 fails, so something else should be going on.

@djerius
Copy link
Author

djerius commented Oct 29, 2024

FWIW, v1.9022 (latest on github) works.

@miyagawa
Copy link
Owner

TBH I wish the distribution doesn't use that syntax but it's unfortunately legal to do so and it's fixed in 1.7048.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants