Subject: | CentOS 6 + 7: gzip: invalid option -- 'k' |
t/dist/basic.t fails on CentOS 6 + 7, possibly because the gzip installed there does not know the -k option:
...
gzip: invalid option -- 'k'
Try `gzip --help' for more information.
# Failed test 'xz dist exists'
# at t/dist/basic.t line 84.
# Failed test 'no errors'
# at t/dist/basic.t line 86.
# got: '"gzip" unexpectedly returned exit value 1 at /home/cpansand/.cpan/build/2020010901/App-DocKnot-3.02-0/blib/lib/App/DocKnot/Dist.pm line 168.
# '
# expected: ''
fatal: sent error to the client: git upload-archive: archiver died with error
remote: fatal: '/var/tmp/cpansmoker-1023/2020010901/CY5_LGDYbR/dist' does not appear to be a git repository[K
remote: git upload-archive: archiver died with error
/bin/tar: This does not look like a tar archive
/bin/tar: Exiting with failure status due to previous errors
# Failed test 'correct error for extra file'
# at t/dist/basic.t line 95.
# got: 'git archive --remote=/var/tmp/cpansmoker-1023/2020010901/CY5_LGDYbR/dist --prefix=Empty/ master | tar xf - failed with status 512
# '
# expected: '1 file missing from distribution
# '
# Failed test 'output mentions the right file'
# at t/dist/basic.t line 96.
# ''
# doesn't match '(?^umsx: some-file )'
fatal: sent error to the client: git upload-archive: archiver died with error
remote: fatal: '/var/tmp/cpansmoker-1023/2020010901/CY5_LGDYbR/dist' does not appear to be a git repository[K
remote: git upload-archive: archiver died with error
/bin/tar: This does not look like a tar archive
/bin/tar: Exiting with failure status due to previous errors
# Failed test 'correct error for two files'
# at t/dist/basic.t line 108.
# got: 'git archive --remote=/var/tmp/cpansmoker-1023/2020010901/CY5_LGDYbR/dist --prefix=Empty/ master | tar xf - failed with status 512
# '
# expected: '2 files missing from distribution
# '
# Failed test 'output mentions the first file'
# at t/dist/basic.t line 109.
# ''
# doesn't match '(?^umsx: some-file )'
# Failed test 'output mentions the other file'
# at t/dist/basic.t line 110.
# ''
# doesn't match '(?^umsx: another-file )'
# Looks like you failed 7 tests of 12.
t/dist/basic.t ..............
Dubious, test returned 7 (wstat 1792, 0x700)
Failed 7/12 subtests
...