Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perl-5.14RC2 - Locale::Maketext test failure on OS X #11306

Closed
p5pRT opened this issue May 5, 2011 · 10 comments
Closed

perl-5.14RC2 - Locale::Maketext test failure on OS X #11306

p5pRT opened this issue May 5, 2011 · 10 comments

Comments

@p5pRT
Copy link

p5pRT commented May 5, 2011

Migrated from rt.perl.org#89896 (status was 'resolved')

Searchable as RT89896$

@p5pRT
Copy link
Author

p5pRT commented May 5, 2011

From anonymous@rip.ax.lt

Created by kirk@yopmail.com

During the test phase Locale​::Maketext fails with the following​:

Can't locate object method "_die_pointing" via package "hello [_1]" (perhaps you
forgot to load "hello [_1]"?) at ../../lib/Locale/Maketext.pm line 543.
# Looks like you planned 2 tests but ran 1.
# Looks like your test exited with 255 just after 1.
../dist/Locale-Maketext/t/09_compile.t ............................
Dubious, test returned 255 (wstat 65280, 0xff00)
Failed 1/2 subtests

Perl Info

Flags:
    category=library
    severity=low
    module=Locale::Maketext

Site configuration information for perl 5.14.0:

Configured by kirk at Wed Apr 20 12:32:01 PDT 2011.

Summary of my perl5 (revision 5 version 14 subversion 0) configuration:
   
  Platform:
    osname=darwin, osvers=10.7.0, archname=darwin-2level
    uname='darwin jaws 10.7.0 darwin kernel version 10.7.0: sat jan 29 15:17:16 pst 2011; root:xnu-1504.9.37~1release_i386 i386 '
    config_args='-de -Dprefix=/Users/kirk/local/perlbrew/perls/p514'
    hint=recommended, useposix=true, d_sigaction=define
    useithreads=undef, usemultiplicity=undef
    useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
    use64bitint=define, use64bitall=define, uselongdouble=undef
    usemymalloc=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include',
    optimize='-O3',
    cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -I/opt/local/include'
    ccversion='', gccversion='4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.9)', gccosandvers=''
    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='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib -L/opt/local/lib'
    libpth=/usr/local/lib /opt/local/lib /usr/lib
    libs=-lgdbm -ldbm -ldl -lm -lutil -lc
    perllibs=-ldl -lm -lutil -lc
    libc=/usr/lib/libc.dylib, so=dylib, useshrplib=false, libperl=libperl.a
    gnulibc_version=''
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
    cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -L/opt/local/lib -fstack-protector'

Locally applied patches:
    RC1


@INC for perl 5.14.0:
    /Users/kirk/local/perlbrew/perls/p514/lib/site_perl/5.14.0/darwin-2level
    /Users/kirk/local/perlbrew/perls/p514/lib/site_perl/5.14.0
    /Users/kirk/local/perlbrew/perls/p514/lib/5.14.0/darwin-2level
    /Users/kirk/local/perlbrew/perls/p514/lib/5.14.0
    .


Environment for perl 5.14.0:
    DYLD_LIBRARY_PATH (unset)
    HOME=/Users/kirk
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/Users/kirk/local/perlbrew/bin:/Users/kirk/local/perlbrew/perls/current/bin:/Users/kirk/bin:/Users/kirk/local/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/X11/bin
    PERLBREW_PATH=/Users/kirk/local/perlbrew/bin:/Users/kirk/local/perlbrew/perls/current/bin
    PERLBREW_PERL=p512
    PERLBREW_ROOT=/Users/kirk/local/perlbrew
    PERLBREW_VERSION=0.19
    PERL_BADLANG (unset)
    PERL_CPANM_OPT=-q
    SHELL=/bin/bash

@p5pRT
Copy link
Author

p5pRT commented May 5, 2011

From @nwc10

On Wed, May 04, 2011 at 06​:25​:13PM -0700, Anne Onime wrote​:

uname='darwin jaws 10\.7\.0 darwin kernel version 10\.7\.0​: sat jan 29 15​:17​:16 pst 2011; root​:xnu\-1504\.9\.37~1release\_i386 i386 '
ccversion=''\, gccversion='4\.2\.1 \(Based on Apple Inc\. build 5658\) \(LLVM build 2335\.9\)'\, gccosandvers=''
ld='env MACOSX\_DEPLOYMENT\_TARGET=10\.3 cc'\, ldflags =' \-fstack\-protector \-L/usr/local/lib \-L/opt/local/lib'

That's Lion?

(I've never seen a failure like this, and there are quite a few people building
on Snow Leopard)

Nicholas Clark

@p5pRT
Copy link
Author

p5pRT commented May 5, 2011

The RT System itself - Status changed from 'new' to 'open'

@p5pRT
Copy link
Author

p5pRT commented May 14, 2011

From justincase@yopmail.com

On Thu May 05 02​:27​:59 2011, nicholas wrote​:

On Wed, May 04, 2011 at 06​:25​:13PM -0700, Anne Onime wrote​:

uname='darwin jaws 10\.7\.0 darwin kernel version 10\.7\.0​: sat jan

29 15​:17​:16 pst 2011; i386 '

ccversion=''\, gccversion='4\.2\.1 \(Based on Apple Inc\. build 5658\)

(LLVM build 2335.9)', gccosandvers=''

ld='env MACOSX\_DEPLOYMENT\_TARGET=10\.3 cc'\, ldflags ='

-fstack-protector -L/usr/local/lib -L/opt/local/lib'

That's Lion?

(I've never seen a failure like this, and there are quite a few people
building
on Snow Leopard)

Nicholas Clark

I'm seeing this same test failure in 5.14.0. I'm using the same OS version (latest Snow Leopard
and Xcode 4.2). I narrowed it down to some environment variables being set in my .bashrc​:

export LESS_TERMCAP_me=$'\E[0m'
export LESS_TERMCAP_se=$'\E[0m'
export LESS_TERMCAP_ue=$'\E[0m'

Unsetting them fixed the problem. But google shows it's fairly common to have these set.

@p5pRT
Copy link
Author

p5pRT commented May 15, 2011

From justincase@yopmail.com

Patch is attached to escape brackets in the value of the environment variable being used in the
test.

@p5pRT
Copy link
Author

p5pRT commented May 15, 2011

From justincase@yopmail.com

09_compile.patch
--- dist/Locale-Maketext/t/09_compile.t	2011-05-15 01:03:41.000000000 +0000
+++ /tmp/09_compile.t	2011-05-15 01:03:33.000000000 +0000
@@ -11,6 +11,7 @@
 my @ENV_values = values %ENV;
 my $tainted_value;
 do { $tainted_value = shift @ENV_values  } while(!$tainted_value || ref $tainted_value);
+$tainted_value =~ s/([\[\]])/~$1/g;
 
 ok(tainted($tainted_value), "\$tainted_value is tainted") or die('huh... %ENV has no entries? I don\'t know how to test taint without it');
 

@p5pRT
Copy link
Author

p5pRT commented May 16, 2011

From @cpansprout

On Sat May 14 18​:13​:11 2011, justincase wrote​:

Patch is attached to escape brackets in the value of the environment
variable being used in the
test.

Thank you. I’ve just applied it to the sprout/5.14.1-89896 branch.

@p5pRT
Copy link
Author

p5pRT commented May 16, 2011

From [Unknown Contact. See original ticket]

On Sat May 14 18​:13​:11 2011, justincase wrote​:

Patch is attached to escape brackets in the value of the environment
variable being used in the
test.

Thank you. I’ve just applied it to the sprout/5.14.1-89896 branch.

@p5pRT
Copy link
Author

p5pRT commented May 18, 2011

From @cpansprout

On Sun May 15 23​:17​:35 2011, sprout wrote​:

On Sat May 14 18​:13​:11 2011, justincase wrote​:

Patch is attached to escape brackets in the value of the environment
variable being used in the
test.

Thank you. I’ve just applied it to the sprout/5.14.1-89896 branch.

And to blead as 6aac795.

@p5pRT
Copy link
Author

p5pRT commented May 18, 2011

@cpansprout - Status changed from 'open' to 'resolved'

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

No branches or pull requests

1 participant