English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/mksh/patches/patch-Build_sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3582 - (show annotations) (download)
Wed Sep 26 18:25:40 2007 UTC (6 years, 4 months ago) by tg
File size: 937 byte(s)
MFC: mksh R28 → R31c+20070926

Reason:	the busy-loop problem, which was fixed in R31b, was discovered
	by spaetzle@ even doing some simpler pattern matching; also cf.
	http://bugs.debian.org/296446 and http://mirbsd.de/mksh#clog

Side effects:
• you can now select to build a full-featured mksh in menuconfig
  (still defaults to ‘n’, as does mksh itself)
• the new dot.mkshrc file offers pushd/popd/dirs (csh-like) as
  well as the precmd() and chpwd() hooks (zsh-like)
• added dependency on busybox: “readlink -f”
• UI still the same, except no $? in $PS1 any more (req. by yofuh)
• /etc/mkshrc is now an ipkg conffile and handled appropriately
• building with pcc should be possible (if you turn optimisation off)

Tested:
• FreeWRT 1.0-stable, ASUS WL-500g, mksh as /bin/sh+/bin/ash full-featured
• FreeWRT-current (by spaetzle@) before the MFC

1 $FreeWRT$
2
3 bring mksh to the level of 2007/09/26
4
5 --- mksh.orig/Build.sh Tue Sep 11 18:38:29 2007
6 +++ mksh/Build.sh Fri Sep 21 10:46:56 2007
7 @@ -1,5 +1,5 @@
8 #!/bin/sh
9 -# $MirOS: src/bin/mksh/Build.sh,v 1.265 2007/09/11 18:38:29 tg Exp $
10 +# $MirOS: src/bin/mksh/Build.sh,v 1.266 2007/09/21 10:46:56 tg Exp $
11 #-
12 # Environment used: CC CFLAGS CPPFLAGS LDFLAGS LIBS NOWARN NROFF TARGET_OS
13 # CPPFLAGS recognised: MKSH_SMALL MKSH_ASSUME_UTF8 MKSH_NEED_MKNOD MKSH_NOPWNAM
14 @@ -365,6 +365,8 @@ cat >scn.c <<-'EOF'
15 ct=dmc
16 #elif defined(_MSC_VER)
17 ct=msc
18 + #elif defined(__PCC__)
19 + ct=pcc
20 #elif defined(__TenDRA__)
21 ct=tendra
22 #elif defined(__TINYC__)
23 @@ -383,7 +385,7 @@ test 1 = $h && sed 's/^/[ /' x
24 eval `cat x`
25 rm -f x
26 case $ct in
27 -bcc|dmc|gcc|hpcc|icc|msc|sunpro|tcc|tendra|xlc) ;;
28 +bcc|dmc|gcc|hpcc|icc|msc|pcc|sunpro|tcc|tendra|xlc) ;;
29 *) ct=unknown ;;
30 esac
31 $e "$bi==> which compiler we seem to use...$ao $ui$ct$ao"

Properties

Name Value
svn:keywords FreeWRT=Id

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20