Subject: Re: pkg/32812: Perl broken in 2005Q4: open with shell metas fails
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Anne Bennett <anne@porcupine.montreal.qc.ca>
List: pkgsrc-bugs
Date: 02/13/2006 17:55:02
The following reply was made to PR pkg/32812; it has been noted by GNATS.

From: Anne Bennett <anne@porcupine.montreal.qc.ca>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/32812: Perl broken in 2005Q4: open with shell metas fails
Date: Mon, 13 Feb 2006 12:52:08 -0500

 >> Synopsis:       Perl broken in 2005Q4: open with shell metas fails
 
 Here's some additional information.  First of all, I forgot to include
 the output of perl -V, so I append it below my signature.
 
 I've now built a perl-5.8.7 based on the source from CPAN, and it
 works correctly; I append its perl -V output as well.  Aside from
 datestamps and installation paths, there seem to be quite a few
 differences between the two, but the most striking ones are that
 mine did not use threads, nor does it have the SPRINTF0 patch.  I
 wonder if this is somehow thread-related.
 
 You should know that this broken Perl causes a2ps to not build
 (because help2man does a backtick call to the programs whose "--help"
 output it wants to capture, and there are shellmetas in the backtick
 call).  I had to resort to linking /usr/pkg/bin/perl to my
 locally-created version in order to correctly install a2ps.
 
 I'm not sure how many other things are affected yet; I've been trying
 to reinstall all of my software from the 2005Q4 stable pkgsrc to
 escape the exponentially increasing problems I've had when trying to
 update the -current version.  But I'm starting to think that this
 broken Perl is rather critical.  Is mine the only report you've seen
 of this problem?
 
 
 Anne.
 -- 
 Ms. Anne Bennett, as a private citizen:  anne@porcupine.montreal.qc.ca
 Also reachable more officially at work:  anne@encs.concordia.ca
 ----------------------------------------------------------------------
 OUTPUT OF "perl -V" for the pkg-installed Perl:
 
 Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
   Platform:
     osname=netbsd, osvers=3.0, archname=x86_64-netbsd-thread-multi
     uname='netbsd quill.porcupine.montreal.qc.ca 3.0 netbsd 3.0 (quill_amd64) #4: mon jan 2 17:33:19 est 2006 root@newquill.porcupine.montreal.qc.ca:disksnobaknetbsdnetbsd-3.0srcsysarchamd64compilequill_amd64 amd64 '
     config_args='-sde -Darchname=x86_64-netbsd -Dcc=cc -Doptimize=-O2 -pthread -I/usr/include -Duseshrplib -Ui_malloc -Uusemymalloc -Uinstallusrbinperl -Dinstallstyle=lib/perl5 -Dprefix=/usr/pkg -Dsiteprefix=/usr/pkg -Dvendorprefix=/usr/pkg -Dscriptdir=/usr/pkg/lib/perl5/bin -Dsitescript=/usr/pkg/lib/perl5/site_perl/bin -Dvendorscript=/usr/pkg/lib/perl5/vendor_perl/bin -Dprivlib=/usr/pkg/lib/perl5/5.8.0 -Dsitelib=/usr/pkg/lib/perl5/site_perl/5.8.0 -Dvendorlib=/usr/pkg/lib/perl5/vendor_perl/5.8.0 -Dman1ext=1 -Dman1dir=/usr/pkg/lib/perl5/man/man1 -Dsiteman1dir=/usr/pkg/lib/perl5/site_perl/man/man1 -Dvendorman1dir=/usr/pkg/lib/perl5/vendor_perl/man/man1 -Dman3ext=3 -Dman3dir=/usr/pkg/lib/perl5/man/man3 -Dsiteman3dir=/usr/pkg/lib/perl5/site_perl/man/man3 -Dvendorman3dir=/usr/pkg/lib/perl5/vendor_perl/man/man3 -Daphostname=/bin/hostname -Dln=/bin/ln -Dsed=/usr/bin/sed -Dissymlink=test -h -Duseithreads -Dlibswanted=m crypt '
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=define use5005threads=undef useithreads=define usemultiplicity=define
     useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
     use64bitint=define use64bitall=define uselongdouble=undef
     usemymalloc=n, bincompat5005=undef
   Compiler:
     cc='cc', ccflags ='-fno-strict-aliasing -pipe -I/usr/pkg/include',
     optimize='-O2 -pthread -I/usr/include',
     cppflags='-fno-strict-aliasing -pipe -I/usr/pkg/include'
     ccversion='', gccversion='3.3.3 (NetBSD nb3 20040520)', 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='cc', ldflags ='-Wl,-R/usr/pkg/lib  -L/usr/pkg/lib'
     libpth=/usr/lib /usr/pkg/lib
     libs=-lm -lcrypt -lpthread
     perllibs=-lm -lcrypt -lpthread
     libc=/lib/libc.so, so=so, useshrplib=true, libperl=libperl.so
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E  -Wl,-R/usr/pkg/lib/perl5/5.8.0/x86_64-netbsd-thread-multi/CORE'
     cccdlflags='-DPIC -fPIC ', lddlflags='-Wl,-R/usr/pkg/lib --whole-archive -shared  -L/usr/pkg/lib'
 
 
 Characteristics of this binary (from libperl): 
   Compile-time options: MULTIPLICITY USE_ITHREADS USE_64_BIT_INT
                         USE_64_BIT_ALL USE_LARGE_FILES
                         PERL_IMPLICIT_CONTEXT
   Locally applied patches:
 	SPRINTF0 - fixes for sprintf formatting issues - CVE-2005-3962
   Built under netbsd
   Compiled at Feb 12 2006 22:00:36
   @INC:
     /usr/pkg/lib/perl5/site_perl/5.8.0/x86_64-netbsd-thread-multi
     /usr/pkg/lib/perl5/site_perl/5.8.0
     /usr/pkg/lib/perl5/site_perl/5.8.0
     /usr/pkg/lib/perl5/vendor_perl/5.8.0/x86_64-netbsd-thread-multi
     /usr/pkg/lib/perl5/vendor_perl/5.8.0
     /usr/pkg/lib/perl5/vendor_perl/5.8.0
     /usr/pkg/lib/perl5/5.8.0/x86_64-netbsd-thread-multi
     /usr/pkg/lib/perl5/5.8.0
     .
 
 ----------------------------------------------------------------------
 OUTPUT OF "perl -V" for my manually-installed Perl:
 
 Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
   Platform:
     osname=netbsd, osvers=3.0, archname=amd64-netbsd
     uname='netbsd quill.porcupine.montreal.qc.ca 3.0 netbsd 3.0 (quill_amd64) #4: mon jan 2 17:33:19 est 2006 root@newquill.porcupine.montreal.qc.ca:disksnobaknetbsdnetbsd-3.0srcsysarchamd64compilequill_amd64 amd64 '
     config_args='-de -Dperladmin=none -Dcf_email=root@quill.porcupine.montreal.qc.ca -Dprefix=/local/pkg/perl-5.8.7/root -Dprivlib=/local/pkg/perl-5.8.7/root/lib -Dsitelib=/local/pkg/perl-5.8.7/root/lib/site_perl -Dotherlibdirs=/local/lib:/encs/lib'
     hint=recommended, useposix=true, d_sigaction=define
     usethreads=undef use5005threads=undef 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-strict-aliasing -pipe -I/usr/pkg/include',
     optimize='-O',
     cppflags='-fno-strict-aliasing -pipe -I/usr/pkg/include'
     ccversion='', gccversion='3.3.3 (NetBSD nb3 20040520)', 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='cc', ldflags =' -Wl,-rpath,/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/pkg/lib'
     libpth=/usr/pkg/lib /lib /usr/lib
     libs=-lm -lcrypt -lutil -lc -lposix
     perllibs=-lm -lcrypt -lutil -lc -lposix
     libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
     gnulibc_version=''
   Dynamic Linking:
     dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E '
     cccdlflags='-DPIC -fPIC ', lddlflags='--whole-archive -shared  -L/usr/pkg/lib'
 
 
 Characteristics of this binary (from libperl): 
   Compile-time options: USE_64_BIT_INT USE_64_BIT_ALL USE_LARGE_FILES
   Built under netbsd
   Compiled at Feb 13 2006 11:47:29
   @INC:
     /local/pkg/perl-5.8.7/root/lib/amd64-netbsd
     /local/pkg/perl-5.8.7/root/lib
     /local/pkg/perl-5.8.7/root/lib/site_perl/amd64-netbsd
     /local/pkg/perl-5.8.7/root/lib/site_perl
     /local/pkg/perl-5.8.7/root/lib/site_perl
     /local/lib/amd64-netbsd
     /local/lib
     /encs/lib
     .
 
 ----------------------------------------------------------------------