From 27aa37dd3c220e0cdacf6dd79028f6c882f7d913 Mon Sep 17 00:00:00 2001 From: jlam Date: Wed, 30 Aug 2000 18:42:23 +0000 Subject: Update perl to 5.6.0nb2 from perl5-current. Changes from version 5.00404 (from commit log of perl5-current/Makefile): * Interpreter cloning, threads, and concurrency * Lexically scoped warning categories * Unicode and UTF-8 support * Support for interpolating named characters * "our" declarations * Support for strings represented as a vector of ordinals * Improved Perl version numbering system * New syntax for declaring subroutine attributes * File and directory handles can be autovivified * open() with more than two arguments * 64-bit support * Large file support * Long doubles * "more bits" * Enhanced support for sort() subroutines * C allowed * File globbing implemented internally * POSIX character class syntax [: :] supported * Improved C operator * pack() format 'Z' supported * pack() format modifier '!' supported * pack() and unpack() support counted strings * Comments in pack() templates * Weak references * Binary numbers supported * Lvalue subroutines * Some arrows may be omitted in calls through references * Boolean assignment operators are legal lvalues * exists() is supported on subroutine names * exists() and delete() are supported on array elements * Pseudo-hashes work better * Automatic flushing of output buffers * Better diagnostics on meaningless filehandle operations * Where possible, buffered data discarded from duped input filehandle * eof() has the same old magic as <> * binmode() can be used to set :crlf and :raw modes * C<-T> filetest recognizes UTF-8 encoded files as "text" * system(), backticks and pipe open now reflect exec() failure * Improved diagnostics * Diagnostics follow STDERR * syswrite() ease-of-use * Better syntax checks on parenthesized unary operators * Bit operators support full native integer width * Improved security features * C and C may be overridden * $^X variables may now have names longer than one character * New variable $^C reflects C<-c> switch * New variable $^V contains Perl version as a string * Optional Y2K warnings * Modules * Pragmata * dprofpp * find2perl * h2xs * perlcc * perldoc * The Perl Debugger * Simple sort() using { $a <=> $b } and the like are optimized * Optimized assignments to lexical variables * Faster subroutine calls * -Dusethreads means something different * New Configure flags * Threadedness and 64-bitness now more daring * Long Doubles ... See 'perldoc perldelta' for a full list. --- lang/perl5/patches/patch-aa | 223 ++++++++++++++++++++++++-------------------- 1 file changed, 123 insertions(+), 100 deletions(-) (limited to 'lang/perl5/patches/patch-aa') diff --git a/lang/perl5/patches/patch-aa b/lang/perl5/patches/patch-aa index 60d76396c4f..5d9dea1fea9 100644 --- a/lang/perl5/patches/patch-aa +++ b/lang/perl5/patches/patch-aa @@ -1,8 +1,8 @@ -$NetBSD: patch-aa,v 1.15 2000/01/18 22:31:47 tron Exp $ +$NetBSD: patch-aa,v 1.16 2000/08/30 18:42:24 jlam Exp $ ---- Configure.orig Fri Oct 3 13:57:39 1997 -+++ Configure Wed Dec 2 14:30:27 1998 -@@ -65,7 +65,7 @@ +--- Configure.orig Wed Mar 22 15:36:37 2000 ++++ Configure +@@ -70,7 +70,7 @@ fi : Proper PATH setting @@ -11,22 +11,7 @@ $NetBSD: patch-aa,v 1.15 2000/01/18 22:31:47 tron Exp $ paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin" paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin" paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin" -@@ -92,10 +92,10 @@ - esac - - : Sanity checks --if test ! -t 0; then -- echo "Say 'sh $me', not 'sh <$me'" -- exit 1 --fi -+# if test ! -t 0; then -+# echo "Say 'sh $me', not 'sh <$me'" -+# exit 1 -+# fi - - : Test and see if we are running under ksh, either blatantly or in disguise. - if (PATH=.; alias -x) >/dev/null 2>&1; then -@@ -725,7 +725,7 @@ +@@ -955,7 +955,7 @@ archobjs='' : Possible local include directories to search. : Set locincpth to "" in a hint file to defeat local include searches. @@ -35,84 +20,56 @@ $NetBSD: patch-aa,v 1.15 2000/01/18 22:31:47 tron Exp $ locincpth="$locincpth /opt/gnu/include /usr/GNU/include /opt/GNU/include" : : no include file wanted by default -@@ -735,14 +735,14 @@ +@@ -965,13 +965,13 @@ + : change the next line if compiling for Xenix/286 on Xenix/386 xlibpth='/usr/lib/386 /lib/386' - : Possible local library directories to search. -loclibpth="/usr/local/lib /opt/local/lib /usr/gnu/lib" +loclibpth="${PREFIX}/lib /opt/local/lib /usr/gnu/lib" loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib" : general looking path for locating libraries - glibpth="/shlib /usr/shlib /usr/lib/pa1.1 /usr/lib/large" - glibpth="$glibpth /lib /usr/lib $xlibpth" + glibpth="/usr/lib/large /lib /usr/lib $xlibpth" glibpth="$glibpth /lib/large /usr/lib/small /lib/small" -glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib" +glibpth="$glibpth /usr/ccs/lib /usr/ucblib ${PREFIX}/lib" + test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth" + test -f /shlib/libc.so && glibpth="/shlib $glibpth" - : Private path used by Configure to find libraries. Its value - : is prepended to libpth. This variable takes care of special -@@ -753,9 +753,16 @@ - defvoidused=15 +@@ -992,10 +992,17 @@ : List of libraries we want. --libswanted='sfio net socket inet nsl nm ndbm gdbm dbm db malloc dl' --libswanted="$libswanted dld ld sun m c cposix posix ndir dir crypt" --libswanted="$libswanted ucb bsd BSD PW x" + : If anyone needs -lnet, put it in a hint file. +case `uname -s` in -+SunOS) -+ libswanted='sfio net socket inet nsl nm ndbm dbm db malloc dl' -+ libswanted="$libswanted dld ld sun m c cposix posix ndir dir crypt" -+ libswanted="$libswanted ucb bsd BSD PW x" -+ ;; +NetBSD) + libswanted='m crypt' + ;; ++*) + libswanted='sfio socket bind inet nsl nm ndbm gdbm dbm db malloc dl' + libswanted="$libswanted dld ld sun m c cposix posix" + libswanted="$libswanted ndir dir crypt sec" + libswanted="$libswanted ucb bsd BSD PW x iconv" ++ ;; +esac : We probably want to search /usr/shlib before most other libraries. : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist. glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'` -@@ -2365,7 +2372,7 @@ - : determine root of directory hierarchy where package will be installed. - case "$prefix" in - '') -- dflt=`./loc . /usr/local /usr/local /local /opt /usr` -+ dflt=`./loc . ${PREFIX} ${PREFIX} /local /opt /usr` - ;; +@@ -1337,10 +1344,10 @@ + case "$fastread$alldone" in + yescont|yesexit) ;; *) - dflt="$prefix" -@@ -2375,10 +2382,10 @@ - - By default, $package will be installed in $dflt/bin, manual - pages under $dflt/man, etc..., i.e. with $dflt as prefix for --all installation directories. Typically set to /usr/local, but you -+all installation directories. Typically set to ${PREFIX}, but you - may choose /usr if you wish to install $package among your system - binaries. If you wish to have binaries under /bin but manual pages --under /usr/local/man, that's ok: you will be prompted separately -+under ${PREFIX}/man, that's ok: you will be prompted separately - for each of the installation directories, the prefix being only used - to set the defaults. - -@@ -2426,7 +2433,7 @@ - esac' - - : determine where private library files go --: Usual default is /usr/local/lib/perl5. Also allow things like -+: Usual default is ${PREFIX}/lib/perl5. Also allow things like - : /opt/perl/lib, since /opt/perl/lib/perl5 would be redundant. - case "$prefix" in - *perl*) set dflt privlib lib ;; -@@ -2501,7 +2508,7 @@ - case "$archlib" in - '') - case "$privlib" in -- '') dflt=`./loc . "." $prefixexp/lib /usr/local/lib /usr/lib /lib` -+ '') dflt=`./loc . "." $prefixexp/lib ${PREFIX}/lib /usr/lib /lib` - set dflt - eval $prefixup +- if test ! -t 0; then +- echo "Say 'sh Configure', not 'sh