- Upgrade mksh to R45 and the other files to the accompanying versions
- Drop workaround for GCC PR55009 (no longer needed) - Use https for homepage
This commit is contained in:
parent
43df4a18b7
commit
ee681d07ac
24
lksh.1
24
lksh.1
@ -1,6 +1,6 @@
|
|||||||
.\" $MirOS: contrib/hosted/tg/deb/mksh/debian/lksh.1,v 1.4 2012/06/30 17:24:36 tg Exp $
|
.\" $MirOS: contrib/hosted/tg/deb/mksh/debian/lksh.1,v 1.8 2013/04/26 22:25:47 tg Exp $
|
||||||
.\"-
|
.\"-
|
||||||
.\" Copyright (c) 2008, 2009, 2010, 2012
|
.\" Copyright (c) 2008, 2009, 2010, 2012, 2013
|
||||||
.\" Thorsten “mirabilos” Glaser <tg@mirbsd.org>
|
.\" Thorsten “mirabilos” Glaser <tg@mirbsd.org>
|
||||||
.\"-
|
.\"-
|
||||||
.\" Try to make GNU groff and AT&T nroff more compatible
|
.\" Try to make GNU groff and AT&T nroff more compatible
|
||||||
@ -57,7 +57,7 @@
|
|||||||
.\" with -mandoc, it might implement .Mx itself, but we want to
|
.\" with -mandoc, it might implement .Mx itself, but we want to
|
||||||
.\" use our own definition. And .Dd must come *first*, always.
|
.\" use our own definition. And .Dd must come *first*, always.
|
||||||
.\"
|
.\"
|
||||||
.Dd $Mdocdate: June 30 2012 $
|
.Dd $Mdocdate: April 26 2013 $
|
||||||
.\"
|
.\"
|
||||||
.\" Check which macro package we use, and do other -mdoc setup.
|
.\" Check which macro package we use, and do other -mdoc setup.
|
||||||
.\"
|
.\"
|
||||||
@ -187,6 +187,13 @@ specific extensions are missing; specifically, the
|
|||||||
.Fl T
|
.Fl T
|
||||||
command-line option.
|
command-line option.
|
||||||
.It
|
.It
|
||||||
|
Some extensions from other shells, such as
|
||||||
|
.Tn GNU
|
||||||
|
.Nm bash ,
|
||||||
|
which
|
||||||
|
.Nm mksh
|
||||||
|
provides, are missing, for increased compatibility with legacy scripts.
|
||||||
|
.It
|
||||||
.Nm
|
.Nm
|
||||||
always uses traditional mode for constructs like:
|
always uses traditional mode for constructs like:
|
||||||
.Bd -literal -offset indent
|
.Bd -literal -offset indent
|
||||||
@ -223,6 +230,9 @@ but might work on 32-bit and 64-bit
|
|||||||
.Vt long
|
.Vt long
|
||||||
types
|
types
|
||||||
.Pc .
|
.Pc .
|
||||||
|
.It
|
||||||
|
.Nm
|
||||||
|
only offers the traditional ten file descriptors to scripts.
|
||||||
.El
|
.El
|
||||||
.Sh SEE ALSO
|
.Sh SEE ALSO
|
||||||
.Xr mksh 1
|
.Xr mksh 1
|
||||||
@ -255,11 +265,15 @@ or
|
|||||||
Talk to the
|
Talk to the
|
||||||
.Mx
|
.Mx
|
||||||
development team using the mailing list at
|
development team using the mailing list at
|
||||||
.Aq miros\-discuss@mirbsd.org
|
.Aq miros\-mksh@mirbsd.org
|
||||||
or the
|
or the
|
||||||
.Li \&#\&!/bin/mksh
|
.Li \&#\&!/bin/mksh
|
||||||
.Pq or Li \&#ksh
|
.Pq or Li \&#ksh
|
||||||
IRC channel at
|
IRC channel at
|
||||||
.Pa irc.freenode.net
|
.Pa irc.freenode.net
|
||||||
.Pq Port 6697 SSL, 6667 unencrypted
|
.Pq Port 6697 SSL, 6667 unencrypted
|
||||||
if you need any further quirks.
|
if you need any further quirks or assistance,
|
||||||
|
and consider migrating your legacy scripts to work with
|
||||||
|
.Nm mksh
|
||||||
|
instead of requiring
|
||||||
|
.Nm .
|
||||||
|
41
mksh.spec
41
mksh.spec
@ -1,12 +1,12 @@
|
|||||||
%define _bindir /bin
|
%define _bindir /bin
|
||||||
Summary: MirBSD enhanced version of the Korn Shell
|
Summary: MirBSD enhanced version of the Korn Shell
|
||||||
Name: mksh
|
Name: mksh
|
||||||
Version: 44
|
Version: 45
|
||||||
Release: 1%{?dist}
|
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: https://www.mirbsd.de/%{name}.htm
|
||||||
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}.tgz
|
||||||
Source1: dot-mkshrc
|
Source1: dot-mkshrc
|
||||||
Source2: lksh.1
|
Source2: lksh.1
|
||||||
@ -26,43 +26,49 @@ bourne shell replacement, pdksh successor and an alternative to the C shell.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
|
|
||||||
# we'll need this later due to -DMKSH_GCC55009
|
# we'll need this later
|
||||||
cat >rtchecks <<'EOF'
|
cat >rtchecks <<'EOF'
|
||||||
typeset -i sari=0
|
typeset -i sari=0
|
||||||
typeset -Ui uari=0
|
typeset -Ui uari=0
|
||||||
typeset -i x=0
|
typeset -i x=0
|
||||||
print -r -- $((x++)):$sari=$uari.
|
print -r -- $((x++)):$sari=$uari. #0
|
||||||
let --sari --uari
|
let --sari --uari
|
||||||
print -r -- $((x++)):$sari=$uari.
|
print -r -- $((x++)):$sari=$uari. #1
|
||||||
sari=2147483647 uari=2147483647
|
sari=2147483647 uari=2147483647
|
||||||
print -r -- $((x++)):$sari=$uari.
|
print -r -- $((x++)):$sari=$uari. #2
|
||||||
let ++sari ++uari
|
let ++sari ++uari
|
||||||
print -r -- $((x++)):$sari=$uari.
|
print -r -- $((x++)):$sari=$uari. #3
|
||||||
let --sari --uari
|
let --sari --uari
|
||||||
let 'sari *= 2' 'uari *= 2'
|
let 'sari *= 2' 'uari *= 2'
|
||||||
let ++sari ++uari
|
let ++sari ++uari
|
||||||
print -r -- $((x++)):$sari=$uari.
|
print -r -- $((x++)):$sari=$uari. #4
|
||||||
let ++sari ++uari
|
let ++sari ++uari
|
||||||
print -r -- $((x++)):$sari=$uari.
|
print -r -- $((x++)):$sari=$uari. #5
|
||||||
sari=-2147483648 uari=-2147483648
|
sari=-2147483648 uari=-2147483648
|
||||||
print -r -- $((x++)):$sari=$uari.
|
print -r -- $((x++)):$sari=$uari. #6
|
||||||
let --sari --uari
|
let --sari --uari
|
||||||
print -r -- $((x++)):$sari=$uari.
|
print -r -- $((x++)):$sari=$uari. #7
|
||||||
|
(( sari = -5 >> 1 ))
|
||||||
|
((# uari = -5 >> 1 ))
|
||||||
|
print -r -- $((x++)):$sari=$uari. #8
|
||||||
|
(( sari = -2 ))
|
||||||
|
((# uari = sari ))
|
||||||
|
print -r -- $((x++)):$sari=$uari. #9
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# Work around RHBZ #922974 on Fedora 19 and later
|
# Work around RHBZ #922974 on Fedora 19 and later
|
||||||
%if 0%{?fedora} >= 19
|
%if 0%{?fedora} >= 19
|
||||||
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL -DMKSH_GCC55009" sh Build.sh -r
|
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL" sh Build.sh -r
|
||||||
%else
|
%else
|
||||||
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL -DMKSH_GCC55009" sh Build.sh -r -c lto
|
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL" sh Build.sh -r -c lto
|
||||||
%endif
|
%endif
|
||||||
cp test.sh test_mksh.sh
|
cp test.sh test_mksh.sh
|
||||||
# Work around RHBZ #922974 on Fedora 19 and later
|
# Work around RHBZ #922974 on Fedora 19 and later
|
||||||
%if 0%{?fedora} >= 19
|
%if 0%{?fedora} >= 19
|
||||||
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL -DMKSH_GCC55009" sh Build.sh -L -r
|
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL" sh Build.sh -L -r
|
||||||
%else
|
%else
|
||||||
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL -DMKSH_GCC55009" sh Build.sh -L -r -c lto
|
CFLAGS="$RPM_OPT_FLAGS -DMKSH_DISABLE_EXPERIMENTAL" sh Build.sh -L -r -c lto
|
||||||
%endif
|
%endif
|
||||||
cp test.sh test_lksh.sh
|
cp test.sh test_lksh.sh
|
||||||
|
|
||||||
@ -119,6 +125,11 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/lksh.1*
|
%{_mandir}/man1/lksh.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed May 01 2013 Thorsten Glaser <tg@mirbsd.org> 45-1
|
||||||
|
- Upgrade mksh to R45 and the other files to the accompanying versions
|
||||||
|
- Drop workaround for GCC PR55009 (no longer needed)
|
||||||
|
- Use https for homepage
|
||||||
|
|
||||||
* Mon Mar 18 2013 Robert Scheck <robert@fedoraproject.org> 44-1
|
* Mon Mar 18 2013 Robert Scheck <robert@fedoraproject.org> 44-1
|
||||||
- Upgrade to 44 and work around bug in GCC 4.8 (#922974)
|
- Upgrade to 44 and work around bug in GCC 4.8 (#922974)
|
||||||
|
|
||||||
|
@ -6,3 +6,5 @@
|
|||||||
5:0=0.
|
5:0=0.
|
||||||
6:-2147483648=2147483648.
|
6:-2147483648=2147483648.
|
||||||
7:2147483647=2147483647.
|
7:2147483647=2147483647.
|
||||||
|
8:-3=2147483645.
|
||||||
|
9:-2=4294967294.
|
||||||
|
Loading…
Reference in New Issue
Block a user