[ksh/f14/master] - ksh updated to 2010-11-22
Michal Hlavinka
mhlavink at fedoraproject.org
Fri Nov 26 11:39:04 UTC 2010
commit 767bfb18de8d1623b81a773d7e858ea0a0302320
Author: Michal Hlavinka <mhlavink at redhat.com>
Date: Fri Nov 26 12:39:09 2010 +0100
- ksh updated to 2010-11-22
.gitignore | 2 ++
expectedresults.log | 15 ---------------
ksh-20100826-fixregr.patch | 32 ++++++++++++++++++--------------
ksh.spec | 14 ++++++++------
sources | 4 ++--
5 files changed, 30 insertions(+), 37 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 6c00c74..137b89e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,5 @@ INIT.2010-07-01.tgz
/INIT.2010-10-10.tgz
/ast-ksh.2010-10-26.tgz
/INIT.2010-10-26.tgz
+/ast-ksh.2010-11-22.tgz
+/INIT.2010-11-22.tgz
diff --git a/expectedresults.log b/expectedresults.log
index 0ea2202..e69de29 100644
--- a/expectedresults.log
+++ b/expectedresults.log
@@ -1,15 +0,0 @@
- basic.sh[438]: early termination not causing broken pipe
-test basic failed [ 97 tests 1 error ]
- basic.sh[438]: early termination not causing broken pipe
-test basic(C.UTF-8) failed [ 97 tests 1 error ]
- shcomp-basic.ksh[438]: early termination not causing broken pipe
-test basic(shcomp) failed [ 97 tests 1 error ]
- signal.sh[55]: pipe with --pipefail PIPE trap hangs
- signal.sh[296]: kill -PIPE $$ failed, required termination by signal 'KILL'
-test signal failed [ 37 tests 2 errors ]
- signal.sh[55]: pipe with --pipefail PIPE trap hangs
- signal.sh[296]: kill -PIPE $$ failed, required termination by signal 'KILL'
-test signal(C.UTF-8) failed [ 37 tests 2 errors ]
- shcomp-signal.ksh[55]: pipe with --pipefail PIPE trap hangs
- shcomp-signal.ksh[296]: kill -PIPE $$ failed, required termination by signal 'KILL'
-test signal(shcomp) failed [ 37 tests 2 errors ]
diff --git a/ksh-20100826-fixregr.patch b/ksh-20100826-fixregr.patch
index 9b7cc35..1b7fdbe 100644
--- a/ksh-20100826-fixregr.patch
+++ b/ksh-20100826-fixregr.patch
@@ -1,19 +1,23 @@
-diff -up ksh-20101026/src/cmd/ksh93/tests/builtins.sh.fixregr ksh-20101026/src/cmd/ksh93/tests/builtins.sh
---- ksh-20101026/src/cmd/ksh93/tests/builtins.sh.fixregr 2010-10-27 08:52:38.000000000 +0200
-+++ ksh-20101026/src/cmd/ksh93/tests/builtins.sh 2010-11-01 08:49:42.135892758 +0100
-@@ -293,7 +293,7 @@ fi
+diff -up ksh-20101122/src/cmd/ksh93/tests/builtins.sh.fixregr ksh-20101122/src/cmd/ksh93/tests/builtins.sh
+--- ksh-20101122/src/cmd/ksh93/tests/builtins.sh.fixregr 2010-10-27 08:52:38.000000000 +0200
++++ ksh-20101122/src/cmd/ksh93/tests/builtins.sh 2010-11-26 10:17:05.653551931 +0100
+@@ -291,9 +291,9 @@ then err_exit "printf '%..*s' not workin
+ fi
+ [[ $(printf '%q\n') == '' ]] || err_exit 'printf "%q" with missing arguments'
# we won't get hit by the one second boundary twice, right?
- [[ $(printf '%T\n' now) == "$(date)" ]] ||
- [[ $(printf '%T\n' now) == "$(date)" ]] ||
+-[[ $(printf '%T\n' now) == "$(date)" ]] ||
+-[[ $(printf '%T\n' now) == "$(date)" ]] ||
-err_exit 'printf "%T" now'
-+err_exit 'printf "%T" now'"$(printf '%T\n' now) != $(date)"
++[[ $(printf '%T\n' now | sed 's/GMT/UTC/') == "$(date)" ]] ||
++[[ $(printf '%T\n' now | sed 's/GMT/UTC/') == "$(date)" ]] ||
++err_exit 'printf "%T" now = '"$(printf '%T\n' now) != $(date)"
behead()
{
read line
-diff -up ksh-20101026/src/cmd/ksh93/tests/locale.sh.fixregr ksh-20101026/src/cmd/ksh93/tests/locale.sh
---- ksh-20101026/src/cmd/ksh93/tests/locale.sh.fixregr 2010-10-26 12:12:34.000000000 +0200
-+++ ksh-20101026/src/cmd/ksh93/tests/locale.sh 2010-11-01 09:37:38.719975976 +0100
-@@ -105,6 +105,7 @@ if (( $($SHELL -c $'export LC_ALL='$loca
+diff -up ksh-20101122/src/cmd/ksh93/tests/locale.sh.fixregr ksh-20101122/src/cmd/ksh93/tests/locale.sh
+--- ksh-20101122/src/cmd/ksh93/tests/locale.sh.fixregr 2010-11-13 01:29:23.000000000 +0100
++++ ksh-20101122/src/cmd/ksh93/tests/locale.sh 2010-11-26 10:08:17.334737934 +0100
+@@ -104,6 +104,7 @@ if (( $($SHELL -c $'export LC_ALL='$loca
then LC_ALL=$locale $SHELL -c b1=$'"\342\202\254\342\202\254\342\202\254\342\202\254w\342\202\254\342\202\254\342\202\254\342\202\254"; [[ ${b1:4:1} == w ]]' || err_exit 'multibyte ${var:offset:len} not working correctly'
fi
@@ -21,7 +25,7 @@ diff -up ksh-20101026/src/cmd/ksh93/tests/locale.sh.fixregr ksh-20101026/src/cmd
#$SHELL -c 'export LANG='$locale'; printf "\u[20ac]\u[20ac]" > $tmp/two_euro_chars.txt'
printf $'\342\202\254\342\202\254' > $tmp/two_euro_chars.txt
exp="6 2 6"
-@@ -112,11 +113,11 @@ set -- $($SHELL -c "
+@@ -111,11 +112,11 @@ set -- $($SHELL -c "
unset LC_CTYPE
export LANG=$locale
export LC_ALL=C
@@ -36,7 +40,7 @@ diff -up ksh-20101026/src/cmd/ksh93/tests/locale.sh.fixregr ksh-20101026/src/cmd
")
got=$*
[[ $got == $exp ]] || err_exit "command wc LC_ALL default failed -- expected '$exp', got '$got'"
-@@ -135,6 +136,8 @@ set -- $($SHELL -c "
+@@ -134,6 +135,8 @@ set -- $($SHELL -c "
got=$*
[[ $got == $exp ]] || err_exit "builtin wc LC_ALL default failed -- expected '$exp', got '$got'"
@@ -45,7 +49,7 @@ diff -up ksh-20101026/src/cmd/ksh93/tests/locale.sh.fixregr ksh-20101026/src/cmd
# multibyte char straddling buffer boundary
{
-@@ -191,6 +194,7 @@ do exp=$1
+@@ -190,6 +193,7 @@ do exp=$1
done
# setocale(LC_ALL,"") after setlocale() initialization
diff --git a/ksh.spec b/ksh.spec
index e64adf4..f1a81c8 100644
--- a/ksh.spec
+++ b/ksh.spec
@@ -1,11 +1,11 @@
-%global releasedate 2010-10-26
+%global releasedate 2010-11-22
Name: ksh
Summary: The Original ATT Korn Shell
URL: http://www.kornshell.com/
Group: System Environment/Shells
License: CPL
-Version: 20101026
+Version: 20101122
Release: 1%{?dist}
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
@@ -24,6 +24,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Conflicts: pdksh
Requires: coreutils, glibc-common, diffutils
BuildRequires: bison
+# regression test suite uses 'ps' from procps
+BuildRequires: procps
Requires(post): grep, coreutils
Requires(preun): grep, coreutils
@@ -63,9 +65,7 @@ install -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.kshrc
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/kshrc
%check
-SHELL=$(ls $(pwd)/arch/*/bin/ksh)
-cp $SHELL ${SHELL}4check
-export SHELL=${SHELL}4check
+export SHELL=$(ls $(pwd)/arch/*/bin/ksh)
cd src/cmd/ksh93/tests/
ulimit -c unlimited
if [ ! -e /dev/fd ]
@@ -74,7 +74,6 @@ then
exit 0
fi
$SHELL ./shtests 2>&1 | tee testresults.log
-killall ksh4check -s SIGKILL && echo "Error: Some ksh test runs hanged" >>filteredresults.log
sed -e '/begins at/d' -e '/ 0 error/d' -e 's/at [^\[]*\[/\[/' testresults.log -e '/tests skipped/d' >filteredresults.log
if ! cmp filteredresults.log %{SOURCE5} >/dev/null || ls core.*
then
@@ -119,6 +118,9 @@ fi
rm -rf $RPM_BUILD_ROOT
%changelog
+* Tue Nov 23 2010 Michal Hlavinka <mhlavink at redhat.com> - 20101122-1
+- ksh updated to 2010-11-22
+
* Mon Nov 01 2010 Michal Hlavinka <mhlavink at redhat.com> - 20101026-1
- ksh updated to 2010-10-26
diff --git a/sources b/sources
index e521835..3b5721d 100644
--- a/sources
+++ b/sources
@@ -1,2 +1,2 @@
-36364da442036228ff000eeadd8fdf3a ast-ksh.2010-10-26.tgz
-db3454fa216c67bb68b5f9d9f8b31c0b INIT.2010-10-26.tgz
+ac63a00fbe6e4c6109f74b9013bede3e ast-ksh.2010-11-22.tgz
+12f259fe7ce1977ee0b8a4622b6cfac7 INIT.2010-11-22.tgz
More information about the scm-commits
mailing list