beyondgrep / ack2

**ack 2 is no longer being maintained. ack 3 is the latest version.**
https://github.com/beyondgrep/ack3/
Other
1.48k stars 140 forks source link

Why doesn't File::Next make it into ack-standalone? #429

Closed petdance closed 10 years ago

petdance commented 10 years ago

Tracking down the ack-standalone build problems. This is from ack 2.13_01.

This distribution has been tested as part of the CPAN Testers
project, supporting the Perl programming language.  See
http://wiki.cpantesters.org/ for more information or email
questions to cpan-testers-discuss@perl.org

--

Dear PETDANCE,

This is a computer-generated error report created automatically by
CPANPLUS, version 0.9144. Testers personal comments may appear
at the end of this report.

Thank you for uploading your work to CPAN.  However, it appears that
there were some problems testing your distribution.

TEST RESULTS:

Below is the error stack from stage 'make test':

/home/cpan/pit/thr/perl-5.12.3/bin/perl t/runtests.pl 0 0 "blib/lib" "blib/arch" t/*.t t/lib/*.t
Running tests on blib/script/ack
# Testing App::Ack 2.13_01, File::Next 1.12, Perl 5.012003, /home/cpan/pit/thr/perl-5.12.3/bin/perl
t/00-load.t .................. ok
# Using Test::More 1.001002 and Test::Harness 3.30
t/ack-1.t .................... ok
t/ack-c.t .................... ok
t/ack-color.t ................ ok
t/ack-column.t ............... ok
t/ack-create-ackrc.t ......... ok
t/ack-dump.t ................. ok
t/ack-f.t .................... ok
t/ack-files-from.t ........... ok
t/ack-filetypes.t ............ ok
t/ack-g.t .................... ok
t/ack-group.t ................ ok
t/ack-h.t .................... ok
t/ack-help-types.t ........... ok
t/ack-help.t ................. ok
t/ack-i.t .................... ok
t/ack-ignore-dir.t ........... ok
t/ack-interactive.t .......... skipped: You need to install IO::Pty to run this test
t/ack-invalid-ackrc.t ........ skipped: Don't yet have a reliable way to ignore the Unicode complaints from Pod::Perldoc
t/ack-k.t .................... ok
t/ack-known-types.t .......... ok
t/ack-line.t ................. skipped: You need to install IO::Pty to run this test
t/ack-m.t .................... ok
t/ack-match.t ................ ok
t/ack-n.t .................... ok
t/ack-named-pipes.t .......... ok
t/ack-o.t .................... ok
t/ack-pager.t ................ skipped: You need to install IO::Pty to run this test
t/ack-passthru.t ............. ok
t/ack-print0.t ............... ok
t/ack-removed-options.t ...... ok
t/ack-s.t .................... ok
t/ack-show-types.t ........... ok
t/ack-type-del.t ............. ok
t/ack-type.t ................. ok
t/ack-v.t .................... ok
t/ack-w.t .................... ok
t/ack-x.t .................... ok
t/anchored.t ................. ok
t/asp-net-ext.t .............. ok
t/bad-ackrc-opt.t ............ ok
t/basic.t .................... ok
t/command-line-files.t ....... ok
t/config-backwards-compat.t .. ok
t/config-finder.t ............ ok
t/config-loader.t ............ ok
t/context.t .................. ok
t/default-filter.t ........... ok
t/exit-code.t ................ ok
t/ext-filter.t ............... ok
t/file-permission.t .......... ok
t/filetypes.t ................ ok
t/filter.t ................... ok
t/firstlinematch-filter.t .... ok
t/highlighting.t ............. ok
t/illegal-regex.t ............ ok
t/incomplete-last-line.t ..... ok
t/inverted-file-filter.t ..... ok
t/is-filter.t ................ ok
t/lib/00-coverage.t .......... ok
t/lib/Ack.t .................. ok
t/lib/Basic.t ................ ok
t/lib/Collection.t ........... ok
t/lib/ConfigDefault.t ........ ok
t/lib/ConfigFinder.t ......... ok
t/lib/ConfigLoader.t ......... ok
t/lib/Default.t .............. ok
t/lib/Extension.t ............ ok
t/lib/ExtensionGroup.t ....... ok
t/lib/Filter.t ............... ok
t/lib/FirstLineMatch.t ....... ok
t/lib/Inverse.t .............. ok
t/lib/Is.t ................... ok
t/lib/IsGroup.t .............. ok
t/lib/Match.t ................ ok
t/lib/Resource.t ............. ok
t/lib/Resources.t ............ ok
t/longopts.t ................. ok
t/match-filter.t ............. ok
t/mutex-options.t ............ ok
t/noackrc.t .................. ok
t/noenv.t .................... ok
t/process-substitution.t ..... ok
t/r-lang-ext.t ............... ok
t/resource-iterator.t ........ ok
t/zero.t ..................... ok
All tests successful.
Files=86, Tests=901, 124 wallclock secs ( 0.75 usr  1.74 sys + 84.58 cusr 20.48 csys = 107.55 CPU)
Result: PASS
/home/cpan/pit/thr/perl-5.12.3/bin/perl squash ack Ack.pm  Resource.pm Resources.pm Basic.pm  ConfigDefault.pm ConfigFinder.pm ConfigLoader.pm  Filter.pm Extension.pm FirstLineMatch.pm Is.pm Match.pm Default.pm Inverse.pm Collection.pm IsGroup.pm ExtensionGroup.pm   > ack-standalone
Reading ack
Reading Ack.pm
Reading Resource.pm
Reading Resources.pm
Reading Basic.pm
Reading ConfigDefault.pm
Reading ConfigFinder.pm
Reading ConfigLoader.pm
Reading Filter.pm
Reading Extension.pm
Reading FirstLineMatch.pm
Reading Is.pm
Reading Match.pm
Reading Default.pm
Reading Inverse.pm
Reading Collection.pm
Reading IsGroup.pm
Reading ExtensionGroup.pm
Unable to find the sub "dirs" to remove from ack-standalone at squash line 79.
*** Error 255 in /home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/ack-2.13_01 (Makefile:1015 'ack-standalone')

PREREQUISITES:

Here is a list of prerequisites you specified and versions we
managed to load:

      Module Name                        Have     Want
      Carp                               1.17     1.04
      Cwd                                3.40     3.00
      ExtUtils::MakeMaker                6.84        0
      File::Basename                     2.78  1.00015
      File::Glob                         1.07  1.00015
      File::Next                         1.12     1.10
      File::Spec                         3.40     3.00
      File::Temp                       0.2304     0.19
      Getopt::Long                       2.38     2.35
      Pod::Usage                         1.36     1.26
      Term::ANSIColor                    2.02     1.10
      Test::Harness                      3.30     2.50
      Test::More                     1.001002     0.98
      Text::ParseWords                   3.27      3.1

Perl module toolchain versions installed:
    Module Name                        Have
    CPANPLUS                         0.9144
    CPANPLUS::Dist::Build              0.70
    Cwd                                3.40
    ExtUtils::CBuilder             0.280212
    ExtUtils::Command                  1.16
    ExtUtils::Install                  1.55
    ExtUtils::MakeMaker                6.84
    ExtUtils::Manifest                 1.63
    ExtUtils::ParseXS                  3.22
    File::Spec                         3.40
    Module::Build                    0.4203
    Pod::Parser                        1.37
    Pod::Simple                        3.14
    Test::Harness                      3.30
    Test::More                     1.001002
    version                          0.9904

******************************** NOTE ********************************
The comments above are created mechanically, possibly without manual
checking by the sender.  As there are many people performing automatic
tests on each upload to CPAN, it is likely that you will receive
identical messages about the same problem.

If you believe that the message is mistaken, please reply to the first
one with correction and/or additional informations, and do not take
it personally.  We appreciate your patience. :)
**********************************************************************

Additional comments:

This report was machine-generated by CPANPLUS::Dist::YACSmoke 0.90.
Powered by minismokebox version 0.58

------------------------------
ENVIRONMENT AND OTHER CONTEXT
------------------------------

Environment variables:

   AUTOMATED_TESTING = 1
   NONINTERACTIVE_TESTING = 1
   PATH = /home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/ack-2.13_01/blib/script:/home/cpan/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:.
   PERL5LIB = :/home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/File-Next-1.12/blib/lib:/home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/File-Next-1.12/blib/arch:/home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/ack-2.13_01/blib/lib:/home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/ack-2.13_01/blib/arch
   PERL5_CPANPLUS_IS_RUNNING = 25831
   PERL5_CPANPLUS_IS_VERSION = 0.9144
   PERL5_MINISMOKEBOX = 0.58
   PERL5_YACSMOKE_BASE = /home/cpan/pit/thr/conf/perl-5.12.3
   PERL_EXTUTILS_AUTOINSTALL = --defaultdeps
   PERL_MM_USE_DEFAULT = 1
   SHELL = /usr/local/bin/bash
   TERM = screen

Perl special variables (and OS-specific diagnostics, for MSWin32):

   Perl: $^X = /home/cpan/pit/thr/perl-5.12.3/bin/perl
   UID:  $<  = 1001
   EUID: $>  = 1001
   GID:  $(  = 1001 1001
   EGID: $)  = 1001 1001

-------------------------------

--

Summary of my perl5 (revision 5 version 12 subversion 3) configuration:

 Platform:
   osname=openbsd, osvers=5.3, archname=OpenBSD.amd64-openbsd-thread-multi
   uname='openbsd onkel.bingosnet.co.uk 5.3 generic#53 amd64 '
   config_args='-des -Dprefix=/home/cpan/pit/thr/perl-5.12.3 -Dusethreads'
   hint=recommended, useposix=true, d_sigaction=define
   useithreads=define, usemultiplicity=define
   useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
   use64bitint=define, use64bitall=define, uselongdouble=undef
   usemymalloc=y, bincompat5005=undef
 Compiler:
   cc='cc', ccflags ='-pthread -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
   optimize='-O2',
   cppflags='-pthread -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
   ccversion='', gccversion='4.2.1 20070719 ', gccosandvers='openbsd5.3'
   intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
   ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
   alignbytes=8, prototype=define
 Linker and Libraries:
   ld='cc', ldflags ='-pthread -Wl,-E  -fstack-protector -L/usr/local/lib'
   libpth=/usr/local/lib /usr/lib
   libs=-lgdbm -lm -lutil -lc
   perllibs=-lm -lutil -lc
   libc=/usr/lib/libc.so.66.2, so=so, useshrplib=false, libperl=libperl.a
   gnulibc_version=''
 Dynamic Linking:
   dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
   cccdlflags='-DPIC -fPIC ', lddlflags='-shared -fPIC  -L/usr/local/lib -fstack-protector'

Characteristics of this binary (from libperl): 
 Compile-time options: MULTIPLICITY MYMALLOC PERL_DONT_CREATE_GVSV
                       PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_64_BIT_ALL
                       USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES
                       USE_PERLIO USE_PERL_ATOF USE_REENTRANT_API
 Built under openbsd
 Compiled at May  2 2013 17:45:20
 %ENV:
   PERL5LIB=":/home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/File-Next-1.12/blib/lib:/home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/File-Next-1.12/blib/arch:/home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/ack-2.13_01/blib/lib:/home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/ack-2.13_01/blib/arch"
   PERL5_CPANPLUS_IS_RUNNING="25831"
   PERL5_CPANPLUS_IS_VERSION="0.9144"
   PERL5_MINISMOKEBOX="0.58"
   PERL5_YACSMOKE_BASE="/home/cpan/pit/thr/conf/perl-5.12.3"
   PERL_EXTUTILS_AUTOINSTALL="--defaultdeps"
   PERL_MM_USE_DEFAULT="1"
 @INC:
   /home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/File-Next-1.12/blib/lib
   /home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/File-Next-1.12/blib/arch
   /home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/ack-2.13_01/blib/lib
   /home/cpan/pit/thr/conf/perl-5.12.3/.cpanplus/5.12.3/build/ack-2.13_01/blib/arch
   /home/cpan/pit/thr/perl-5.12.3/lib/site_perl/5.12.3/OpenBSD.amd64-openbsd-thread-multi
   /home/cpan/pit/thr/perl-5.12.3/lib/site_perl/5.12.3
   /home/cpan/pit/thr/perl-5.12.3/lib/5.12.3/OpenBSD.amd64-openbsd-thread-multi
   /home/cpan/pit/thr/perl-5.12.3/lib/5.12.3
   .
petdance commented 10 years ago

AHA! Makefile.PL relies on perldoc -l to find the file for File::Next. That seems to not always work!

petdance commented 10 years ago

This has been fixed in 2.13_02.

karenetheridge commented 10 years ago

Will this be released as stable soon? ack-2.12 on the cpan still fails tests.

petdance commented 10 years ago

I am playing whackamole with Windows tests, which is difficult for me to do w/o a Windows machine. If you'd like to help diagnose the failures of 2.13_04, that would be a big help. http://cpantesters.org/distro/A/ack.html?grade=1&perlmat=2&patches=2&oncpan=2&distmat=3&perlver=ALL&osname=ALL&version=2.12

Joining the ack-dev Google Group would help, too.

karenetheridge commented 10 years ago

There are some folks on the #win32 irc group that might be able to help, too.