Front page | perl.perl5.porters |
Postings from April 2008
[perl #53446] GNU coreutils 6.9 breaks Configure
Thread Next
From:
perlbug-followup
Date:
April 28, 2008 05:57
Subject:
[perl #53446] GNU coreutils 6.9 breaks Configure
Message ID:
rt-3.6.HEAD-25460-1209381247-488.53446-75-0@perl.org
# New Ticket Created by (Justin Mason)
# Please include the string: [perl #53446]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=53446 >
This is a bug report for perl from jm@jmason.org,
generated with the help of perlbug 1.34 running under perl v5.6.2.
-----------------------------------------------------------------
GNU coreutils version 6.9 has removed support for "sort +n", deprecated in
favour of "-k n", it seems:
Coreutils 5.97:
: jm 168...; sort +1
sort: Warning: "+number" syntax is deprecated, please use "-k number"
: jm 169...; sort --version
sort (GNU coreutils) 5.97
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and Paul Eggert.
vs coreutils 6.9:
: jm 2...; sort +1
sort: open failed: +1: No such file or directory
: jm 3...; sort --version
sort (GNU coreutils) 6.9
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Mike Haertel and Paul Eggert.
Unsurprisingly, this breaks the perl 5.6.2 Configure script.
It produces a perl that knows of no signals apart from SIGZERO :(
I'm not quite sure of the portability implications, but -k seems to be supported
on Solaris at least. So -- assuming -k is portable -- trivial patch:
: jm 6...; diff -u Configure.orig Configure
--- Configure.orig 2008-04-28 10:21:20.000000000 +0000
+++ Configure 2008-04-28 10:21:40.000000000 +0000
@@ -14249,7 +14249,7 @@
set signal
if eval $compile_ok; then
- ./signal$_exe | $sort -n +1 | $uniq | $awk -f signal.awk >signal.lst
+ ./signal$_exe | $sort -n -k 1 | $uniq | $awk -f signal.awk >signal.lst
else
echo "(I can't seem be able to compile the whole test program)" >&4
echo "(I'll try it in little pieces.)" >&4
cheers,
--j.
[Please do not change anything below this line]
-----------------------------------------------------------------
---
Flags:
category=install
severity=high
---
Site configuration information for perl v5.6.2:
Configured by jm at Sun Apr 27 22:19:25 UTC 2008.
Summary of my perl5 (revision 5.0 version 6 subversion 2) configuration:
Platform:
osname=linux, osvers=2.6.21.7-2.fc8xen, archname=i686-linux
uname='linux domu-12-31-38-00-69-03 2.6.21.7-2.fc8xen #1 smp fri feb 15 12:
39:36 est 2008 i686 athlon i386 gnulinux '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=und
ef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_S
OURCE -D_FILE_OFFSET_BITS=64',
optimize='-O2',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='4.1.2 20070925 (Red Hat 4.1.2-33)', gccosandvers=
''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksiz
e=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -ldl -lm -lc -lcrypt -lutil
perllibs=-lnsl -ldl -lm -lc -lcrypt -lutil
libc=/lib/libc-2.7.so, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic'
cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib'
Locally applied patches:
---
@INC for perl v5.6.2:
/usr/local/p56/lib/perl5/5.6.2/i686-linux
/usr/local/p56/lib/perl5/5.6.2
/usr/local/p56/lib/perl5/site_perl/5.6.2/i686-linux
/usr/local/p56/lib/perl5/site_perl/5.6.2
/usr/local/p56/lib/perl5/site_perl
.
---
Environment for perl v5.6.2:
HOME=/home/jm
LANG=C
LANGUAGE (unset)
LD_LIBRARY_PATH (unset)
LOGDIR (unset)
PATH=/home/jm/bin:/sbin:/usr/sbin:/etc:/usr/etc:/usr/local/bin:/usr/bin/mh:
/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin
PERL_BADLANG (unset)
SHELL=/bin/bash
Thread Next
-
[perl #53446] GNU coreutils 6.9 breaks Configure
by perlbug-followup