Front page | perl.perl5.porters |
Postings from September 2010
[perl #76668] [PATCH] Locale::Maketext - update use of I18N::LangTags to happen at load time.
Thread Next
From:
Father Chrysostomos via RT
Date:
September 26, 2010 22:06
Subject:
[perl #76668] [PATCH] Locale::Maketext - update use of I18N::LangTags to happen at load time.
Message ID:
rt-3.6.HEAD-24759-1285563972-1325.76668-15-0@perl.org
On Thu Jul 22 10:33:05 2010, toddr@cpanel.net wrote:
> This is a bug report for perl from toddr@cpanel.net,
> generated with the help of perlbug 1.39 running under perl 5.12.1.
>
>
> -----------------------------------------------------------------
> [Please describe your issue here]
>
> This patch with tests resolves CPAN RT #48808.
What tests? :-)
>
> This change:
> 1. loads I18N::LangTags::Detect in BEGIN rather than whenever
> _ambient_langprefs is called
> 2. Removes the version number requirement for I18N::LangTags. Detect
> didn't come around until 0.31 so a dep on 0.30 is unnecessary.
>
> This will assure any load issues with I18N::LangTags::Detect happen at
> BEGIN, not randomly somewhere in the program.
>
> This does increase the dependency on I18N::LangTags from 0.30 to 0.31,
> but the release dates are as follows, so I don't think it's a big
> deal:
>
> 0.30 - 2004-03-30 Sean M. Burke sburke@cpan.org
> 0.31 - 2004-06-17 Sean M. Burke sburke@cpan.org
>
>
>
> [Please do not change anything below this line]
> -----------------------------------------------------------------
> ---
> Flags:
> category=library
> severity=low
> module=Locale::Maketext
> Type=Patch
> PatchStatus=HasPatch
> ---
> Site configuration information for perl 5.12.1:
>
> Configured by cPanel at Mon Jun 7 11:16:28 CDT 2010.
>
> Summary of my perl5 (revision 5 version 12 subversion 1)
> configuration:
>
> Platform:
> osname=linux, osvers=2.6.18-194.3.1.el5, archname=x86_64-linux
> uname='linux rpmb-centos-50-64bit 2.6.18-194.3.1.el5 #1 smp thu may
> 13 13:08:30 edt 2010 x86_64 x86_64 x86_64 gnulinux '
> config_args='-des -Darchname=x86_64-linux
> -Dcc=/usr/local/cpanel/bin/gcc -Dcpp=/usr/local/cpanel/bin/gcc -E
> -DDEBUGGING=none -Doptimize=-Os -Dusemymalloc=y -Duseshrplib=true
> -Duselargefiles=yes -Duseposix=true -Dhint=recommended
> -Duseperlio=yes -Dccflags=-I/usr/local/cpanel/include
> -L/usr/local/cpanel/lib64 -Wl,-rpath -Wl,/usr/local/cpanel/lib64
> -Dcppflags=-I/usr/local/cpanel/include -L/usr/local/cpanel/lib64
> -Dldflags=-Wl,-rpath -Wl,/usr/local/cpanel/lib64
> -L/usr/local/cpanel/lib64 -Dprefix=/usr/local/cpanel
> -Dsiteprefix=/usr/local/cpanel -Dsitebin=/usr/local/cpanel/bin
> -Dsitelib=/usr/local/cpanel/lib64/perl5/site_lib
> -Dprivlib=/usr/local/cpanel/lib64/perl5/5.12.1
>
-Dotherlibdirs=/var/cpanel/perl5/lib:/usr/local/cpanel/lib64/perl5/cpanel
> -Dman1dir=/usr/local/cpanel/share/man/man1
> -Dman3dir=/usr/local/cpanel/share/man/man3
> -Dsiteman1dir=/usr/local/cpanel/share/man/man1
> -Dsiteman3dir=/usr/local/cpanel/share/man/man3 -Dcf_by=cPanel
> -Dmyhostname=localhost -Dperladmin=root@localhost
> -Dcf_email=support@cpanel.net -Di_dbm=/usr/local/cpanel/include
> -Di_gdbm=/usr/local/cpanel/include
> -Di_ndbm=/usr/local/cpanel/include -Ud_dosuid -Uuserelocatableinc
> -Umad -Uusethreads -Uusemultiplicity -Uusesocks -Uuselongdouble
> -Ui_db -Aldflags=-L/usr/local/cpanel/lib64 -L/usr/lib64 -L/lib64
> -lgdbm -Dlocincpth=/usr/local/cpanel/include /usr/local/include
> -Acflags=-fPIC -DPIC -m64 -I/usr/local/cpanel/include
> -Dlibpth=/usr/local/cpanel/lib64 /usr/local/lib64 /usr/local/lib
> /lib64 /usr/lib64 -Duse64bitint=yes -Duse64bitall=yes'
> 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=y, bincompat5005=undef
> Compiler:
> cc='/usr/local/cpanel/bin/gcc', ccflags ='-
> I/usr/local/cpanel/include -L/usr/local/cpanel/lib64 -Wl,-rpath
> -Wl,/usr/local/cpanel/lib64 -fno-strict-aliasing -pipe
> -fstack-protector -I/usr/local/cpanel/include -I/usr/local/include
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
> optimize='-Os',
> cppflags='-I/usr/local/cpanel/include -L/usr/local/cpanel/lib64
> -I/usr/local/cpanel/include -L/usr/local/cpanel/lib64 -Wl,-rpath
> -Wl,/usr/local/cpanel/lib64 -fno-strict-aliasing -pipe
> -fstack-protector -I/usr/local/cpanel/include -I/usr/local/include'
> ccversion='', gccversion='4.5.0', 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='/usr/local/cpanel/bin/gcc', ldflags ='-Wl,-rpath
> -Wl,/usr/local/cpanel/lib64 -L/usr/local/cpanel/lib64
> -L/usr/local/cpanel/lib64 -L/usr/lib64 -L/lib64 -lgdbm
> -fstack-protector -L/usr/local/lib'
> libpth=/usr/local/cpanel/lib64 /usr/local/lib64 /usr/local/lib
> /lib64 /usr/lib64
> libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat
> perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc
> libc=/lib/libc-2.5.so, so=so, useshrplib=true, libperl=libperl.so
> gnulibc_version='2.5'
> Dynamic Linking:
> dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
> -Wl,-rpath,/usr/local/cpanel/lib64/perl5/5.12.1/x86_64-linux/CORE'
> cccdlflags='-fPIC', lddlflags='-shared -Os
> -L/usr/local/cpanel/lib64 -L/usr/lib64 -L/lib64 -L/usr/local/lib
> -fstack-protector'
>
> Locally applied patches:
> cPanel Patches
>
> ---
> @INC for perl 5.12.1:
> /usr/local/cpanel/lib64/perl5/site_lib/x86_64-linux
> /usr/local/cpanel/lib64/perl5/site_lib
> /usr/local/cpanel/lib64/perl5/5.12.1/x86_64-linux
> /usr/local/cpanel/lib64/perl5/5.12.1
> /var/cpanel/perl5/lib
> /usr/local/cpanel/lib64/perl5/cpanel
> .
>
> ---
> Environment for perl 5.12.1:
> HOME=/home/toddr
> LANG=en_US.UTF-8
> LANGUAGE (unset)
> LD_LIBRARY_PATH (unset)
> LOGDIR (unset)
>
PATH=/usr/local/cpanel/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:
> PERL_BADLANG (unset)
> SHELL=/bin/zsh
>
Thread Next
-
[perl #76668] [PATCH] Locale::Maketext - update use of I18N::LangTags to happen at load time.
by Father Chrysostomos via RT