Please upgrade mksh to R38c
|Reported by:||mirabilos||Owned by:||developers|
|Priority:||normal||Milestone:||Barrier Breaker 14.07|
I am both the upstream and FreeWRT maintainer of mksh. I kindly
request you to apply the attached patch to your package to bring
it up to date: http://mirbsd.de/mksh#clog – there are just too
many changes since your rather ancient version to list them here.
Furthermore, I removed a FreeWRT-local patch which is not needed
from the dot.mkshrc diff, added an OpenWrt-local patch required
for subshells to find /etc/mkshrc (prevents “precmd” not found
kind of errors), removed the libssp dependency in gcc4 environ-
ments (now it needs only µClibc and libgcc_s – is the latter
taken care of?), tweaked the compile options for an even smaller
binary but brought back the totally useful “realpath” builtin,
rewrote the descriptions, etc.
There is a Build.sh option “-combine” which can be used with
gcc4 to compile mksh using “-fwhole-program --combine” for even
better (intra-modular) optimisation. I did not enable it because,
while it does not hurt gcc3 builds, there are problems with some
versions of gcc 4.1 and 4.4 (but neither in between nor later)
preventing it to link. You might want to add it and test if the
problem happens for you.
If you have a flavour like system (configuration options for spe-
cific packages), there’s also the possibility of adding a non-
MKSH_SMALL flavour (which, for instance, comes with the Vi com-
mand line editing mode and even more functionality, possibly – if
enabled in µClibc – even locale support).
I have tested the resulting binary on a GNU/Linux i386 host sy-
stem as your Perl package currently does not compile, with no
unexpected testsuite failures; additionally, I interactively
saw to that it works as advertised.
mirabilos – http://mirbsd.de/mksh