develooper Front page | perl.perl5.porters | Postings from May 2013

[perl #118025]

From:
Andrew Gregory
Date:
May 18, 2013 01:13
Subject:
[perl #118025]
Message ID:
rt-3.6.HEAD-2650-1368750367-676.118025-75-0@perl.org
# New Ticket Created by  Andrew Gregory 
# Please include the string:  [perl #118025]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118025 >


Subject: [PATCH] 969832d corelist: use case-sensitive option parsing
Message-Id: <5.16.3_9939_1368750526@b42-desktop.local>
Reply-To: andrew.gregory.8@gmail.com
To: perlbug@perl.org
From: andrew.gregory.8@gmail.com


This is a bug report for perl from andrew.gregory.8@gmail.com,
generated with the help of perlbug 1.39 running under perl 5.16.3.

>From 969832db963564d03e41c942478e533dbfa11978 Mon Sep 17 00:00:00 2001
From: Andrew Gregory <andrew.gregory.8@gmail.com>
Date: Thu, 16 May 2013 20:16:50 -0400
Subject: [PATCH] corelist: use case-sensitive option parsing
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="------------1.8.2.3"

This is a multi-part message in MIME format.
--------------1.8.2.3
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit


Case insensitive parsing causes -d to be incorrectly parsed as -D, the
short option for --diff.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
---
 dist/Module-CoreList/corelist | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


--------------1.8.2.3
Content-Type: text/x-patch; name="0001-corelist-use-case-sensitive-option-parsing.patch"
Content-Transfer-Encoding: 8bit
Content-Disposition: attachment; filename="0001-corelist-use-case-sensitive-option-parsing.patch"

diff --git a/dist/Module-CoreList/corelist b/dist/Module-CoreList/corelist
index b012c5e..448b77b 100644
--- a/dist/Module-CoreList/corelist
+++ b/dist/Module-CoreList/corelist
@@ -131,7 +131,7 @@ requested perl versions.
 =cut
 
 use Module::CoreList;
-use Getopt::Long;
+use Getopt::Long qw(:config no_ignore_case);
 use Pod::Usage;
 use strict;
 use warnings;

--------------1.8.2.3--


---
Flags:
    category=library
    severity=low
    module=Module::CoreList
---
Site configuration information for perl 5.16.3:

Configured by nobody at Thu Apr 18 17:28:35 CEST 2013.

Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
   
  Platform:
    osname=linux, osvers=3.8.7-1-arch, archname=x86_64-linux-thread-multi
    uname='linux flo64 3.8.7-1-arch #1 smp preempt sat apr 13 09:01:47 cest 2013 x86_64 gnulinux '
    config_args='-des -Dusethreads -Duseshrplib -Doptimize=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Dprefix=/usr -Dvendorprefix=/usr -Dprivlib=/usr/share/perl5/core_perl -Darchlib=/usr/lib/perl5/core_perl -Dsitelib=/usr/share/perl5/site_perl -Dsitearch=/usr/lib/perl5/site_perl -Dvendorlib=/usr/share/perl5/vendor_perl -Dvendorarch=/usr/lib/perl5/vendor_perl -Dscriptdir=/usr/bin/core_perl -Dsitescript=/usr/bin/site_perl -Dvendorscript=/usr/bin/vendor_perl -Dinc_version_list=none -Dman1ext=1perl -Dman3ext=3perl -Dcccdlflags='-fPIC' -Dlddlflags=-shared -Wl,-O1,--sort-common,--as-needed,-z,relro -Dldflags=-Wl,-O1,--sort-common,--as-needed,-z,relro'
    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=n, bincompat5005=undef
  Compiler:
    cc='cc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
    optimize='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4',
    cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
    ccversion='', gccversion='4.8.0 20130411 (prerelease)', 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,-O1,--sort-common,--as-needed,-z,relro -fstack-protector -L/usr/local/lib'
    libpth=/usr/local/lib /lib/../lib /usr/lib/../lib /lib /usr/lib /lib64 /usr/lib64
    libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc -lgdbm_compat
    perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
    libc=/lib/libc-2.17.so, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version='2.17'
  Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E -Wl,-rpath,/usr/lib/perl5/core_perl/CORE'
    cccdlflags='-fPIC', lddlflags='-shared -Wl,-O1,--sort-common,--as-needed,-z,relro -L/usr/local/lib -fstack-protector'

Locally applied patches:
    

---
@INC for perl 5.16.3:
    /usr/lib/perl5/site_perl
    /usr/share/perl5/site_perl
    /usr/lib/perl5/vendor_perl
    /usr/share/perl5/vendor_perl
    /usr/lib/perl5/core_perl
    /usr/share/perl5/core_perl
    .

---
Environment for perl 5.16.3:
    HOME=/home/b42
    LANG=en_US.UTF-8
    LANGUAGE (unset)
    LC_COLLATE=C
    LD_LIBRARY_PATH (unset)
    LOGDIR (unset)
    PATH=/home/b42/bin:/home/b42/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/vendor_perl:/usr/bin/core_perl
    PERL_BADLANG (unset)
    SHELL=/bin/zsh




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About