stevan / promises-perl

An implementation of Promises in Perl
31 stars 29 forks source link

Promises-1.02 install fails on Ubuntu 18.04 plenv #88

Closed douglasdd closed 4 years ago

douglasdd commented 4 years ago

Perhaps similar to https://github.com/stevan/promises-perl/issues/87

I've tried and failed to instal AnyEvent-HTTP-2.24 then Promises-1.02 into two different fresh perl installations (using the plenv binary manager: https://github.com/tokuhirom/plenv).

Attached:

yanick commented 4 years ago

What is the output of t/031-deferred-AE.t ?

yanick commented 4 years ago

Looks like the line my $w = AnyEvent->timer( after => 0, cb => sub{ $cv->send } ); is not playing ball, whereas setting the after to be 1 works. Hmmm...

brianwisti commented 4 years ago

I got bit by this too. Same error output.

Build error

$ cpanm -V Promises
...
t/031-deferred-AE.t .............. 1/? 
#   Failed test '... run asynchronously'
#   at t/031-deferred-AE.t line 26.
#          got: '0'
#     expected: '1'
# Looks like you failed 1 test of 2.
t/031-deferred-AE.t .............. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 
t/031-deferred-io-async.t ........ ok   
t/032-deferred-AnyEvent.t ........ 1/? 
#   Failed test '... run asynchronously'
#   at t/032-deferred-AnyEvent.t line 26.
#          got: '0'
#     expected: '1'
# Looks like you failed 1 test of 2.
t/032-deferred-AnyEvent.t ........ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests 
...
Test Summary Report
-------------------
t/031-deferred-AE.t            (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
t/032-deferred-AnyEvent.t      (Wstat: 256 Tests: 2 Failed: 1)
  Failed test:  2
  Non-zero exit status: 1
Files=36, Tests=170, 12 wallclock secs ( 0.16 usr  0.03 sys +  2.65 cusr  0.33 csys =  3.17 CPU)
Result: FAIL
Failed 2/36 test programs. 2/170 subtests failed.
make: *** [Makefile:949: test_dynamic] Error 255
FAIL
! Installing Promises failed. See /home/randomgeek/.cpanm/work/1578272281.32148/build.log for details. Retry with --force to force install it.

System

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Pop!_OS 19.10
Release:        19.10
Codename:       eoan
$ perl --version

This is perl 5, version 30, subversion 0 (v5.30.0) built for x86_64-linux
(with 1 registered patch, see perl -V for more detail)
$ perl -V | grep -i patch
  Locally applied patches:
    Devel::PatchPerl 1.52
yanick commented 4 years ago

Patch on tests written. Release should happen sometime tonight

brianwisti commented 4 years ago

Yay, thanks!

yanick commented 4 years ago

aaaand it's on its way to CPAN! \o/