OBS User unknown 2008-12-18 14:28:49 +00:00 committed by Git OBS Bridge
parent bb0004ef6f
commit eca1ec9781
11 changed files with 173 additions and 101 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d202be3716abd4afe68e5be24cb5f53a538ccd6f94f0aa0d6c1aa924424967f7
size 265376

3
INIT.2008-12-12.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9b4e2c8e21a4d8866f8a9db4f5d0972920653df4cec4b67833ffbbc9b9756193
size 265309

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:afc94ec1adcaaa31f33f1f0cffd91a5088812162fbf214f0e6b7bf6f601f79e3
size 1399334

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b5f4bddbdf46804b68194e0716e0aba24e99f4f6d85c3c8d5b2e9115d721280
size 1405298

View File

@ -1,3 +1,44 @@
-------------------------------------------------------------------
Wed Dec 17 15:16:32 CET 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
of shell code test cases
-------------------------------------------------------------------
Wed Dec 17 13:25:33 CET 2008 - werner@suse.de
- Add workaround for bug in glibc with signbit() macro that is that
the inlined part for long doubles does not work on IA64
-------------------------------------------------------------------
Mon Dec 15 11:25:24 CET 2008 - werner@suse.de
- Switch to 2008-12-12 beta test of ksh93t+ for bug fixes:
08-12-10 The [[ -t fd ]] test was fixed to handle fd>9.
08-12-10 A bug where function stack misalignment could cause a
bus error has been fixed.
08-12-07 A bug in typeset -m which occured when the target node
was an associative array element has been fixed.
08-12-04 The sign of floating point zero is preserved across
arithmetic function calls.
08-12-04 A bug that caused print(1) to produce garbled
stdout/stderr output has been fixed.
08-12-04 A bug in which printf "%d\n" "'<euro>'" did not output
the numerical value of the EURO symbol has been fixed.
08-11-20 A bug which could cause a core dump if a function
compiled with shcomp was found has been fixed.
08-11-20 A bug in which jobs were not cleared from the jobs table
for interactive shells when the pipefail option is on
has been fixed.
08-11-11 A bug in which running a simple command & inside a
function would not return the correct process id has
been fixed.
08-11-06 A bug which could cause a core dump when the _ reference
variable was used as an embedded type with a compound
assignment has been fixed.
-------------------------------------------------------------------
Fri Nov 4 11:06:16 CET 2008 - werner@suse.de

View File

@ -29,11 +29,11 @@ Group: System/Shells
PreReq: /bin/ln /bin/rm /etc/bash.bashrc /bin/true
AutoReqProv: on
Version: 93t
Release: 6
Release: 7
Summary: Korn Shell
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: INIT.2008-11-04.tar.bz2
Source1: ast-ksh.2008-11-04.tar.bz2
Source: INIT.2008-12-12.tar.bz2
Source1: ast-ksh.2008-12-12.tar.bz2
Source2: ast-open-locale.2008-07-25.tar.bz2
Source20: Agreement
Source21: Warning
@ -52,6 +52,9 @@ Patch9: ksh93-compat.dif
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
%global use_suid_exe 0
%global use_locale 0
@ -112,6 +115,13 @@ find share/ -type d -a -empty | xargs -r rm -vrf
%patch10
%patch11
%patch12
%patch13
%ifarch ia64
%patch14
%endif
%ifarch s390
%patch15
%endif
%build
test -n "${!LC_*}" && unset "${!LC_*}"
@ -156,18 +166,30 @@ find share/ -type d -a -empty | xargs -r rm -vrf
LARGEFILE="-D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
fi
rm -f ./test64
RPM_OPT_FLAGS=$(echo "${RPM_OPT_FLAGS}"|sed -r 's/ +-g[0-9]?//')
CCFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE $LARGEFILE -fPIC"
CCFLAGS="$CCFLAGS -g -pipe $IGNORE $FEATURE"
cflags -fno-strict-aliasing CCFLAGS
cflags @%{S:22} CCFLAGS
case "$RPM_ARCH" in
ia64) RPM_OPT_FLAGS="${RPM_OPT_FLAGS//-O[s0-9]/-O}" ;;
s390) RPM_OPT_FLAGS="${RPM_OPT_FLAGS//-O[s0-9]/-O}" ;;
ppc*) RPM_OPT_FLAGS="${RPM_OPT_FLAGS//-O[s0-9]/-O}" ;;
esac
RPM_OPT_FLAGS=$(echo "${RPM_OPT_FLAGS}"|sed -r 's/[[:blank:]]+-g[0-9]?//g')
UNIVERSE=att
CC=gcc
cflags -std=gnu99 RPM_OPT_FLAGS
cflags -fPIC RPM_OPT_FLAGS
cflags @%{S:22} RPM_OPT_FLAGS
cflags -fno-strict-aliasing 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"
LDFLAGS="-lm"
HOSTTYPE=${RPM_ARCH%%*-linux*}
CC=gcc
mam_cc_L=use
UNIVERSE=att
export CCFLAGS LDFLAGS CC mam_cc_L UNIVERSE
bin/package make CC=$CC cc=$CC
mam_cc_OPTIMIZE=-pipe
export mam_cc_L mam_cc_OPTIMIZE HOSTTYPE LDFLAGS RPM_OPT_FLAGS UNIVERSE
for mam in $(find ${PWD}/ -name Mamfile); do
sed -ri '/^exec.*\$\{CC\}/{ s/(\$\{CC\})/\1 \$\{RPM_OPT_FLAGS\}/g; }' $mam
done
bin/package make CC="$CC"
root=$(echo ${PWD}/arch/linux*)
test -d $root || exit 1
log=${root}/lib/package/gen/make.out
@ -371,6 +393,37 @@ fi
%{_includedir}/ast/
%changelog
* 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
of shell code test cases
* Wed Dec 17 2008 werner@suse.de
- Add workaround for bug in glibc with signbit() macro that is that
the inlined part for long doubles does not work on IA64
* Mon Dec 15 2008 werner@suse.de
- Switch to 2008-12-12 beta test of ksh93t+ for bug fixes:
08-12-10 The [[ -t fd ]] test was fixed to handle fd>9.
08-12-10 A bug where function stack misalignment could cause a
bus error has been fixed.
08-12-07 A bug in typeset -m which occured when the target node
was an associative array element has been fixed.
08-12-04 The sign of floating point zero is preserved across
arithmetic function calls.
08-12-04 A bug that caused print(1) to produce garbled
stdout/stderr output has been fixed.
08-12-04 A bug in which printf "%%d\n" "'<euro>'" did not output
the numerical value of the EURO symbol has been fixed.
08-11-20 A bug which could cause a core dump if a function
compiled with shcomp was found has been fixed.
08-11-20 A bug in which jobs were not cleared from the jobs table
for interactive shells when the pipefail option is on
has been fixed.
08-11-11 A bug in which running a simple command & inside a
function would not return the correct process id has
been fixed.
08-11-06 A bug which could cause a core dump when the _ reference
variable was used as an embedded type with a compound
assignment has been fixed.
* Tue Nov 04 2008 werner@suse.de
- Switch to 2008-11-04 of ksh93t for a minor and minimal fix within
the shell syntax parser.

17
ksh93-ia64.dif Normal file
View File

@ -0,0 +1,17 @@
--- src/lib/libast/sfio/sfcvt.c
+++ src/lib/libast/sfio/sfcvt.c 2008-12-17 11:56:17.000000000 +0000
@@ -56,6 +56,14 @@ static char *Zero = "0";
#define _lib_signbit 1
#endif
+#if defined(__ia64__) && defined(signbit)
+# if defined __GNUC__ && __GNUC__ >= 4
+# define __signbitl(f) __builtin_signbitl(f)
+# elif _lib_copysignl
+# define __signbitl(f) (int)(copysignl(1.0,(f))<0.0)
+# endif
+#endif
+
#if ! _lib_signbit
#if ! _ast_fltmax_double
static int neg0ld(Sfdouble_t f)

20
ksh93-io.dif Normal file
View File

@ -0,0 +1,20 @@
--- src/cmd/ksh93/sh/io.c
+++ src/cmd/ksh93/sh/io.c 2008-12-16 12:27:49.000000000 +0000
@@ -718,7 +718,16 @@ int sh_open(register const char *path, i
}
if (fd >= 0)
{
- int nfd = open(path,flags);
+ int nfd;
+ if (flags & O_CREAT)
+ {
+ struct stat st;
+ if (stat(path,&st) < 0)
+ return(-1);
+ nfd = open(path,flags,st.st_mode);
+ }
+ else
+ nfd= open(path,flags);
if(nfd>=0)
{
fd = nfd;

22
ksh93-s390.dif Normal file
View File

@ -0,0 +1,22 @@
--- src/cmd/ksh93/bltins/read.c
+++ src/cmd/ksh93/bltins/read.c 2008-12-17 14:01:01.000000000 +0000
@@ -263,6 +263,19 @@ int sh_readline(register Shell_t *shp,ch
delim = ((unsigned)flags)>>D_FLAG;
if(shp->fdstatus[fd]&IOTTY)
tty_raw(fd,1);
+#if defined(__s390__) && defined(__linux__)
+ else if (flags&N_FLAG)
+ {
+ struct stat st;
+ if ((fstat(fd, &st) == 0) && S_ISFIFO(st.st_mode))
+ {
+ int fdflg;
+ if (((fdflg = fcntl(fd, F_GETFL)) != -1) && !(fdflg & O_NONBLOCK))
+ fcntl(fd, F_SETFL, fdflg|O_NONBLOCK);
+ shp->fdstatus[fd] |= IONOSEEK;
+ }
+ }
+#endif
}
binary = nv_isattr(np,NV_BINARY);
if(!binary && !(flags&(N_FLAG|NN_FLAG)))

View File

@ -38,9 +38,9 @@
#include <ast.h>
+#include <ast_wchar.h>
#include <ctype.h>
#include "FEATURE/cmds"
#if KSHELL
# include "defs.h"
@@ -83,6 +84,9 @@ One line screen editor for any program

View File

@ -104,33 +104,6 @@
setv SILENT
setv TAR tar
setv YACC yacc
@@ -702,7 +702,7 @@ prev ${PACKAGE_ast_INCLUDE}/ast.h implic
done sh/main.c
meta main.o %.c>%.o sh/main.c main
prev sh/main.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DSHOPT_BRACEPAT -D_PACKAGE_ast -DSHOPT_ESH -D_BLD_shell -DSHOPT_MULTIBYTE -DSHOPT_PFSH -DKSHELL -DSHOPT_SUID_EXEC -DSHOPT_DYNAMIC -DSHOPT_STATS -DSHOPT_HISTEXPAND -DERROR_CONTEXT_T=Error_context_t -c sh/main.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -DSHOPT_BRACEPAT -D_PACKAGE_ast -DSHOPT_ESH -D_BLD_shell -DSHOPT_MULTIBYTE -DSHOPT_PFSH -DKSHELL -DSHOPT_SUID_EXEC -DSHOPT_DYNAMIC -DSHOPT_STATS -DSHOPT_HISTEXPAND -DERROR_CONTEXT_T=Error_context_t -c sh/main.c
done main.o generated
make nvdisc.o
make sh/nvdisc.c
@@ -1135,7 +1135,7 @@ prev ${PACKAGE_ast_INCLUDE}/ccode.h impl
done sh/trestore.c
meta trestore.o %.c>%.o sh/trestore.c trestore
prev sh/trestore.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_BLD_shell -DKSHELL -D_PACKAGE_ast -DSHOPT_SUID_EXEC -DSHOPT_BRACEPAT -DSHOPT_MULTIBYTE -DSHOPT_PFSH -DSHOPT_STATS -DSHOPT_HISTEXPAND -DSHOPT_DYNAMIC -DERROR_CONTEXT_T=Error_context_t -DSHOPT_ESH -c sh/trestore.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_BLD_shell -DKSHELL -D_PACKAGE_ast -DSHOPT_SUID_EXEC -DSHOPT_BRACEPAT -DSHOPT_MULTIBYTE -DSHOPT_PFSH -DSHOPT_STATS -DSHOPT_HISTEXPAND -DSHOPT_DYNAMIC -DERROR_CONTEXT_T=Error_context_t -DSHOPT_ESH -c sh/trestore.c
done trestore.o generated
make waitevent.o
make sh/waitevent.c
@@ -1229,7 +1229,7 @@ prev ${PACKAGE_ast_INCLUDE}/ast_standard
done data/strdata.c
meta strdata.o %.c>%.o data/strdata.c strdata
prev data/strdata.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_PACKAGE_ast -DSHOPT_MULTIBYTE -DSHOPT_PFSH -c data/strdata.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Iinclude -I${PACKAGE_ast_INCLUDE} -D_PACKAGE_ast -DSHOPT_MULTIBYTE -DSHOPT_PFSH -c data/strdata.c
done strdata.o generated
make testops.o
make data/testops.c
@@ -1372,7 +1372,7 @@ prev +ljobs
prev +li
prev ${mam_libsocket}
@ -169,60 +142,15 @@
setv SILENT
setv TAR tar
setv YACC yacc
@@ -478,7 +478,7 @@ done misc/findlib.h
done misc/fastfind.c
meta fastfind.o %.c>%.o misc/fastfind.c fastfind
prev misc/fastfind.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Icomp -Imisc -Iinclude -Istd -D_PACKAGE_ast -c misc/fastfind.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Imisc -Iinclude -Istd -D_PACKAGE_ast -c misc/fastfind.c
done fastfind.o generated
make hashalloc.o
make hash/hashalloc.c
@@ -913,7 +913,7 @@ make lcgen
make port/lcgen.c
prev std/stdio.h implicit
done port/lcgen.c
-exec - ${CC} -o lcgen port/lcgen.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -o lcgen port/lcgen.c
+exec - ${CC} ${mam_cc_FLAGS} -o lcgen port/lcgen.c
done lcgen generated
make port/lc.tab
done port/lc.tab
@@ -1502,7 +1502,7 @@ done sfio/sfhdr.h
done port/mc.c
meta mc.o %.c>%.o port/mc.c mc
prev port/mc.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -D_PACKAGE_ast -c port/mc.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -D_PACKAGE_ast -c port/mc.c
done mc.o generated
make base64.o
make string/base64.c
@@ -2866,7 +2866,7 @@ prev include/ast.h implicit
done comp/spawnveg.c
meta spawnveg.o %.c>%.o comp/spawnveg.c spawnveg
prev comp/spawnveg.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Icomp -Iinclude -Istd -D_PACKAGE_ast -c comp/spawnveg.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iinclude -Istd -D_PACKAGE_ast -c comp/spawnveg.c
done spawnveg.o generated
make vfork.o
make comp/vfork.c
@@ -4187,7 +4187,7 @@ prev sfio/sfhdr.h implicit
done sfio/sfrd.c
meta sfrd.o %.c>%.o sfio/sfrd.c sfrd
prev sfio/sfrd.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -D_PACKAGE_ast -c sfio/sfrd.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -D_PACKAGE_ast -c sfio/sfrd.c
done sfrd.o generated
make sfread.o
make sfio/sfread.c
@@ -4342,7 +4342,7 @@ prev sfio/sfhdr.h implicit
done sfio/sfvprintf.c
meta sfvprintf.o %.c>%.o sfio/sfvprintf.c sfvprintf
prev sfio/sfvprintf.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} ${mam_cc_NOPROTECT} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -D_PACKAGE_ast -c sfio/sfvprintf.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} ${mam_cc_NOPROTECT} -I. -Icomp -Iport -Isfio -Iinclude -Istd -I${INSTALLROOT}/include -D_PACKAGE_ast -c sfio/sfvprintf.c
done sfvprintf.o generated
make sfvscanf.o
make sfio/sfvscanf.c
@@ -7013,64 +7013,37 @@ done ${INSTALLROOT}/lib/file/magic gener
make ${INSTALLROOT}/include/ast/fmtmsg.h
prev comp/fmtmsg.h
@ -314,15 +242,6 @@
setv SILENT
setv TAR tar
setv YACC yacc
@@ -572,7 +572,7 @@ make id.o
prev id.c
meta id.o %.c>%.o id.c id
prev id.c
-exec - ${CC} ${mam_cc_FLAGS} ${-debug-symbols?1?${mam_cc_DEBUG} -D_BLD_DEBUG?${CCFLAGS.FORCE}?} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -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]"\" -c id.c
+exec - ${CC} ${mam_cc_FLAGS} ${CCFLAGS} -I. -I${PACKAGE_ast_INCLUDE} -DERROR_CATALOG=\""libcmd"\" -D_BLD_cmd -D_PACKAGE_ast -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]"\" -c id.c
done id.o generated
make join.o
prev join.c
--- src/lib/libdll/Mamfile
+++ src/lib/libdll/Mamfile 2008-02-14 13:08:37.000000000 +0100
@@ -7,7 +7,7 @@ setv AR ar