This commit is contained in:
parent
eca1ec9781
commit
c9bbc8ab9c
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9b4e2c8e21a4d8866f8a9db4f5d0972920653df4cec4b67833ffbbc9b9756193
|
||||
size 265309
|
3
INIT.2009-01-20.tar.bz2
Normal file
3
INIT.2009-01-20.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7a23e629bdfc7af74ed894ba59a850d957efb3f6e325343b785b1d36f9c694a6
|
||||
size 266627
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8b5f4bddbdf46804b68194e0716e0aba24e99f4f6d85c3c8d5b2e9115d721280
|
||||
size 1405298
|
3
ast-ksh.2009-01-20.tar.bz2
Normal file
3
ast-ksh.2009-01-20.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7f2109dd30064a1835d44a31ba3d36f77a1866208a068834cd9c7b7d15e709e9
|
||||
size 1410033
|
36
ksh.changes
36
ksh.changes
@ -1,3 +1,39 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 10 18:57:26 CET 2009 - werner@suse.de
|
||||
|
||||
- Update to 2008-20-2 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
|
||||
a process could be ingored when the process is running a sub-shell
|
||||
has been fixed.
|
||||
09-01-19 A bug in which sending SIGWINCH to a process that reads from a pipe
|
||||
could cause a memory fault has been fixed.
|
||||
09-01-13 A bug in which background jobs and pipelines that were not waited
|
||||
for could, in rare instantes, cause the shell to go into an infinite
|
||||
loop or fail has been fixed.
|
||||
09-01-06 A bug in indexed arrays of compound variables in which referencing
|
||||
non-existant sub-variable in an arithmetic expression could cause
|
||||
the sub-variable to be created has been fixed.
|
||||
09-01-05 A bug in which the \ character did not escape extened regular
|
||||
expression pattern characters has been fixed.
|
||||
08-12-24 A bug in which killing the last element of a pipe did not cause
|
||||
a write to the pipe to generate a SIGPIPE has been fixed.
|
||||
08-12-19 A bug which could cause command substitution to hang when the
|
||||
last element of a pipeline in a command substitution was a built-in
|
||||
and the output was more that PIPE_BUFF.
|
||||
08-12-18 A bug which occurs when a here documented marker embedded in a
|
||||
command substitution occurs on a buffer boundary has been fixed.
|
||||
08-12-17 A bug in the output of typeset -p for variables that had attributes
|
||||
but did not have a value has been fixed.
|
||||
08-12-16 A bug in which a name reference to a name reference variable that
|
||||
references an array element has been fixed.
|
||||
08-12-16 A bug in which a variable given both the -A and -C attribute along
|
||||
with an initial assignment didn't work correctly has been fixed.
|
||||
|
||||
- Initialize flag variable for job handling
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 17 15:16:32 CET 2008 - werner@suse.de
|
||||
|
||||
|
52
ksh.spec
52
ksh.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package ksh (Version 93t)
|
||||
#
|
||||
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -19,21 +19,18 @@
|
||||
|
||||
|
||||
Name: ksh
|
||||
BuildRequires: bind-libs bind-utils bison flex gdbm-devel glibc-devel ncurses-devel procps psmisc pwdutils zlib-devel
|
||||
%if %suse_version > 1020
|
||||
BuildRequires: libbz2-devel
|
||||
%endif
|
||||
BuildRequires: bind-libs bind-utils bison flex gdbm-devel glibc-devel libbz2-devel ncurses-devel procps psmisc pwdutils zlib-devel
|
||||
Url: http://www.research.att.com/~gsf/download/
|
||||
License: Common Public License Version 1.0 (CPL1.0)
|
||||
Group: System/Shells
|
||||
PreReq: /bin/ln /bin/rm /etc/bash.bashrc /bin/true
|
||||
AutoReqProv: on
|
||||
Version: 93t
|
||||
Release: 7
|
||||
Release: 8
|
||||
Summary: Korn Shell
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
Source: INIT.2008-12-12.tar.bz2
|
||||
Source1: ast-ksh.2008-12-12.tar.bz2
|
||||
Source: INIT.2009-01-20.tar.bz2
|
||||
Source1: ast-ksh.2009-01-20.tar.bz2
|
||||
Source2: ast-open-locale.2008-07-25.tar.bz2
|
||||
Source20: Agreement
|
||||
Source21: Warning
|
||||
@ -55,6 +52,7 @@ 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
|
||||
|
||||
@ -93,7 +91,7 @@ Authors:
|
||||
Phong Vo <kpv@research.att.com>
|
||||
|
||||
%prep
|
||||
%setup -n ksh93 -c -a 0 -a 1 -a 2
|
||||
%setup -q -n ksh93 -c -a 0 -a 1 -a 2
|
||||
find share/ \( -name chef -o -name fudd -o -name piglatin -o -name valley \) -a -type d |\
|
||||
xargs -r rm -vrf
|
||||
find share/ ! \( -name libast -o -name libcmd -o -name libdll -o -name libshell \) -a -type f |\
|
||||
@ -122,6 +120,7 @@ find share/ -type d -a -empty | xargs -r rm -vrf
|
||||
%ifarch s390
|
||||
%patch15
|
||||
%endif
|
||||
%patch16
|
||||
|
||||
%build
|
||||
test -n "${!LC_*}" && unset "${!LC_*}"
|
||||
@ -251,10 +250,10 @@ find share/ -type d -a -empty | xargs -r rm -vrf
|
||||
${suidex} -Wl,-rpath-link,${root}/lib -Wl,-rpath,/%{_lib}/ast
|
||||
pushd ${test}
|
||||
sleep 5
|
||||
LD_LIBRARY_PATH=${root}/lib SHELL=${root}/bin/ksh ${root}/bin/ksh shtests
|
||||
LD_LIBRARY_PATH=${root}/lib PATH=$PATH:${root}/bin SHELL=${root}/bin/ksh ${root}/bin/ksh shtests
|
||||
popd
|
||||
pushd ${root}/bin
|
||||
set -- $(LD_LIBRARY_PATH=${root}/lib PATH=$PATH:. shcomp --version 2>&1)
|
||||
set -- $(LD_LIBRARY_PATH=${root}/lib PATH=$PATH:${root}/bin shcomp --version 2>&1)
|
||||
eval version=\${$#}
|
||||
LD_LIBRARY_PATH=${root}/lib PATH=$PATH:. shcomp --nroff 2>&1 | \
|
||||
sed 's/\(\.TH .*\)/\1 "2003-03-02" "" "Korn shell utilities"/' > ../man/man1/shcomp.1
|
||||
@ -393,6 +392,37 @@ fi
|
||||
%{_includedir}/ast/
|
||||
|
||||
%changelog
|
||||
* Tue Feb 10 2009 werner@suse.de
|
||||
- Update to 2008-20-2 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
|
||||
a process could be ingored when the process is running a sub-shell
|
||||
has been fixed.
|
||||
09-01-19 A bug in which sending SIGWINCH to a process that reads from a pipe
|
||||
could cause a memory fault has been fixed.
|
||||
09-01-13 A bug in which background jobs and pipelines that were not waited
|
||||
for could, in rare instantes, cause the shell to go into an infinite
|
||||
loop or fail has been fixed.
|
||||
09-01-06 A bug in indexed arrays of compound variables in which referencing
|
||||
non-existant sub-variable in an arithmetic expression could cause
|
||||
the sub-variable to be created has been fixed.
|
||||
09-01-05 A bug in which the \ character did not escape extened regular
|
||||
expression pattern characters has been fixed.
|
||||
08-12-24 A bug in which killing the last element of a pipe did not cause
|
||||
a write to the pipe to generate a SIGPIPE has been fixed.
|
||||
08-12-19 A bug which could cause command substitution to hang when the
|
||||
last element of a pipeline in a command substitution was a built-in
|
||||
and the output was more that PIPE_BUFF.
|
||||
08-12-18 A bug which occurs when a here documented marker embedded in a
|
||||
command substitution occurs on a buffer boundary has been fixed.
|
||||
08-12-17 A bug in the output of typeset -p for variables that had attributes
|
||||
but did not have a value has been fixed.
|
||||
08-12-16 A bug in which a name reference to a name reference variable that
|
||||
references an array element has been fixed.
|
||||
08-12-16 A bug in which a variable given both the -A and -C attribute along
|
||||
with an initial assignment didn't work correctly has been fixed.
|
||||
- Initialize flag variable for job handling
|
||||
* Wed Dec 17 2008 werner@suse.de
|
||||
- Add workaround for bug in s390 architecture where named pipes aka
|
||||
fifos are in blocking mode which cause read failures in some sort
|
||||
|
@ -302,8 +302,8 @@
|
||||
prev cat.c
|
||||
meta cat.o %.c>%.o cat.c cat
|
||||
prev cat.c
|
||||
-exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -DUSAGE_LICENSE=\""[-author?Glenn Fowler <gsf@research.att.com>][-author?David Korn <dgk@research.att.com>][-copyright?Copyright (c) 1992-2008 AT&T Intellectual Property][-license?http://www.opensource.org/licenses/cpl1.0.txt][--catalog?libcmd]"\" -D_BLD_cmd -D_PACKAGE_ast -c cat.c
|
||||
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -DUSAGE_LICENSE=\""[-author?Glenn Fowler <gsf@research.att.com>][-author?David Korn <dgk@research.att.com>][-copyright?Copyright (c) 1992-2008 AT&T Intellectual Property][-license?http://www.opensource.org/licenses/cpl1.0.txt][--catalog?libcmd]"\" -D_BLD_cmd -D_PACKAGE_ast -DSHOPT_MULTIBYTE -c cat.c
|
||||
-exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -DUSAGE_LICENSE=\""[-author?Glenn Fowler <gsf@research.att.com>][-author?David Korn <dgk@research.att.com>][-copyright?Copyright (c) 1992-2009 AT&T Intellectual Property][-license?http://www.opensource.org/licenses/cpl1.0.txt][--catalog?libcmd]"\" -D_BLD_cmd -D_PACKAGE_ast -c cat.c
|
||||
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -DUSAGE_LICENSE=\""[-author?Glenn Fowler <gsf@research.att.com>][-author?David Korn <dgk@research.att.com>][-copyright?Copyright (c) 1992-2009 AT&T Intellectual Property][-license?http://www.opensource.org/licenses/cpl1.0.txt][--catalog?libcmd]"\" -D_BLD_cmd -D_PACKAGE_ast -DSHOPT_MULTIBYTE -c cat.c
|
||||
done cat.o generated
|
||||
make chgrp.o
|
||||
prev chgrp.c
|
||||
|
10
ksh93-sigjmp.dif
Normal file
10
ksh93-sigjmp.dif
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/cmd/ksh93/sh/jobs.c
|
||||
+++ src/cmd/ksh93/sh/jobs.c 2009-02-10 18:43:10.500700867 +0100
|
||||
@@ -1158,6 +1158,7 @@ int job_post(pid_t pid, pid_t join)
|
||||
freelist = pw->p_nxtjob;
|
||||
else
|
||||
pw = new_of(struct process,0);
|
||||
+ pw->p_flag = 0;
|
||||
job.numpost++;
|
||||
if(join && job.pwlist)
|
||||
{
|
@ -25,15 +25,6 @@
|
||||
{
|
||||
if(c=='(')
|
||||
m++;
|
||||
@@ -305,7 +305,7 @@ skip:
|
||||
cp = nxtarg(tp,0);
|
||||
if(!op)
|
||||
errormsg(SH_DICT,ERROR_exit(2),e_badop,binop);
|
||||
- if(op==TEST_AND | op==TEST_OR)
|
||||
+ if(op==TEST_AND || op==TEST_OR)
|
||||
tp->ap--;
|
||||
return(test_binop(op,arg,cp));
|
||||
}
|
||||
@@ -436,7 +436,7 @@ int test_unop(register int op,register c
|
||||
|
||||
int test_binop(register int op,const char *left,const char *right)
|
||||
|
Loading…
Reference in New Issue
Block a user