cpm icon indicating copy to clipboard operation
cpm copied to clipboard

IO::Tty 1.17 exceeds 60 seconds for configure under Perl 5.37.12

Open rwp0 opened this issue 2 years ago • 0 comments

First of all, thanks for CPM, it's fast and user-friendly (minimal, colorful etc).

This is not a bug, just reporting my findings.

NOT A BUG

IO::Tty being a required dependency for Dist::Zilla failed to be installed.

I switched to the work directory and run perl Makefile.PL manually to understand and detect that:

2023-06-04T18:38:01,44498,IO-Tty-1.17| +B0 +B110 +B115200 +B1200 +B134 +B150 -B153600 +B1800 +B19200 +B200 +B230400 +B2400 +B300 -B307200 +B38400 +B460800 +B4800 +B50 +B57600 +B600 +B75 -B76800 +B9600 +BRKINT +BS0 +BS1 +BSDLY +CBAUD -CBAUDEXT +CBRK -CCTS_OFLOW -CDEL +CDSUSP +CEOF +CEOL -CEOL2 +CEOT +CERASE -CESC +CFLUSH +CIBAUD -CIBAUDEXT +CINTR +CKILL +CLNEXT +CLOCAL -CNSWTCH -CNUL +CQUIT +CR0 +CR1 +CR2 +CR3 +CRDLY +CREAD +CRPRNT +CRTSCTS -CRTSXOFF -CRTS_IFLOW +CS5 +CS6 +CS7 +CS8 +CSIZE +CSTART +CSTOP +CSTOPB +CSUSP -CSWTCH +CWERASE -DEFECHO -DIOC -DIOCGETP -DIOCSETP -DOSMODE +ECHO +ECHOCTL +ECHOE +ECHOK +ECHOKE +ECHONL +ECHOPRT +EXTA +EXTB +FF0 +FF1 +FFDLY -FIORDCHK +FLUSHO +HUPCL +ICANON +ICRNL +IEXTEN +IGNBRK +IGNCR +IGNPAR +IMAXBEL +INLCR +INPCK +ISIG +ISTRIP +IUCLC +IXANY +IXOFF +IXON -KBENABLED -LDCHG -LDCLOSE -LDDMAP -LDEMAP -LDGETT -LDGMAP -LDIOC -LDNMAP -LDOPEN -LDSETT -LDSMAP -LOBLK +NCCS +NL0 +NL1 +NLDLY +NOFLSH +OCRNL +OFDEL +OFILL +OLCUC +ONLCR +ONLRET +ONOCR +OPOST -PAGEOUT +PARENB -PAREXT +PARMRK +PARODD +PENDIN -RCV1EN -RTS_TOG +TAB0 +TAB1 +TAB2 +TAB3 +TABDLY -TCDSET +TCFLSH +TCGETA +TCGETS +TCIFLUSH +TCIOFF +TCIOFLUSH +TCION +TCOFLUSH +TCOOFF +TCOON +TCSADRAIN +TCSAFLUSH +TCSANOW +TCSBRK +TCSETA +TCSETAF +TCSETAW -TCSETCTTY +TCSETS +TCSETSF +TCSETSW +TCXONC -TERM_D40 -TERM_D42 -TERM_H45 -TERM_NONE -TERM_TEC -TERM_TEX -TERM_V10 -TERM_V61 +TIOCCBRK -TIOCCDTR +TIOCCONS +TIOCEXCL -TIOCFLUSH -TIOCGETC +TIOCGETD -TIOCGETP -TIOCGLTC +TIOCGPGRP +TIOCGSID +TIOCGSOFTCAR +TIOCGWINSZ -TIOCHPCL -TIOCKBOF -TIOCKBON -TIOCLBIC -TIOCLBIS -TIOCLGET -TIOCLSET +TIOCMBIC +TIOCMBIS
2023-06-04T18:38:01,44498,IO-Tty-1.17| -> FAIL Timed out (> 60s).
2023-06-04T18:38:01,44498,IO-Tty-1.17| Failed to configure distribution

And then searched for timeout string in the manual page.

cpm install Task::BeLike::RWP --configure-timeout=180
             --configure-timeout=sec, --build-timeout=sec, --test-timeout=sec
               specify configure/build/test timeout second, default: 60sec, 3600sec, 1800sec

So I'm thinking may be 60 seconds is not good as default and should be increased to 90 or more?

I can understand that it's set there for speed, but such a necessary module failing the whole distribution install in an Intel i7 11th Gen/32 GB PC with very low load is somewhat shocking me.

This may be due to the fact that Perl seems to be noticably slower in Windows (even under WSL) in comparison to Linux.

Thanks

rwp0 avatar Jun 04 '23 17:06 rwp0