commit ksh for openSUSE:Factory
![](https://seccdn.libravatar.org/avatar/e2145bc5cf53dda95c308a3c75e8fef3.jpg?s=120&d=mm&r=g)
Hello community, here is the log from the commit of package ksh for openSUSE:Factory checked in at Thu Apr 23 20:50:42 CEST 2009. -------- --- ksh/ksh.changes 2009-02-10 19:01:07.000000000 +0100 +++ ksh/ksh.changes 2009-04-08 14:51:49.410866165 +0200 @@ -1,0 +2,36 @@ +Mon Feb 16 11:11:27 CET 2009 - werner@suse.de + +- Update to 2009-03-10 beta test of ksh93t+ for bug fixes + + 09-03-10 If a variable that was left or right justified or zero-filled was + changed with a typeset statement that was left or right justified + or zero-filled, then the original justification no longer affects + the result. + 09-03-10 A bug in the handling of traps when the last command in a script + is a subshell grouping command has been fixed. + 09-03-03 A bug in which an expansion of the form ${!prefix@} could generate + an exception after the return from a function has been fixed. + +------------------------------------------------------------------- +Mon Feb 16 11:11:27 CET 2009 - werner@suse.de + +- Update to 2009-02-02 beta test of ksh93t+ for bug fixes (bnc#472889): + + 09-02-02 A bug in restricted mode in which the value of ENV could be + changed from within a function has been fixed. + 09-02-02 A bug in which an erroneous message indicating that a process + terminated with a coredump has been fixed. + 09-02-02 The exit status when exit was called without an argument from + a signal handler was incorrect and has been fixed. + 09-02-02 A bug in which a function autoloaded in a subshell could cause + a core dump when the subshell completed has been fixed. + 09-02-02 A bug in which 2>&1 inside a command substitution wasn't working + correctly has been fixed. + 09-02-02 A bug in the call stack of arithmetic function with 2 args + returning int has been fixed. + 09-01-30 A bug in which 'eval print \$0' inside a function was giving the + wrong value for $0 has been fixed. + 09-01-28 A bug in which a command substitution could return an exit status + of 127 when the pipefail option is enabled has been fixed. + +------------------------------------------------------------------- @@ -4 +40 @@ -- Update to 2008-20-2 beta test of ksh93t+ for bug fixes (bnc#472889): +- Update to 2009-01-20 beta test of ksh93t+ for bug fixes (bnc#472889): calling whatdependson for head-i586 Old: ---- ast-ksh.2009-01-20.tar.bz2 INIT.2009-01-20.tar.bz2 ksh93-io.dif ksh93-sigjmp.dif New: ---- ast-ksh.2009-03-10.tar.bz2 INIT.2009-03-10.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ksh.spec ++++++ --- /var/tmp/diff_new_pack.c26097/_old 2009-04-23 20:47:45.000000000 +0200 +++ /var/tmp/diff_new_pack.c26097/_new 2009-04-23 20:47:45.000000000 +0200 @@ -26,11 +26,11 @@ PreReq: /bin/ln /bin/rm /etc/bash.bashrc /bin/true AutoReqProv: on Version: 93t -Release: 8 +Release: 10 Summary: Korn Shell BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source: INIT.2009-01-20.tar.bz2 -Source1: ast-ksh.2009-01-20.tar.bz2 +Source: INIT.2009-03-10.tar.bz2 +Source1: ast-ksh.2009-03-10.tar.bz2 Source2: ast-open-locale.2008-07-25.tar.bz2 Source20: Agreement Source21: Warning @@ -49,10 +49,8 @@ Patch10: ksh93-suid_exec.dif Patch11: ksh93-signals.dif Patch12: ksh93-limits.dif -Patch13: ksh93-io.dif Patch14: ksh93-ia64.dif Patch15: ksh93-s390.dif -Patch16: ksh93-sigjmp.dif %global use_suid_exe 0 %global use_locale 0 @@ -113,14 +111,12 @@ %patch10 %patch11 %patch12 -%patch13 %ifarch ia64 %patch14 %endif -%ifarch s390 +%ifarch s390 s390x %patch15 %endif -%patch16 %build test -n "${!LC_*}" && unset "${!LC_*}" @@ -177,6 +173,7 @@ cflags -fPIC RPM_OPT_FLAGS cflags @%{S:22} RPM_OPT_FLAGS cflags -fno-strict-aliasing RPM_OPT_FLAGS + cflags -fno-zero-initialized-in-bss RPM_OPT_FLAGS cflags -g RPM_OPT_FLAGS RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE $LARGEFILE" RPM_OPT_FLAGS="$RPM_OPT_FLAGS $IGNORE $FEATURE" @@ -392,8 +389,35 @@ %{_includedir}/ast/ %changelog +* Mon Feb 16 2009 werner@suse.de +- Update to 2009-03-10 beta test of ksh93t+ for bug fixes + 09-03-10 If a variable that was left or right justified or zero-filled was + changed with a typeset statement that was left or right justified + or zero-filled, then the original justification no longer affects + the result. + 09-03-10 A bug in the handling of traps when the last command in a script + is a subshell grouping command has been fixed. + 09-03-03 A bug in which an expansion of the form ${!prefix@} could generate + an exception after the return from a function has been fixed. +- Update to 2009-02-02 beta test of ksh93t+ for bug fixes (bnc#472889): + 09-02-02 A bug in restricted mode in which the value of ENV could be + changed from within a function has been fixed. + 09-02-02 A bug in which an erroneous message indicating that a process + terminated with a coredump has been fixed. + 09-02-02 The exit status when exit was called without an argument from + a signal handler was incorrect and has been fixed. + 09-02-02 A bug in which a function autoloaded in a subshell could cause + a core dump when the subshell completed has been fixed. + 09-02-02 A bug in which 2>&1 inside a command substitution wasn't working + correctly has been fixed. + 09-02-02 A bug in the call stack of arithmetic function with 2 args + returning int has been fixed. + 09-01-30 A bug in which 'eval print \$0' inside a function was giving the + wrong value for $0 has been fixed. + 09-01-28 A bug in which a command substitution could return an exit status + of 127 when the pipefail option is enabled has been fixed. * Tue Feb 10 2009 werner@suse.de -- Update to 2008-20-2 beta test of ksh93t+ for bug fixes (bnc#472889): +- Update to 2009-01-20 beta test of ksh93t+ for bug fixes (bnc#472889): 09-01-20 A bug in which the exit status specified in an exit trap was not used when a process terminated with a signal has been fixed. 09-01-19 A bug in which a signal whose default action is to terminate ++++++ ast-ksh.2009-01-20.tar.bz2 -> ast-ksh.2009-03-10.tar.bz2 ++++++ ++++ 6559 lines of diff (skipped) ++++++ INIT.2009-01-20.tar.bz2 -> INIT.2009-03-10.tar.bz2 ++++++ diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/bin/package new/bin/package --- old/bin/package 2009-01-01 09:25:10.000000000 +0100 +++ new/bin/package 2009-02-03 14:50:19.000000000 +0100 @@ -26,6 +26,8 @@ PACKAGE_admin_tail_timeout=${PACKAGE_admin_tail_timeout:-"1m"} +CROSS=0 + admin_db=admin.db admin_env=admin.env admin_ditto="ditto --checksum --delete --update --verbose" @@ -44,7 +46,7 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in 0123) USAGE=$' [-? -@(#)$Id: package (AT&T Research) 2008-12-26 $ +@(#)$Id: package (AT&T Research) 2009-02-02 $ ]'$USAGE_LICENSE$' [+NAME?package - source and binary package control] [+DESCRIPTION?The \bpackage\b command controls source and binary @@ -2549,7 +2551,6 @@ # check if $CC is a cross compiler - CROSS=0 if test -f $INITROOT/hello.c then case $action in make|test) warn='' ;; @@ -4019,6 +4020,21 @@ esac } +# check for native ascii 0:yes 1:no + +__isascii__= + +isascii() +{ + case $__isascii__ in + '') case `echo A | od -o | sed -e '/[ ]/!d' -e 's/.*[ ]//'` in + 005101|040412) __isascii__=0 ;; + *) __isascii__=1 ;; + esac + esac + return $__isascii__ +} + case $action in admin) while test ! -f $admin_db @@ -5057,49 +5073,6 @@ cmp -s $i $INSTALLROOT/$i 2>/dev/null || $exec cp $PACKAGEROOT/$i $INSTALLROOT/$i done - case $exec in - '') if test ! -f $INSTALLROOT/bin/.paths -o -w $INSTALLROOT/bin/.paths - then nl=" -" - o=`cat $INSTALLROOT/bin/.paths 2>/dev/null` - v= - n= - case $nl$o in - *${nl}FPATH=*|*#FPATH=*|*[Nn][Oo]FPATH=*) - ;; - *) case $n in - '') ;; - *) n="$n$nl" v="$v|" ;; - esac - n="${n}FPATH=../fun" - v="${v}FPATH" - ;; - esac - case $nl$o in - *${nl}BUILTIN_LIB=*|*#BUILTIN_LIB=*|*[Nn][Oo]BUILTIN_LIB=*) - ;; - *) case $n in - '') ;; - *) n="$n$nl" v="$v|" ;; - esac - if (probe -l C make cc | grep '^CC.DIALECT .* EXPORT=[AD]LL') >/dev/null 2>&1 - then x= - else x='no' - fi - n="${n}${x}BUILTIN_LIB=cmd" - v="${v}BUILTIN_LIB" - ;; - esac - case $n in - ?*) case $o in - ?*) o=`egrep -v "($v)=" $INSTALLROOT/bin/.paths`$nl ;; - esac - echo "# use { # no NO } prefix instead of XX to permanently disable #$nl$o$n" > $INSTALLROOT/bin/.paths - ;; - esac - fi - ;; - esac # check $CC and { cc ld ldd } intercepts @@ -5444,6 +5417,52 @@ esac fi + # mamprobe data should have been generated by this point + + case $exec in + '') if test ! -f $INSTALLROOT/bin/.paths -o -w $INSTALLROOT/bin/.paths + then nl=" +" + o=`cat $INSTALLROOT/bin/.paths 2>/dev/null` + v= + n= + case $nl$o in + *${nl}FPATH=*|*#FPATH=*|*[Nn][Oo]FPATH=*) + ;; + *) case $n in + '') ;; + *) n="$n$nl" v="$v|" ;; + esac + n="${n}FPATH=../fun" + v="${v}FPATH" + ;; + esac + case $nl$o in + *${nl}BUILTIN_LIB=*|*#BUILTIN_LIB=*|*[Nn][Oo]BUILTIN_LIB=*) + ;; + *) case $n in + '') ;; + *) n="$n$nl" v="$v|" ;; + esac + if grep '^setv mam_cc_DIALECT .* EXPORT=[AD]LL' $INSTALLROOT/lib/probe/C/mam/* >/dev/null 2>&1 + then x= + else x='no' + fi + n="${n}${x}BUILTIN_LIB=cmd" + v="${v}BUILTIN_LIB" + ;; + esac + case $n in + ?*) case $o in + ?*) o=`egrep -v "($v)=" $INSTALLROOT/bin/.paths`$nl ;; + esac + echo "# use { # no NO } prefix instead of XX to permanently disable #$nl$o$n" > $INSTALLROOT/bin/.paths + ;; + esac + fi + ;; + esac + # run from separate copies since nmake and ksh may be rebuilt case $EXECROOT in @@ -5694,7 +5713,7 @@ code=1 continue } - else if onpath gunzip && onpath $TAR + else if onpath gunzip && onpath $TAR && isascii then case $TARPROBE in ?*) for i in $TARPROBE do if $TAR ${i}f - /dev/null > /dev/null 2>&1 diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/lib/package/INIT.html new/lib/package/INIT.html --- old/lib/package/INIT.html 2009-01-26 19:57:47.000000000 +0100 +++ new/lib/package/INIT.html 2009-03-12 16:03:12.000000000 +0100 @@ -48,6 +48,12 @@ <P><HR><CENTER><FONT color=red><FONT face=courier><H3><A name="INIT changes">INIT changes</A></H3></FONT></FONT></CENTER> <PRE> +09-03-10 TEST.mk: add .SOURCE:tests if tests is a dir +09-03-03 regress.sh: allow command line unit to override UNIT +09-03-03 mktest.sh: handle IO == $' +09-02-02 package.sh: delay $INSTALLROOT/bin/.paths generation until mamprobe runs +09-01-30 cc.mvs.390: c89 balks at [ ()] in -Dname="..."! +09-01-27 package.sh: add isascii() to use ratz instead of tar 09-01-20 hurl.sh: add --size=bytes option 09-01-08 TEST.mk: add test.* prereqs, multiple arg lists with :T=*: binding 09-01-03 regress.sh: fix UNIT to allow command line override @@ -869,7 +875,7 @@ <TR> <TD align=left></TD> <TD align=center></TD> -<TD align=right>January 26, 2009</TD> +<TD align=right>March 12, 2009</TD> </TR> </TABLE> <P> diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/lib/package/INIT.README new/lib/package/INIT.README --- old/lib/package/INIT.README 2009-01-23 00:52:45.000000000 +0100 +++ new/lib/package/INIT.README 2009-03-12 16:03:12.000000000 +0100 @@ -92,6 +92,12 @@ :::::::: INIT :::::::: +09-03-10 TEST.mk: add .SOURCE:tests if tests is a dir +09-03-03 regress.sh: allow command line unit to override UNIT +09-03-03 mktest.sh: handle IO == $'\n' +09-02-02 package.sh: delay $INSTALLROOT/bin/.paths generation until mamprobe runs +09-01-30 cc.mvs.390: c89 balks at [ ()] in -Dname="..."! +09-01-27 package.sh: add isascii() to use ratz instead of tar 09-01-20 hurl.sh: add --size=bytes option 09-01-08 TEST.mk: add test.* prereqs, multiple arg lists with :T=*: binding 09-01-03 regress.sh: fix UNIT to allow command line override diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/lib/package/INIT.ver new/lib/package/INIT.ver --- old/lib/package/INIT.ver 2009-01-19 12:11:01.000000000 +0100 +++ new/lib/package/INIT.ver 2009-03-12 16:03:12.000000000 +0100 @@ -1 +1 @@ -INIT 2009-01-20 2009-01-20 1 +INIT 2009-03-10 2009-03-10 1 diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/src/cmd/INIT/cc.mvs.390 new/src/cmd/INIT/cc.mvs.390 --- old/src/cmd/INIT/cc.mvs.390 2003-06-12 06:07:50.000000000 +0200 +++ new/src/cmd/INIT/cc.mvs.390 2009-01-30 13:09:13.000000000 +0100 @@ -1,4 +1,4 @@ -: mvs.390 cc wrapper for unix message and exit code semantics : 2003-06-11 : +: mvs.390 cc wrapper for unix message and exit code semantics : 2009-01-30 : HOSTTYPE=mvs.390 @@ -11,6 +11,8 @@ CC=/bin/c++ ccflags="-D_ALL_SOURCE -Wc,dll" objmax=60 +tmpfiles= +unbotch= # -n as *first* arg shows but does not do # -Wc,exportall => -Wl,dll @@ -25,7 +27,7 @@ # -1 -O (default level 1 optimization) # -2 -2 (maximal level 2 optimization) -let argc=0 cmp=0 dll=0 libc=0 dynamic=1 dynamic_objc=0 static_objc=0 relc=0 +let argc=0 cmp=0 dll=0 libc=0 dynamic=1 dynamic_objc=0 static_objc=0 relc=0 botched=0 case $1 in -n) exec=print shift @@ -71,6 +73,13 @@ -D_ALL_SOURCE|-D_ALL_SOURCE=*) arg= ;; + -D*[\ \(\)]*) + arg=${arg#-D} + botch_macro[botched]=${arg%%=*} + botch_value[botched]=${arg#*=} + let botched=botched+1 + arg= + ;; -o) argv[argc]=$arg let argc=argc+1 shift @@ -88,6 +97,21 @@ -Wl,dll)arg= let dll=1 ;; + *.c) if [[ $botched != 0 ]] + then src=$arg + arg=${arg##*/} + unbotch="$unbotch ${arg%.c}.o" + arg=__$arg + tmpfiles="$tmpfiles $arg" + { + while [[ $botched != 0 ]] + do let botched=botched-1 + print -r -- "#define ${botch_macro[botched]} ${botch_value[botched]}" + done + cat $src + } > $arg + fi + ;; *.o) if test 0 != $dynamic then let dynamic_objc=dynamic_objc+1 else let static_objc=static_objc+1 @@ -115,7 +139,7 @@ done tmp=/tmp/cc$$.err -tmpfiles="$tmp" +tmpfiles="$tmp $tmpfiles" # if any dll .o's are in .a then a .x gets generated # but the native cc doesn't jcl for the .x @@ -203,6 +227,9 @@ trap 'rm -f $tmpfiles' 0 1 2 15 $exec $cc $ccflags "$@" 2> $tmp code=$? +for i in $unbotch +do test -f __$i && mv __$i $i +done typeset -l lc while : do if read line diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/src/cmd/INIT/mktest.sh new/src/cmd/INIT/mktest.sh --- old/src/cmd/INIT/mktest.sh 2009-01-03 09:58:56.000000000 +0100 +++ new/src/cmd/INIT/mktest.sh 2009-03-03 07:17:06.000000000 +0100 @@ -32,7 +32,7 @@ 0123) ARGV0="-a $command" USAGE=$' [-? -@(#)$Id: mktest (AT&T Labs Research) 2009-01-03 $ +@(#)$Id: mktest (AT&T Labs Research) 2009-03-03 $ ] '$USAGE_LICENSE$' [+NAME?mktest - generate a regression test scripts] @@ -261,7 +261,6 @@ function RUN { typeset i n p op unit sep output=1 error=1 exitcode=1 - integer z op=$1 shift while : @@ -295,11 +294,12 @@ done print -u$stdout [[ ${DATA[-]} || /dev/fd/0 -ef /dev/fd/$stdin ]] || cat > $TEMP.in - IO=$(<$TEMP.in) - (( z = $(wc -c < $TEMP.in) )) - if (( z && z == ${#IO} )) - then n=-n - else n= + IO=$(cat $TEMP.in; print :) + if [[ $IO == ?*$'\n:' ]] + then IO=${IO%??} + n= + else IO=${IO%?} + n=-n fi { [[ $UMASK != $UMASK_ORIG ]] && umask $UMASK @@ -336,11 +336,12 @@ -) p=$TEMP.in ;; *) p=$WORK/$i ;; esac - IO=$(<$p) - (( z = $(wc -c < $p) )) - if (( z && z == ${#IO} )) - then n=-n - else n= + IO=$(cat $p; print :) + if [[ $IO == ?*$'\n:' ]] + then IO=${IO%??} + n= + else IO=${IO%?} + n=-n fi print -u$stdout -n -r -- $'\t\tINPUT' $n print -u$stdout -r -f " $QUOTE" -- "$i" @@ -349,11 +350,12 @@ print -u$stdout unset DATA[$i] done - IO=$(<$TEMP.out) - (( z = $(wc -c < $TEMP.out) )) - if (( z && z == ${#IO} )) - then n=-n - else n= + IO=$(cat $TEMP.out; print :) + if [[ $IO == ?*$'\n:' ]] + then IO=${IO%??} + n= + else IO=${IO%?} + n=-n fi if [[ $IO != "$OUTPUT" ]] then OUTPUT=$IO @@ -369,12 +371,13 @@ print -u$stdout fi fi - IO=$(<$TEMP.err) + IO=$(cat $TEMP.err; print :) IO=${IO//$command\[*([0-9])\]:\ .\[*([0-9])\]:\ @(EXEC|PROG)\[*([0-9])\]:\ /} - (( z = $(wc -c < $TEMP.err) )) - if (( z && z == ${#IO} )) - then n=-n - else n= + if [[ $IO == ?*$'\n:' ]] + then IO=${IO%??} + n= + else IO=${IO%?} + n=-n fi if [[ $IO != "$ERROR" ]] then ERROR=$IO diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/src/cmd/INIT/package.sh new/src/cmd/INIT/package.sh --- old/src/cmd/INIT/package.sh 2008-12-27 10:39:04.000000000 +0100 +++ new/src/cmd/INIT/package.sh 2009-02-03 14:50:17.000000000 +0100 @@ -44,6 +44,8 @@ PACKAGE_admin_tail_timeout=${PACKAGE_admin_tail_timeout:-"1m"} +CROSS=0 + admin_db=admin.db admin_env=admin.env admin_ditto="ditto --checksum --delete --update --verbose" @@ -62,7 +64,7 @@ case `(getopts '[-][123:xyz]' opt --xyz; echo 0$opt) 2>/dev/null` in 0123) USAGE=$' [-? -@(#)$Id: package (AT&T Research) 2008-12-26 $ +@(#)$Id: package (AT&T Research) 2009-02-02 $ ]'$USAGE_LICENSE$' [+NAME?package - source and binary package control] [+DESCRIPTION?The \bpackage\b command controls source and binary @@ -2567,7 +2569,6 @@ # check if $CC is a cross compiler - CROSS=0 if test -f $INITROOT/hello.c then case $action in make|test) warn='' ;; @@ -4037,6 +4038,21 @@ esac } +# check for native ascii 0:yes 1:no + +__isascii__= + +isascii() +{ + case $__isascii__ in + '') case `echo A | od -o | sed -e '/[ ]/!d' -e 's/.*[ ]//'` in + 005101|040412) __isascii__=0 ;; + *) __isascii__=1 ;; + esac + esac + return $__isascii__ +} + case $action in admin) while test ! -f $admin_db @@ -5075,49 +5091,6 @@ cmp -s $i $INSTALLROOT/$i 2>/dev/null || $exec cp $PACKAGEROOT/$i $INSTALLROOT/$i done - case $exec in - '') if test ! -f $INSTALLROOT/bin/.paths -o -w $INSTALLROOT/bin/.paths - then nl=" -" - o=`cat $INSTALLROOT/bin/.paths 2>/dev/null` - v= - n= - case $nl$o in - *${nl}FPATH=*|*#FPATH=*|*[Nn][Oo]FPATH=*) - ;; - *) case $n in - '') ;; - *) n="$n$nl" v="$v|" ;; - esac - n="${n}FPATH=../fun" - v="${v}FPATH" - ;; - esac - case $nl$o in - *${nl}BUILTIN_LIB=*|*#BUILTIN_LIB=*|*[Nn][Oo]BUILTIN_LIB=*) - ;; - *) case $n in - '') ;; - *) n="$n$nl" v="$v|" ;; - esac - if (probe -l C make cc | grep '^CC.DIALECT .* EXPORT=[AD]LL') >/dev/null 2>&1 - then x= - else x='no' - fi - n="${n}${x}BUILTIN_LIB=cmd" - v="${v}BUILTIN_LIB" - ;; - esac - case $n in - ?*) case $o in - ?*) o=`egrep -v "($v)=" $INSTALLROOT/bin/.paths`$nl ;; - esac - echo "# use { # no NO } prefix instead of XX to permanently disable #$nl$o$n" > $INSTALLROOT/bin/.paths - ;; - esac - fi - ;; - esac # check $CC and { cc ld ldd } intercepts @@ -5462,6 +5435,52 @@ esac fi + # mamprobe data should have been generated by this point + + case $exec in + '') if test ! -f $INSTALLROOT/bin/.paths -o -w $INSTALLROOT/bin/.paths + then nl=" +" + o=`cat $INSTALLROOT/bin/.paths 2>/dev/null` + v= + n= + case $nl$o in + *${nl}FPATH=*|*#FPATH=*|*[Nn][Oo]FPATH=*) + ;; + *) case $n in + '') ;; + *) n="$n$nl" v="$v|" ;; + esac + n="${n}FPATH=../fun" + v="${v}FPATH" + ;; + esac + case $nl$o in + *${nl}BUILTIN_LIB=*|*#BUILTIN_LIB=*|*[Nn][Oo]BUILTIN_LIB=*) + ;; + *) case $n in + '') ;; + *) n="$n$nl" v="$v|" ;; + esac + if grep '^setv mam_cc_DIALECT .* EXPORT=[AD]LL' $INSTALLROOT/lib/probe/C/mam/* >/dev/null 2>&1 + then x= + else x='no' + fi + n="${n}${x}BUILTIN_LIB=cmd" + v="${v}BUILTIN_LIB" + ;; + esac + case $n in + ?*) case $o in + ?*) o=`egrep -v "($v)=" $INSTALLROOT/bin/.paths`$nl ;; + esac + echo "# use { # no NO } prefix instead of XX to permanently disable #$nl$o$n" > $INSTALLROOT/bin/.paths + ;; + esac + fi + ;; + esac + # run from separate copies since nmake and ksh may be rebuilt case $EXECROOT in @@ -5712,7 +5731,7 @@ code=1 continue } - else if onpath gunzip && onpath $TAR + else if onpath gunzip && onpath $TAR && isascii then case $TARPROBE in ?*) for i in $TARPROBE do if $TAR ${i}f - /dev/null > /dev/null 2>&1 diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/src/cmd/INIT/probe.win32 new/src/cmd/INIT/probe.win32 --- old/src/cmd/INIT/probe.win32 2009-01-26 07:07:40.000000000 +0100 +++ new/src/cmd/INIT/probe.win32 2009-02-12 21:36:14.000000000 +0100 @@ -1,5 +1,5 @@ : -# @(#)probe.win32 (AT&T Research) 2009-01-20 +# @(#)probe.win32 (AT&T Research) 2009-02-02 # # win32 specific make C probe initialization # wrapped cc's are easy on uwin @@ -111,7 +111,9 @@ stdinclude= for inc in $include -do if [[ ${inc%/*} -ef /platformsdk ]] +do if [[ ${inc%/*} -ef /msdev/platformsdk ]] + then inc=/msdev/platformsdk/${inc##*/} + elif [[ ${inc%/*} -ef /platformsdk ]] then inc=/platformsdk/${inc##*/} fi for dup in $stdinclude diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/src/cmd/INIT/proto.c new/src/cmd/INIT/proto.c --- old/src/cmd/INIT/proto.c 2009-01-14 17:33:09.000000000 +0100 +++ new/src/cmd/INIT/proto.c 2009-03-02 19:52:18.000000000 +0100 @@ -77,7 +77,7 @@ #if !defined(__LINKAGE__) #define __LINKAGE__ /* 2004-08-11 transition */ #endif -#line 1 "/home/gsf/src/cmd/proto/proto.c" +#line 1 "proto.c" #line 148 @@ -195,14 +195,14 @@ # undef utime # define utime ______utime -#line 1 "/home/gsf/src/lib/libpp/ppproto.c" +#line 1 "../../lib/libpp/ppproto.c" #line 13 static const char id[] = "\n@(#)$Id: proto (AT&T Research) 2008-05-11 $\000\n"; -#line 1 "/home/gsf/src/lib/libpp/ppfsm.c" +#line 1 "../../lib/libpp/ppfsm.c" -#line 1 "/home/gsf/src/lib/libpp/pplib.h" +#line 1 "../../lib/libpp/pplib.h" #line 108 struct ppsymbol; @@ -311,7 +311,7 @@ struct ppfileid id; }; -#line 1 "/home/gsf/src/lib/libpp/pp.h" +#line 1 "../../lib/libpp/pp.h" #line 206 @@ -415,20 +415,20 @@ extern __MANGLE__ int ppprintf __PROTO__((char*, ...)); extern __MANGLE__ int ppsync __PROTO__((void)); -#line 366 "/home/gsf/src/lib/libpp/pplib.h" +#line 366 "../../lib/libpp/pplib.h" #line 1 "../../lib/libpp/ppdef.h" -#line 367 "/home/gsf/src/lib/libpp/pplib.h" +#line 367 "../../lib/libpp/pplib.h" -#line 1 "/home/gsf/src/lib/libpp/ppkey.h" +#line 1 "../../lib/libpp/ppkey.h" #line 16 #line 125 extern __MANGLE__ struct ppkeyword ppkey[]; -#line 368 "/home/gsf/src/lib/libpp/pplib.h" +#line 368 "../../lib/libpp/pplib.h" #line 681 struct ppcontext @@ -528,9 +528,9 @@ extern __MANGLE__ char* pptokstr __PROTO__((char*, int)); extern __MANGLE__ void pptrace __PROTO__((int)); -#line 11 "/home/gsf/src/lib/libpp/ppfsm.c" +#line 11 "../../lib/libpp/ppfsm.c" -#line 1 "/home/gsf/src/lib/libpp/ppfsm.h" +#line 1 "../../lib/libpp/ppfsm.h" #line 185 @@ -545,7 +545,7 @@ extern __MANGLE__ void _pp_refill __PROTO__((int)); -#line 12 "/home/gsf/src/lib/libpp/ppfsm.c" +#line 12 "../../lib/libpp/ppfsm.c" #line 67 @@ -1272,7 +1272,7 @@ -#line 18 "/home/gsf/src/lib/libpp/ppproto.c" +#line 18 "../../lib/libpp/ppproto.c" #line 1 "../../../include/ast/hashkey.h" @@ -1282,7 +1282,7 @@ #line 68 extern __MANGLE__ long strkey __PROTO__((const char*)); -#line 20 "/home/gsf/src/lib/libpp/ppproto.c" +#line 20 "../../lib/libpp/ppproto.c" #line 41 struct proto @@ -1443,7 +1443,7 @@ return s; } -#line 1 "/home/gsf/src/lib/libast/port/astlicense.c" +#line 1 "../../lib/libast/port/astlicense.c" @@ -2483,7 +2483,7 @@ comment(¬ice, &buf, ((char*)0), -1, 0); return (*(( &buf)->nxt>=( &buf)->end?(( &buf)->nxt=( &buf)->end-1):( &buf)->nxt)=0,( &buf)->nxt-( &buf)->buf); } -#line 306 "/home/gsf/src/lib/libpp/ppproto.c" +#line 306 "../../lib/libpp/ppproto.c" #line 318 static char* @@ -4647,7 +4647,7 @@ -#line 266 "/home/gsf/src/cmd/proto/proto.c" +#line 266 "proto.c" diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/src/cmd/INIT/regress.sh new/src/cmd/INIT/regress.sh --- old/src/cmd/INIT/regress.sh 2009-01-03 10:01:09.000000000 +0100 +++ new/src/cmd/INIT/regress.sh 2009-03-04 06:18:55.000000000 +0100 @@ -23,7 +23,7 @@ case $(getopts '[-][123:xyz]' opt --xyz 2>/dev/null; echo 0$opt) in 0123) USAGE=$' [-? -@(#)$Id: regress (AT&T Research) 2009-01-03 $ +@(#)$Id: regress (AT&T Research) 2009-03-03 $ ] '$USAGE_LICENSE$' [+NAME?regress - run regression tests] @@ -498,6 +498,7 @@ function UNIT # cmd arg ... { + (( UNIT_READONLY )) && return typeset cmd=$1 case $cmd in -) shift @@ -1125,7 +1126,7 @@ # main -integer ERRORS=0 EXPORTS=0 TESTS=0 SUBTESTS=0 LINE=0 TESTLINE=0 ITEM=0 LASTITEM=0 COND=0 COUNT +integer ERRORS=0 EXPORTS=0 TESTS=0 SUBTESTS=0 LINE=0 TESTLINE=0 ITEM=0 LASTITEM=0 COND=0 UNIT_READONLY=0 COUNT typeset ARGS COMMAND COPY DIAGNOSTICS ERROR EXEC FLUSHED=0 GROUP=INIT typeset IGNORE INPUT KEEP OUTPUT TEST SOURCE MOVE NOTE UMASK UMASK_ORIG typeset ARGS_ORIG COMMAND_ORIG TITLE UNIT ARGV PREFIX OFFSET IGNORESPACE @@ -1213,6 +1214,10 @@ UMASK_ORIG=$(umask) UMASK=$UMASK_ORIG ARGV=("$@") +if [[ ${ARGV[0]} && ${ARGV[0]} != [-+]* ]] +then UNIT "${ARGV[@]}" + UNIT_READONLY=1 +fi trap 'code=$?; CLEANUP $code' EXIT if [[ ! $TEST_select ]] then TEST_select="[0123456789]*" diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/src/cmd/INIT/RELEASE new/src/cmd/INIT/RELEASE --- old/src/cmd/INIT/RELEASE 2009-01-22 05:56:37.000000000 +0100 +++ new/src/cmd/INIT/RELEASE 2009-03-10 11:18:15.000000000 +0100 @@ -1,3 +1,9 @@ +09-03-10 TEST.mk: add .SOURCE:tests if tests is a dir +09-03-03 regress.sh: allow command line unit to override UNIT +09-03-03 mktest.sh: handle IO == $'\n' +09-02-02 package.sh: delay $INSTALLROOT/bin/.paths generation until mamprobe runs +09-01-30 cc.mvs.390: c89 balks at [ ()] in -Dname="..."! +09-01-27 package.sh: add isascii() to use ratz instead of tar 09-01-20 hurl.sh: add --size=bytes option 09-01-08 TEST.mk: add test.* prereqs, multiple arg lists with :T=*: binding 09-01-03 regress.sh: fix UNIT to allow command line override diff -urN --exclude=CVS --exclude=.cvsignore --exclude=.svn --exclude=.svnignore old/src/cmd/INIT/TEST.mk new/src/cmd/INIT/TEST.mk --- old/src/cmd/INIT/TEST.mk 2009-01-08 13:08:08.000000000 +0100 +++ new/src/cmd/INIT/TEST.mk 2009-03-10 11:17:42.000000000 +0100 @@ -31,6 +31,9 @@ ":TEST:" : .MAKE .OPERATOR local B G P S T test : .INSERT .TESTINIT + if "$("tests":T=FD)" + .SOURCE : tests + end P := $(>:O=1) if "$(P:N=*.tst)" && ! "$(@:V)" B := $(P:B) ++++++ ksh93.dif ++++++ --- /var/tmp/diff_new_pack.c26097/_old 2009-04-23 20:47:49.000000000 +0200 +++ /var/tmp/diff_new_pack.c26097/_new 2009-04-23 20:47:49.000000000 +0200 @@ -1,6 +1,17 @@ +--- src/cmd/ksh93/sh.1 ++++ src/cmd/ksh93/sh.1 2008-09-22 14:11:56.000000000 +0200 +@@ -201,7 +201,7 @@ separated by + .BR \(bv . + The standard output of each command but the last + is connected by a +-.IR pipe (2) ++.IR socketpair (2) + to the standard input of the next command. + Each command, + except possibly the last, --- src/cmd/ksh93/bltins/print.c -+++ src/cmd/ksh93/bltins/print.c 2008-05-05 11:20:21.000000000 +0000 -@@ -103,7 +103,11 @@ static int outexceptf(Sfio_t* iop, int m ++++ src/cmd/ksh93/bltins/print.c 2008-05-05 13:20:21.000000000 +0200 +@@ -86,7 +86,11 @@ static char* nullarg[] = { 0, 0 }; { static char bsd_univ; struct print prdata; @@ -11,9 +22,9 @@ + prdata.options = sh_optecho + 5; +# endif prdata.raw = prdata.echon = 0; - prdata.sh = (Shell_t*)extra; + prdata.sh = ((Shbltin_t*)extra)->shp; NOT_USED(argc); -@@ -116,7 +120,52 @@ static int outexceptf(Sfio_t* iop, int m +@@ -99,7 +103,52 @@ static char* nullarg[] = { 0, 0 }; prdata.sh->universe = 1; } if(!bsd_univ) @@ -67,8 +78,8 @@ prdata.raw = 1; while(argv[1] && *argv[1]=='-') --- src/cmd/ksh93/data/msg.c -+++ src/cmd/ksh93/data/msg.c 2007-12-20 19:01:26.148482219 +0100 -@@ -176,7 +176,7 @@ const char e_bash_login[] = "$HOME/.bash ++++ src/cmd/ksh93/data/msg.c 2007-12-20 19:01:26.000000000 +0100 +@@ -184,7 +184,7 @@ const char e_bash_login[] = "$HOME/.bash const char e_bash_logout[] = "$HOME/.bash_logout"; const char e_bash_profile[] = "$HOME/.bash_profile"; #endif @@ -76,10 +87,10 @@ +const char e_crondir[] = "/var/spool/cron"; const char e_prohibited[] = "login setuid/setgid shells prohibited"; #if SHOPT_SUID_EXEC - # ifdef THISPROG + const char e_suidexec[] = "/etc/suid_exec"; --- src/cmd/ksh93/data/variables.c -+++ src/cmd/ksh93/data/variables.c 2008-09-18 19:22:24.179237867 +0200 -@@ -68,7 +68,7 @@ const struct shtable2 shtab_variables[] ++++ src/cmd/ksh93/data/variables.c 2008-09-18 19:22:24.000000000 +0200 +@@ -68,7 +68,7 @@ const struct shtable2 shtab_variables[] "OPTARG", 0, (char*)0, "OPTIND", NV_NOFREE|NV_INTEGER, (char*)0, "PS4", 0, (char*)0, @@ -89,8 +100,8 @@ "LC_ALL", 0, (char*)0, "LC_COLLATE", 0, (char*)0, --- src/cmd/ksh93/features/options -+++ src/cmd/ksh93/features/options 2007-12-20 19:01:26.184486786 +0100 -@@ -35,7 +35,7 @@ tst cross{ ++++ src/cmd/ksh93/features/options 2007-12-20 19:01:26.000000000 +0100 +@@ -36,7 +36,7 @@ tst cross{ option TEST_L $? test -f /etc/ksh.kshrc -o -f /etc/bash.bashrc && option SYSRC 0 @@ -100,36 +111,25 @@ }end --- src/cmd/ksh93/sh/io.c -+++ src/cmd/ksh93/sh/io.c 2008-09-11 17:16:15.604470938 +0200 -@@ -587,6 +587,7 @@ int sh_close(register int fd) - return(r); - } ++++ src/cmd/ksh93/sh/io.c 2008-09-11 17:16:16.000000000 +0200 +@@ -637,6 +637,7 @@ int sh_close(register int fd) + + #ifdef O_SERVICE +#ifdef O_SERVICE static int onintr(struct addrinfo* addr, void* handle) { -@@ -602,6 +603,7 @@ onintr(struct addrinfo* addr, void* hand +@@ -652,6 +653,7 @@ onintr(struct addrinfo* addr, void* hand sh_chktrap(); return 0; } +#endif - /* - * Mimic open(2) with checks for pseudo /dev/ files. ---- src/cmd/ksh93/sh.1 -+++ src/cmd/ksh93/sh.1 2008-09-22 14:11:56.360975393 +0200 -@@ -201,7 +201,7 @@ separated by - .BR \(bv . - The standard output of each command but the last - is connected by a --.IR pipe (2) -+.IR socketpair (2) - to the standard input of the next command. - Each command, - except possibly the last, + #endif + --- src/cmd/ksh93/sh/main.c -+++ src/cmd/ksh93/sh/main.c 2007-12-20 19:01:26.212490337 +0100 ++++ src/cmd/ksh93/sh/main.c 2007-12-20 19:01:26.000000000 +0100 @@ -125,9 +125,9 @@ int sh_source(Shell_t *shp, Sfio_t *iop, } @@ -141,8 +141,8 @@ +#define REMOTE(m) (!((m).st_mode)&&!((m).st_ino)) #endif - int sh_main(int ac, char *av[], void (*userinit)(int)) -@@ -193,7 +193,7 @@ int sh_main(int ac, char *av[], void (*u + int sh_main(int ac, char *av[], Shinit_f userinit) +@@ -192,7 +192,7 @@ int sh_main(int ac, char *av[], Shinit_f } if(!sh_isoption(SH_RC) && (sh_isoption(SH_BASH) && !sh_isoption(SH_POSIX) #if SHOPT_REMOTE @@ -152,10 +152,10 @@ )) sh_onoption(SH_RC); --- src/cmd/ksh93/sh/suid_exec.c -+++ src/cmd/ksh93/sh/suid_exec.c 2007-12-20 19:01:26.248494902 +0100 -@@ -69,7 +69,11 @@ - # define DEFSHELL "/bin/sh" - #endif ++++ src/cmd/ksh93/sh/suid_exec.c 2007-12-20 19:01:26.000000000 +0100 +@@ -65,7 +65,11 @@ + #define THISPROG "/etc/suid_exec" + #define DEFSHELL "/bin/sh" +#if defined(__linux__) +static void error_exit(const char*) __attribute__ ((noreturn)); @@ -166,19 +166,19 @@ static int endsh(const char*); #ifndef _lib_setregid --- src/cmd/ksh93/tests/attributes.sh -+++ src/cmd/ksh93/tests/attributes.sh 2008-09-18 11:54:26.469549564 +0200 ++++ src/cmd/ksh93/tests/attributes.sh 2008-09-18 11:54:26.000000000 +0200 @@ -195,7 +195,7 @@ hello worldhello worldhello world ! [[ $v1 == "$b1" ]] || err_exit "v1=$v1 should be $b1" [[ $v2 == "$x" ]] || err_exit "v1=$v2 should be $x" --[[ $(env - '!=1' $SHELL -c 'echo ok' 2>/dev/null) == ok ]] || err_exit 'malformed environment terminates shell' -+[[ $(env - "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" '!=1' $SHELL -c 'echo ok' 2>/dev/null) == ok ]] || err_exit 'malformed environment terminates shell' +-[[ $(env '!=1' $SHELL -c 'echo ok' 2>/dev/null) == ok ]] || err_exit 'malformed environment terminates shell' ++[[ $(env "LD_LIBRARY_PATH=$LD_LIBRARY_PATH" '!=1' $SHELL -c 'echo ok' 2>/dev/null) == ok ]] || err_exit 'malformed environment terminates shell' unset var typeset -b var printf '12%Z34' | read -r -N 5 var --- src/cmd/ksh93/tests/builtins.sh -+++ src/cmd/ksh93/tests/builtins.sh 2007-12-20 19:01:26.280498962 +0100 -@@ -332,7 +332,7 @@ ifs=$IFS ++++ src/cmd/ksh93/tests/builtins.sh 2007-12-20 19:01:26.000000000 +0100 +@@ -333,7 +333,7 @@ ifs=$IFS IFS=, set -- $(getconf LIBPATH) IFS=$ifs @@ -188,17 +188,18 @@ do IFS=: set -- $v --- src/cmd/ksh93/tests/path.sh -+++ src/cmd/ksh93/tests/path.sh 2008-09-11 18:02:46.295298918 +0200 -@@ -224,6 +224,6 @@ builtin getconf ++++ src/cmd/ksh93/tests/path.sh 2008-09-11 18:02:46.000000000 +0200 +@@ -227,7 +227,7 @@ builtin getconf getconf UNIVERSE - att # override sticky default 'UNIVERSE = foo' [[ $(PATH=/usr/ucb/bin:/usr/bin echo -n ucb) == 'ucb' ]] || err_exit "ucb universe echo ignores -n option" -[[ $(PATH=/usr/xpg/bin:/usr/bin echo -n att) == '-n att' ]] || err_exit "att universe echo does not ignore -n option" +[[ $(PATH=/usr/xpg/bin:/usr/bin echo -n att) == 'att' ]] || err_exit "att universe echo ignores -n option" - exit $((Errors)) + PATH=$path + --- src/lib/libast/features/align.c -+++ src/lib/libast/features/align.c 2007-12-20 19:01:26.312503019 +0100 ++++ src/lib/libast/features/align.c 2007-12-20 19:01:26.000000000 +0100 @@ -32,6 +32,7 @@ #include "FEATURE/common" @@ -208,7 +209,7 @@ union _u_ { --- src/lib/libast/features/botch.c -+++ src/lib/libast/features/botch.c 2007-12-20 19:01:26.352508090 +0100 ++++ src/lib/libast/features/botch.c 2007-12-20 19:01:26.000000000 +0100 @@ -27,6 +27,7 @@ * generate ast traps for botched standard prototypes */ @@ -218,8 +219,8 @@ #include "FEATURE/lib" --- src/lib/libast/features/lib -+++ src/lib/libast/features/lib 2007-12-20 19:01:26.380511641 +0100 -@@ -507,14 +507,19 @@ tst lib_utime_now note{ utime works with ++++ src/lib/libast/features/lib 2007-12-20 19:01:26.000000000 +0100 +@@ -516,14 +516,19 @@ tst lib_utime_now note{ utime works with }end tst cross{ @@ -247,8 +248,8 @@ }end --- src/lib/libast/misc/procopen.c -+++ src/lib/libast/misc/procopen.c 2007-12-20 19:01:26.412515701 +0100 -@@ -538,7 +538,7 @@ procopen(const char* cmd, char** argv, c ++++ src/lib/libast/misc/procopen.c 2007-12-20 19:01:26.000000000 +0100 +@@ -537,7 +537,7 @@ procopen(const char* cmd, char** argv, c if (!fork()) { sfsprintf(path, sizeof(path), "%d", getppid()); @@ -258,8 +259,8 @@ } sleep(2); --- src/lib/libast/sfio/sfstrtof.h -+++ src/lib/libast/sfio/sfstrtof.h 2007-12-20 19:01:26.448520265 +0100 -@@ -53,7 +53,7 @@ ++++ src/lib/libast/sfio/sfstrtof.h 2007-12-20 19:01:26.000000000 +0100 +@@ -54,7 +54,7 @@ #if !defined(S2F_function) #define S2F_function _sfdscan @@ -269,7 +270,7 @@ #define S2F_scan 1 #ifndef elementsof --- src/lib/libcmd/chmod.c -+++ src/lib/libcmd/chmod.c 2007-12-20 19:02:36.857449589 +0100 ++++ src/lib/libcmd/chmod.c 2007-12-20 19:02:37.000000000 +0100 @@ -161,7 +161,7 @@ b_chmod(int argc, char** argv, void* con int notify = 0; int ignore = 0; ++++++ ksh93-s390.dif ++++++ --- /var/tmp/diff_new_pack.c26097/_old 2009-04-23 20:47:49.000000000 +0200 +++ /var/tmp/diff_new_pack.c26097/_new 2009-04-23 20:47:49.000000000 +0200 @@ -4,7 +4,7 @@ delim = ((unsigned)flags)>>D_FLAG; if(shp->fdstatus[fd]&IOTTY) tty_raw(fd,1); -+#if defined(__s390__) && defined(__linux__) ++#if (defined(__s390__) || defined(__s390x__)) && defined(__linux__) + else if (flags&N_FLAG) + { + struct stat st; ++++++ ksh93-shift_ijs.dif ++++++ --- /var/tmp/diff_new_pack.c26097/_old 2009-04-23 20:47:49.000000000 +0200 +++ /var/tmp/diff_new_pack.c26097/_new 2009-04-23 20:47:49.000000000 +0200 @@ -307,17 +307,3 @@ done cat.o generated make chgrp.o prev chgrp.c ---- src/lib/libcmd/cat.c -+++ src/lib/libcmd/cat.c 2007-12-20 18:50:27.889015921 +0100 -@@ -137,9 +137,11 @@ vcat(register char* states, Sfio_t *fdin - { - cpold = cp; - /* skip over printable characters */ -+#if SHOPT_MULTIBYTE - if (mbwide()) - while ((n = (m = mbsize(cp)) < 2 ? states[*cp++] : (cp += m, states['a'])) == 0); - else -+#endif - while ((n = states[*cp++]) == 0); - if (n==T_ENDBUF) - { ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de