Opened 8 years ago

Closed 8 years ago

Last modified 3 years ago

#5332 closed task (fixed)

Please upgrade mksh to R38c

Reported by: mirabilos Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:



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: – 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 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 –

Attachments (1)

mksh-OpenWrt.diff (4.9 KB) - added by mirabilos 8 years ago.
package/mksh R33d → R38c

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by mirabilos

package/mksh R33d → R38c

comment:1 Changed 8 years ago by nbd

  • Resolution set to fixed
  • Status changed from new to closed

committed in r16428

comment:2 Changed 3 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.