Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the SVN-Notify CPAN distribution.

Report information
The Basics
Id: 13911
Status: resolved
Priority: 0/
Queue: SVN-Notify

People
Owner: Nobody in particular
Requestors: craig.mcelroy [...] contegix.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 2.47



To: bug-svn-notify [...] rt.cpan.org
CC: david [...] kineticode.com
Subject: RegEx Options Fail in SVN::Notify 2.45
From: Craig McElroy <craig.mcelroy [...] contegix.com>
Date: Thu, 28 Jul 2005 19:12:28 -0500
Greetings, I am currently running into problems with SVN::Notify 2.45 on RHEL v.3 Update 5. When attempting to use the RegEx options for subject and to mapping, I receive errors. This came as no surprise as there is a test failing during installation. This is a very clean RHEL installation, with the only perl module modifications being the ones that were required to install SVN::Notify. Here is my 'perl -V' output along with the 'Build test' output. Any help at all is greatly appreciated. Cheers, -craig --- Craig A. McElroy Contegix LLC craig.mcelroy@contegix.com "Beyond Managed Hosting For Your Enterprise" [root@host SVN-Notify-2.45]# perl -V Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration: Platform: osname=linux, osvers=2.4.21-23.elsmp, archname=i386-linux-thread- multi uname='linux bug' config_args='-des -Doptimize=-O2 -g -pipe -march=i386 -mcpu=i686 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc - Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr - Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr - Dotherlibdirs=/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads - Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db - Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio - Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/ less -isr' hint=recommended, useposix=true, d_sigaction=define usethreads=define use5005threads=undef' useithreads=define usemultiplicity= useperlio= d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=un uselongdouble= usemymalloc=, bincompat5005=undef Compiler: cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE - DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/ include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='', cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS - DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/include/ gdbm' ccversion='', gccversion='3.2.3 20030502 (Red Hat Linux 3.2.3-49)', gccosandvers='' gccversion='3.2.3 200305' intsize=o, longsize=s, ptrsize=l, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long' k', ivsize=4' ivtype='long' known_exten, nvtype='double', nvsize=, Off_t='', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='gcc' l', ldflags =' -' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil perllibs= libc=/lib/libc-2.3.2.so, so=so, useshrplib=true, libperl=libper gnulibc_version='2.3.2' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so', d_dlsymun=undef, ccdlflags='- rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE' cccdlflags='-fPIC' ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5', lddlflags='s Unicode/ Normalize XS/A' Characteristics of this binary (from libperl): Compile-time options: DEBUGGING MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Locally applied patches: MAINT18379 Built under linux Compiled at Feb 1 2005 09:37:17 @INC: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 . [root@host SVN-Notify-2.45]# ./Build test * WARNING: Configuration was initially created with '/usr/bin/perl', but we are now using '/usr/bin/perl'. t/base.............ok t/errors...........ok t/html.............ok t/htmlcolordiff....ok t/options..........ok 2/5# Failed test (t/options.t at line 56) t/options..........NOK 3# Structures begin differing at: # $got->{strip_cx_regex} = '^trunk' # $expected->{strip_cx_regex} = 'ARRAY(0x9813488)' t/options..........ok 4/5# Failed test (t/options.t at line 67) t/options..........NOK 5# Structures begin differing at: # $got->{strip_cx_regex} = '^trunk' # $expected->{strip_cx_regex} = 'ARRAY(0x9813488)' # Looks like you failed 2 tests of 5. t/options..........dubious Test returned status 2 (wstat 512, 0x200) DIED. FAILED tests 3, 5 Failed 2/5 tests, 60.00% okay t/pod-coverage.....ok t/pod..............ok t/script...........ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------ ------- t/options.t 2 512 5 2 40.00% 3 5 Failed 1/8 test scripts, 87.50% okay. 2/475 subtests failed, 99.58% okay.
From: David Wheeler <david [...] kineticode.com>
Subject: Re: [cpan #13911] RegEx Options Fail in SVN::Notify 2.45
Date: Mon, 8 Aug 2005 11:43:08 -0700
To: bug-SVN-Notify [...] rt.cpan.org
RT-Send-Cc:
On Jul 28, 2005, at 5:12 PM, Craig McElroy via RT wrote: Show quoted text
> t/options..........ok 2/5# Failed test (t/options.t at line 56) > t/options..........NOK 3# Structures begin differing at: > # $got->{strip_cx_regex} = '^trunk' > # $expected->{strip_cx_regex} = 'ARRAY(0x9813488)' > t/options..........ok 4/5# Failed test (t/options.t at line 67) > t/options..........NOK 5# Structures begin differing at: > # $got->{strip_cx_regex} = '^trunk' > # $expected->{strip_cx_regex} = 'ARRAY(0x9813488)' > # Looks like you failed 2 tests of 5. > t/options..........dubious > Test returned status 2 (wstat 512, 0x200) > DIED. FAILED tests 3, 5 > Failed 2/5 tests, 60.00% okay
Hrm, my guess is that you're running and older version of Getopt::Long. Let's see...yeah, Getopt::Long 2.34 added autovivication of array and hash options, so that's likely what I'm testing. I'll fix the test to detect this...does this patch fix the problem for you? Index: t/options.t =================================================================== --- t/options.t (revision 1875) +++ t/options.t (working copy) @@ -47,19 +47,20 @@ $params{$k} = $v; } -# Make sure that this is an array. -$params{strip_cx_regex} = ['^trunk']; # Make sure that the default options work. local @ARGV = %testopts; ok my $opts = SVN::Notify->get_options, "Get SVN::Notify options"; + +# Make sure that this is an array. +$params{strip_cx_regex} = ['^trunk'] if $Getopt::Long::VERSION >= 2.34; + is_deeply($opts, \%params, "Check results"); $params{bugzilla_url} = 'url'; $params{handler} = 'HTML'; $params{linkize} = undef; - # Use the --handler option to load the HTML subclass and make sure that # its options are properly parsed out of @ARGV. @ARGV = (%testopts, '--bugzilla-url' => 'url', '--handler' => 'HTML');