Upgrade to 41
This commit is contained in:
parent
70f5739f0a
commit
9854216185
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,2 +1,3 @@
|
|||||||
mksh-R40d.cpio.gz
|
mksh-R40d.cpio.gz
|
||||||
/mksh_40.9.20120630.orig.tar.gz
|
/mksh_40.9.20120630.orig.tar.gz
|
||||||
|
/mksh-R41.tgz
|
||||||
|
55
mksh.spec
55
mksh.spec
@ -1,17 +1,16 @@
|
|||||||
%define _bindir /bin
|
%define _bindir /bin
|
||||||
%global snapshot 20120630
|
|
||||||
Summary: MirBSD enhanced version of the Korn Shell
|
Summary: MirBSD enhanced version of the Korn Shell
|
||||||
Name: mksh
|
Name: mksh
|
||||||
Version: 40i
|
Version: 41
|
||||||
Release: 0%{?dist}.%{snapshot}
|
Release: 1%{?dist}
|
||||||
# BSD (setmode.c), ISC (strlcpy.c), MirOS (the rest)
|
# BSD (setmode.c), ISC (strlcpy.c), MirOS (the rest)
|
||||||
License: MirOS and ISC and BSD
|
License: MirOS and ISC and BSD
|
||||||
Group: System Environment/Shells
|
Group: System Environment/Shells
|
||||||
URL: http://www.mirbsd.de/%{name}.htm
|
URL: http://www.mirbsd.de/%{name}.htm
|
||||||
Source0: ftp://ftp.debian.org/debian/pool/main/m/%{name}/%{name}_40.9.%{snapshot}.orig.tar.gz
|
Source0: http://www.mirbsd.org/MirOS/dist/mir/%{name}/%{name}-R%{version}.tgz
|
||||||
#Source0: http://www.mirbsd.org/MirOS/dist/mir/%{name}/%{name}-R%{version}.cpio.gz
|
|
||||||
Source1: dot-mkshrc
|
Source1: dot-mkshrc
|
||||||
Source2: lksh.1
|
Source2: lksh.1
|
||||||
|
Source3: rtchecks.expected
|
||||||
Requires(post): grep
|
Requires(post): grep
|
||||||
Requires(postun): sed
|
Requires(postun): sed
|
||||||
BuildRequires: util-linux, ed
|
BuildRequires: util-linux, ed
|
||||||
@ -25,18 +24,37 @@ modern, robust shell good for interactive and especially script use, being a
|
|||||||
bourne shell replacement, pdksh successor and an alternative to the C shell.
|
bourne shell replacement, pdksh successor and an alternative to the C shell.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -T -c
|
#%setup -q -T -c
|
||||||
|
%setup -q -n %{name}
|
||||||
|
|
||||||
# rpm.org has no support for *.cpio.gz
|
# we'll need this later due to -DMKSH_GCC55009
|
||||||
#gzip -dc %{SOURCE0} | cpio -imd
|
cat >rtchecks <<'EOF'
|
||||||
#mv %{name}/* . && rm -rf %{name}
|
typeset -i sari=0
|
||||||
tar xvzf %{SOURCE0}
|
typeset -Ui uari=0
|
||||||
mv mksh-40.9.%{snapshot}.orig/* .
|
typeset -i x=0
|
||||||
|
print -r -- $((x++)):$sari=$uari.
|
||||||
|
let --sari --uari
|
||||||
|
print -r -- $((x++)):$sari=$uari.
|
||||||
|
sari=2147483647 uari=2147483647
|
||||||
|
print -r -- $((x++)):$sari=$uari.
|
||||||
|
let ++sari ++uari
|
||||||
|
print -r -- $((x++)):$sari=$uari.
|
||||||
|
let --sari --uari
|
||||||
|
let 'sari *= 2' 'uari *= 2'
|
||||||
|
let ++sari ++uari
|
||||||
|
print -r -- $((x++)):$sari=$uari.
|
||||||
|
let ++sari ++uari
|
||||||
|
print -r -- $((x++)):$sari=$uari.
|
||||||
|
sari=-2147483648 uari=-2147483648
|
||||||
|
print -r -- $((x++)):$sari=$uari.
|
||||||
|
let --sari --uari
|
||||||
|
print -r -- $((x++)):$sari=$uari.
|
||||||
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" sh Build.sh -r -c lto
|
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL -DMKSH_GCC55009" sh Build.sh -r -c lto
|
||||||
cp test.sh test_mksh.sh
|
cp test.sh test_mksh.sh
|
||||||
CFLAGS="$RPM_OPT_FLAGS" sh Build.sh -L -r -c lto
|
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL -DMKSH_GCC55009" sh Build.sh -L -r -c lto
|
||||||
cp test.sh test_lksh.sh
|
cp test.sh test_lksh.sh
|
||||||
|
|
||||||
%install
|
%install
|
||||||
@ -49,6 +67,14 @@ install -D -p -m 644 dot.mkshrc $RPM_BUILD_ROOT%{_sysconfdir}/mkshrc
|
|||||||
install -D -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.mkshrc
|
install -D -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/skel/.mkshrc
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
./mksh rtchecks >rtchecks.got 2>&1
|
||||||
|
if ! cmp --quiet rtchecks.got %{SOURCE3}
|
||||||
|
then
|
||||||
|
echo "rtchecks failed"
|
||||||
|
diff -Naurp %{SOURCE3} rtchecks.got
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
for tf in test_mksh.sh test_lksh.sh
|
for tf in test_mksh.sh test_lksh.sh
|
||||||
do
|
do
|
||||||
echo > test.wait
|
echo > test.wait
|
||||||
@ -84,6 +110,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/lksh.1*
|
%{_mandir}/man1/lksh.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Dec 03 2012 Michal Hlavinka <mhlavink@redhat.com> - 41-1
|
||||||
|
- Upgrade to 41
|
||||||
|
|
||||||
* Fri Jul 20 2012 Michal Hlavinka <mhlavink@redhat.com> - 40i-0.20120630
|
* Fri Jul 20 2012 Michal Hlavinka <mhlavink@redhat.com> - 40i-0.20120630
|
||||||
- Upgrade to pre-release of 40i
|
- Upgrade to pre-release of 40i
|
||||||
- includes new legacy shell lksh for old scripts requiring pdksh or similar old
|
- includes new legacy shell lksh for old scripts requiring pdksh or similar old
|
||||||
|
8
rtchecks.expected
Normal file
8
rtchecks.expected
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
0:0=0.
|
||||||
|
1:-1=4294967295.
|
||||||
|
2:2147483647=2147483647.
|
||||||
|
3:-2147483648=2147483648.
|
||||||
|
4:-1=4294967295.
|
||||||
|
5:0=0.
|
||||||
|
6:-2147483648=2147483648.
|
||||||
|
7:2147483647=2147483647.
|
Loading…
Reference in New Issue
Block a user