- ksh updated to 2011-01-27
This commit is contained in:
parent
185ff5335c
commit
4b5b6933e8
2
.gitignore
vendored
2
.gitignore
vendored
@ -20,3 +20,5 @@ INIT.2010-07-01.tgz
|
|||||||
/INIT.2011-01-04.tgz
|
/INIT.2011-01-04.tgz
|
||||||
/ast-ksh.2011-01-18.tgz
|
/ast-ksh.2011-01-18.tgz
|
||||||
/INIT.2011-01-18.tgz
|
/INIT.2011-01-18.tgz
|
||||||
|
/ast-ksh.2011-01-27.tgz
|
||||||
|
/INIT.2011-01-27.tgz
|
||||||
|
@ -1,43 +0,0 @@
|
|||||||
diff -up ksh-20110104/src/cmd/ksh93/sh/init.c.wcpatch ksh-20110104/src/cmd/ksh93/sh/init.c
|
|
||||||
--- ksh-20110104/src/cmd/ksh93/sh/init.c.wcpatch 2010-12-30 16:08:25.000000000 +0100
|
|
||||||
+++ ksh-20110104/src/cmd/ksh93/sh/init.c 2011-01-17 14:45:06.199705445 +0100
|
|
||||||
@@ -47,39 +47,8 @@
|
|
||||||
#include "lexstates.h"
|
|
||||||
#include "version.h"
|
|
||||||
|
|
||||||
-#if _hdr_wctype
|
|
||||||
#include <ast_wchar.h>
|
|
||||||
#include <wctype.h>
|
|
||||||
-#endif
|
|
||||||
-#if !_typ_wctrans_t
|
|
||||||
-#undef wctrans_t
|
|
||||||
-#define wctrans_t sh_wctrans_t
|
|
||||||
-typedef int wctrans_t;
|
|
||||||
-#endif
|
|
||||||
-#if !_lib_wctrans
|
|
||||||
-#undef wctrans
|
|
||||||
-#define wctrans sh_wctrans
|
|
||||||
-static wctrans_t wctrans(const char *name)
|
|
||||||
-{
|
|
||||||
- if(strcmp(name,e_tolower)==0)
|
|
||||||
- return(1);
|
|
||||||
- else if(strcmp(name,e_toupper)==0)
|
|
||||||
- return(2);
|
|
||||||
- return(0);
|
|
||||||
-}
|
|
||||||
-#endif
|
|
||||||
-#if !_lib_towctrans
|
|
||||||
-#undef towctrans
|
|
||||||
-#define towctrans sh_towctrans
|
|
||||||
-static int towctrans(int c, wctrans_t t)
|
|
||||||
-{
|
|
||||||
- if(t==1 && isupper(c))
|
|
||||||
- c = tolower(c);
|
|
||||||
- else if(t==2 && isupper(c))
|
|
||||||
- c = toupper(c);
|
|
||||||
- return(c);
|
|
||||||
-}
|
|
||||||
-#endif
|
|
||||||
|
|
||||||
char e_version[] = "\n@(#)$Id: Version "
|
|
||||||
#if SHOPT_AUDIT
|
|
11
ksh.spec
11
ksh.spec
@ -1,11 +1,11 @@
|
|||||||
%global releasedate 2011-01-18
|
%global releasedate 2011-01-27
|
||||||
|
|
||||||
Name: ksh
|
Name: ksh
|
||||||
Summary: The Original ATT Korn Shell
|
Summary: The Original ATT Korn Shell
|
||||||
URL: http://www.kornshell.com/
|
URL: http://www.kornshell.com/
|
||||||
Group: System Environment/Shells
|
Group: System Environment/Shells
|
||||||
License: CPL
|
License: CPL
|
||||||
Version: 20110118
|
Version: 20110127
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Source0: http://www.research.att.com/~gsf/download/tgz/ast-ksh.%{releasedate}.tgz
|
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
|
Source1: http://www.research.att.com/~gsf/download/tgz/INIT.%{releasedate}.tgz
|
||||||
@ -20,9 +20,6 @@ Patch1: ksh-20070328-builtins.patch
|
|||||||
#fix regression test suite to be usable during packagebuild - Fedora/RHEL specific
|
#fix regression test suite to be usable during packagebuild - Fedora/RHEL specific
|
||||||
Patch2: ksh-20100826-fixregr.patch
|
Patch2: ksh-20100826-fixregr.patch
|
||||||
|
|
||||||
#ksh's wctype.h detection script is broken, workaround it
|
|
||||||
Patch3: ksh-20110104-wctype.patch
|
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||||
Conflicts: pdksh
|
Conflicts: pdksh
|
||||||
Requires: coreutils, glibc-common, diffutils
|
Requires: coreutils, glibc-common, diffutils
|
||||||
@ -43,7 +40,6 @@ with "sh" (the Bourne Shell).
|
|||||||
%setup -q -T -D -a 1
|
%setup -q -T -D -a 1
|
||||||
%patch1 -p1 -b .builtins
|
%patch1 -p1 -b .builtins
|
||||||
%patch2 -p1 -b .fixregr
|
%patch2 -p1 -b .fixregr
|
||||||
%patch3 -p1 -b .wcpatch
|
|
||||||
|
|
||||||
#/dev/fd test does not work because of mock
|
#/dev/fd test does not work because of mock
|
||||||
sed -i 's|ls /dev/fd|ls /proc/self/fd|' src/cmd/ksh93/features/options
|
sed -i 's|ls /dev/fd|ls /proc/self/fd|' src/cmd/ksh93/features/options
|
||||||
@ -122,6 +118,9 @@ fi
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jan 28 2011 Michal Hlavinka <mhlavink@redhat.com> - 20110127-1
|
||||||
|
- ksh updated to 2011-01-27
|
||||||
|
|
||||||
* Thu Jan 20 2011 Michal Hlavinka <mhlavink@redhat.com> - 20110118-1
|
* Thu Jan 20 2011 Michal Hlavinka <mhlavink@redhat.com> - 20110118-1
|
||||||
- ksh updated to 2011-01-18
|
- ksh updated to 2011-01-18
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user