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

Already on GitHub? Sign in to your account

Competely fails to install (perl 5.12.2) (managed by perlbrew) #143

Closed
frioux opened this Issue Nov 22, 2010 · 5 comments

Comments

Projects
None yet
5 participants

frioux commented Nov 22, 2010

I'm using cpanm to install the latest ack. It's failing every single test. Sadly I cannot include the entire log as it is 168K :-) I'll include it partially here, and if you need more feel free to contact me.

`cpanm (App::cpanminus) 1.1002 on perl 5.012002 built for i686-linux
Work directory is /home/frew/.cpanm/work/1290458803.18503
You have make /usr/bin/make
You have LWP 5.837
You have /bin/tar: tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
--> Working on P/PE/PETDANCE/ack-1.94.tar.gz
Fetching http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/ack-1.94.tar.gz
-> OK
Unpacking ack-1.94.tar.gz
Entering ack-1.94
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.56)
Configuring ack-1.94
Running Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for ack
-> OK
Finding PREREQ from Makefile ...
Checking if you have Test::More 0 ... Yes (0.96)
Checking if you have Getopt::Long 0 ... Yes (2.38)
Checking if you have Test::Harness 2.5 ... Yes (3.22)
Checking if you have Term::ANSIColor 0 ... Yes (3.00)
Checking if you have Pod::Usage 0 ... Yes (1.36)
Checking if you have File::Next 0.4 ... Yes (1.06)
Checking if you have File::Basename 0 ... Yes (2.78)
Building and testing ack-1.94
cp Ack.pm blib/lib/App/Ack.pm
cp Repository.pm blib/lib/App/Ack/Repository.pm
cp Plugin.pm blib/lib/App/Ack/Plugin.pm
cp Resource.pm blib/lib/App/Ack/Resource.pm
cp Basic.pm blib/lib/App/Ack/Plugin/Basic.pm
/home/frew/perl5/perlbrew/perls/perl-5.12.2/bin/perl squash ack-base File::Next Ack.pm Repository.pm Resource.pm Basic.pm > ack
Reading ack-base
Reading /home/frew/perl5/perlbrew/perls/perl-5.12.2/lib/site_perl/5.12.2/File/Next.pm
Reading Ack.pm
Reading Repository.pm
Reading Resource.pm
Reading Basic.pm
chmod 0755 ack
/home/frew/perl5/perlbrew/perls/perl-5.12.2/bin/perl -T -c ack
ack syntax OK
/home/frew/perl5/perlbrew/perls/perl-5.12.2/bin/perl -T ack --noenv --help > ack-help.txt || perl -e0
/home/frew/perl5/perlbrew/perls/perl-5.12.2/bin/perl -T ack --noenv --help=types > ack-help-types.txt || perl -e0
/home/frew/perl5/perlbrew/perls/perl-5.12.2/bin/perl -T ack --noenv --help=dirs > ack-help-dirs.txt || perl -e0
cp ack blib/script/ack
/home/frew/perl5/perlbrew/perls/perl-5.12.2/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/ack
Manifying blib/man1/ack.1
PERL_DL_NONLAZY=1 /home/frew/perl5/perlbrew/perls/perl-5.12.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Testing App::Ack 1.94, File::Next 1.06, Perl 5.012002, /home/frew/perl5/perlbrew/perls/perl-5.12.2/bin/perl
t/00-load.t ............... ok

#   Failed test 'Should have no output to stderr: ack Sue -1 -h --text t/text'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Ignoring 1 argument on the command-line while acting as a filter.

#   Failed test 'Looking for first instance of Sue!'
#   at t/ack-1.t line 22.
# +----+-----+----+---------------------------------------------------+
# | Elt|Got  | Elt|Expected                                           |
# +----+-----+----+---------------------------------------------------+
# *   0|[]   *   0|[                                                  *
# |    |     *   1|  'Was before he left, he went and named me Sue.'  *
# |    |     *   2|]                                                  *
# +----+-----+----+---------------------------------------------------+

#   Failed test 'Should have no output to stderr: ack Sue -1 -h -v --text t/text/boy-named-sue.txt'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Ignoring 1 argument on the command-line while acting as a filter.

#   Failed test 'Looking for first non-match'
#   at t/ack-1.t line 35.
# +----+-----+----+-----------------------------------------------+
# | Elt|Got  | Elt|Expected                                       |
# +----+-----+----+-----------------------------------------------+
# *   0|[]   *   0|[                                              *
# |    |     *   1|  'Well, my daddy left home when I was three'  *
# |    |     *   2|]                                              *
# +----+-----+----+-----------------------------------------------+

#   Failed test 'Should have no output to stderr: ack -1 -f t/swamp'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Can't use -f when acting as a filter.

#   Failed test 'Should only get one file back'
#   at t/ack-1.t line 44.
#          got: '0'
#     expected: '1'
Use of uninitialized value $this in pattern match (m//) at t/ack-1.t line 45.

#   Failed test 'One of the files from the swamp'
#   at t/ack-1.t line 45.
#                   undef
#     doesn't match '(?-xism:^t\/swamp)'

#   Failed test 'Should have no output to stderr: ack -1 -g Makefile t/'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Can't use -f when acting as a filter.

#   Failed test 'Should only get one file back from Makefile'
#   at t/ack-1.t line 56.
#          got: '0'
#     expected: '1'
Use of uninitialized value $this in pattern match (m//) at t/ack-1.t line 57.

#   Failed test 'The one file matches one of the two Makefile files'
#   at t/ack-1.t line 57.
#                   undef
#     doesn't match '(?-xism:^t\/swamp\/Makefile(\.PL)?$)'
# Looks like you failed 10 tests of 10.
t/ack-1.t .................
Dubious, test returned 10 (wstat 2560, 0xa00)
Failed 10/10 subtests

#   Failed test 'Should have no output to stderr: ack -f -a t/etc'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Can't use -f when acting as a filter.

#   Failed test 'File lists match'
#   at t/ack-a.t line 30.
# +----+-----+----+---------------------------------+
# | Elt|Got  | Elt|Expected                         |
# +----+-----+----+---------------------------------+
# *   0|[]   *   0|[                                *
# |    |     *   1|  't/etc/buttonhook.html.xxx',   *
# |    |     *   2|  't/etc/buttonhook.noxml.xxx',  *
# |    |     *   3|  't/etc/buttonhook.rfc.xxx',    *
# |    |     *   4|  't/etc/buttonhook.rss.xxx',    *
# |    |     *   5|  't/etc/buttonhook.xml.xxx',    *
# |    |     *   6|  't/etc/shebang.empty.xxx',     *
# |    |     *   7|  't/etc/shebang.foobar.xxx',    *
# |    |     *   8|  't/etc/shebang.php.xxx',       *
# |    |     *   9|  't/etc/shebang.pl.xxx',        *
# |    |     *  10|  't/etc/shebang.py.xxx',        *
# |    |     *  11|  't/etc/shebang.rb.xxx',        *
# |    |     *  12|  't/etc/shebang.sh.xxx'         *
# |    |     *  13|]                                *
# +----+-----+----+---------------------------------+
# Looks like you failed 2 tests of 2.
t/ack-a.t .................
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests

#   Failed test 'Should have no output to stderr: ack -f --binary t'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Can't use -f when acting as a filter.

#   Failed test 'Looking for binary'
#   at t/ack-binary.t line 27.
# +----+-----+----+------------------------------+
# | Elt|Got  | Elt|Expected                      |
# +----+-----+----+------------------------------+
# *   0|[]   *   0|[                             *
# |    |     *   1|  't/etc/shebang.empty.xxx',  *
# |    |     *   2|  't/swamp/moose-andy.jpg',   *
# |    |     *   3|  't/swamp/perl.tar.gz',      *
# |    |     *   4|  't/swamp/solution8.tar'     *
# |    |     *   5|]                             *
# +----+-----+----+------------------------------+

#   Failed test 'Should have no output to stderr: ack -a sRGB t/swamp'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Ignoring 1 argument on the command-line while acting as a filter.

#   Failed test 'Looking for binary'
#   at t/ack-binary.t line 40.
# +----+-----+----+------------------------------------------------+
# | Elt|Got  | Elt|Expected                                        |
# +----+-----+----+------------------------------------------------+
# *   0|[]   *   0|[                                               *
# |    |     *   1|  'Binary file t/swamp/moose-andy.jpg matches'  *
# |    |     *   2|]                                               *
# +----+-----+----+------------------------------------------------+
# Looks like you failed 4 tests of 4.
t/ack-binary.t ............
Dubious, test returned 4 (wstat 1024, 0x400)
Failed 4/4 subtests

#   Failed test 'Should have no output to stderr: ack religion -i -a -l t/text'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Can't use -l when acting as a filter.

#   Failed test 'Looking for religion with -l'
#   at t/ack-c.t line 22.
# +----+-----+----+--------------------------------+
# | Elt|Got  | Elt|Expected                        |
# +----+-----+----+--------------------------------+
# *   0|[]   *   0|[                               *
# |    |     *   1|  't/text/science-of-myth.txt'  *
# |    |     *   2|]                               *
# +----+-----+----+--------------------------------+

#   Failed test 'Should have no output to stderr: ack religion -a -L t/text'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Can't use -l when acting as a filter.

#   Failed test 'Looking for religion with -L'
#   at t/ack-c.t line 40.
# +----+-----+----+-------------------------------------+
# | Elt|Got  | Elt|Expected                             |
# +----+-----+----+-------------------------------------+
# *   0|[]   *   0|[                                    *
# |    |     *   1|  't/text/4th-of-july.txt',          *
# |    |     *   2|  't/text/boy-named-sue.txt',        *
# |    |     *   3|  't/text/freedom-of-choice.txt',    *
# |    |     *   4|  't/text/me-and-bobbie-mcgee.txt',  *
# |    |     *   5|  't/text/shut-up-be-happy.txt'      *
# |    |     *   6|]                                    *
# +----+-----+----+-------------------------------------+

#   Failed test 'Should have no output to stderr: ack religion -a -l -v t/text'
#   at t/Util.pm line 64.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Can't use -l when acting as a filter.

#   Failed test 'Looking for religion with -l -v'
#   at t/ack-c.t line 40.
# +----+-----+----+-------------------------------------+
# | Elt|Got  | Elt|Expected                             |
# +----+-----+----+-------------------------------------+
# *   0|[]   *   0|[                                    *
# |    |     *   1|  't/text/4th-of-july.txt',          *
# |    |     *   2|  't/text/boy-named-sue.txt',        *
# |    |     *   3|  't/text/freedom-of-choice.txt',    *
# |    |     *   4|  't/text/me-and-bobbie-mcgee.txt',  *
# |    |     *   5|  't/text/shut-up-be-happy.txt'      *
# |    |     *   6|]                                    *
# +----+-----+----+-------------------------------------+`

etc

doy commented Mar 1, 2011

I just noticed this too - the issue isn't 5.12.2 or cpanm, it's the fact that cpanm can take lists of modules to install from STDIN (I'm guessing you were running something like cpan-outdated | cpanm), and this messes up ack's pipe detection (I guess it inherits STDIN and such from cpanm?) For what it's worth, cpan-outdated | xargs cpanm works fine.

frioux commented Mar 1, 2011

Ah, thanks doy, now I can actually update (-:

zakame commented Sep 21, 2011

Just ran into this too. Another workaround is to install App::Ack manually (cpanm App::Ack). @doy++

holybit commented Dec 18, 2012

I am basically seeing the same thing. Having a problem installing App::Ack which is part of a dist's prereqs (FYI - META.json "runtime" : { "requires" : { "App::Ack" : "0", …) with cpanm. However, just about all the tests fail.

/usr/local/perlbrew/perls/perl-5.14.2/bin/perl -T -c ack
ack syntax OK
/usr/local/perlbrew/perls/perl-5.14.2/bin/perl -T ack --noenv --help > ack-help.txt || perl -e0
/usr/local/perlbrew/perls/perl-5.14.2/bin/perl -T ack --noenv --help=types > ack-help-types.txt || perl -e0
/usr/local/perlbrew/perls/perl-5.14.2/bin/perl -T ack --noenv --help=dirs > ack-help-dirs.txt || perl -e0
cp ack blib/script/ack
/usr/local/perlbrew/perls/perl-5.14.2/bin/perl -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/ack
Manifying blib/man1/ack.1
PERL_DL_NONLAZY=1 /usr/local/perlbrew/perls/perl-5.14.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
# Testing App::Ack 1.96, File::Next 1.10, Perl 5.014002, /usr/local/perlbrew/perls/perl-5.14.2/bin/perl
t/00-load.t ............... ok

#   Failed test 'Should have no output to stderr: ack Sue -1 -h --text t/text'
#   at t/Util.pm line 65.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Ignoring 1 argument on the command-line while acting as a filter.

#   Failed test 'Looking for first instance of Sue!'
#   at t/ack-1.t line 22.
# +----+-----+----+---------------------------------------------------+
# | Elt|Got  | Elt|Expected                                           |
# +----+-----+----+---------------------------------------------------+
# *   0|[]   *   0|[                                                  *
# |    |     *   1|  'Was before he left, he went and named me Sue.'  *
# |    |     *   2|]                                                  *
# +----+-----+----+---------------------------------------------------+

#   Failed test 'Should have no output to stderr: ack Sue -1 -h -v --text t/text/boy-named-sue.txt'
#   at t/Util.pm line 65.
#          got: '1'
#     expected: '0'
# STDERR:
# ack: Ignoring 1 argument on the command-line while acting as a filter.

#   Failed test 'Looking for first non-match'
#   at t/ack-1.t line 35.
# +----+-----+----+-----------------------------------------------+
# | Elt|Got  | Elt|Expected                                       |
# +----+-----+----+-----------------------------------------------+
# *   0|[]   *   0|[                                              *
# |    |     *   1|  'Well, my daddy left home when I was three'  *
# |    |     *   2|]                                              *
# +----+-----+----+-----------------------------------------------+
Collaborator

petdance commented Apr 27, 2013

If this is still a problem with ack 2, please report it in the ack 2 queue. https://github.com/petdance/ack2/issues

@petdance petdance closed this Apr 27, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment