Hi!
---- 2008-11-14: ksh93 update tarballs for Solaris Nevada+Indiana These tarballs are intended to be installed over an existing OpenSolaris >= B84 i386 or SPARC installation and provide ast-ksh.2008-11-04 >(ksh93t_20081104) and match PSARC/2008/094 ("ksh93 Update 1" ; >http://www.opensolaris.org/os/community/arc/caselog/2008/094)/ + >PSARC/2008/344 ("ksh93 Integration Update 1 Amendments 1" ; >http://www.opensolaris.org/os/community/arc/caselog/2008/344/) Note that the binaries are provided for testing and evaluation purposes ONLY. Please report any problems/errors/bugs/comments to the ksh93-integration project bugzilla[5] or the ksh93-integration mailinglist[4] (please subscribe before posting). **** Highlights of this release: - /etc/ksh.kshrc now sets a default prompt (PS1) for interactive sessions (see NOTES below) - Many bugfixes, primarily focussing on stability, improved error checking, performance and fixing support for large, complex variable trees. - Many closed-source binaries are replaced with opensource versions - The shell script compiler "shcomp" is now included - Many new demos including: - "shircbot" (IRC bot demo) - "crawlsrccomments" (two-phased source code comment+license extrator which uses serialised variable trees for storage+caching) - "filemutexdemo1" (demo to show ksh93's new type system and an implementation of filesystem-based read/write locks) - "multifollow" (poll(1) demo which run multiple "tail -f") - "shnote" (utility to read/write pastebin.ca) - "shtwitter" (access twitter.com service and push blog entries) - "shcalc" (command-line ISO C99 floating-point calculator) - "shpiano" (audio demo) - "shtinyurl" (tool to generate short tinyurl.com URLs) - "svcproptree1" (SMF demo) - "test_net_sctp" (SCTP protocol demo) - "shman" (early prototype of a /usr/bin/man rewrite) - "xmldocumenttree1" (XML parser demo) ... and much more... **** Install instructions: *** Basic installation: 1. Download the tarball: + i386/AMD64: http://www.opensolaris.org/os/project/ksh93-integration/downloads/ksh93_integration_20081114_snapshot_i386.tar.bz2 + SPARC: http://www.opensolaris.org/os/project/ksh93-integration/downloads/ksh93_integration_20081114_snapshot_sparc.tar.bz2 2. Verify the MD5 checksum: + i386/AMD64: MD5 (ksh93_integration_20081114_snapshot_i386.tar.bz2)= 2a757c0e9476962d55fda9210e14c512 + SPARC: MD5 (ksh93_integration_20081114_snapshot_sparc.tar.bz2)= c9fe186651073fd84e974bd4f77667cc 3. Login as user "root": 4. Change directory to / and unpack the tarball with /usr/bin/tar using the "xvof" option ("o" is very important to set the file ownership to "root") ** Example for i386/AMD64: $ cd /tmp $ /usr/sfw/bin/wget http://www.opensolaris.org/os/project/ksh93-integration/downloads/ksh93_integration_20081114_snapshot_i386.tar.bz2 $ /usr/sfw/bin/openssl md5 ksh93_integration_20081114_snapshot_i386.tar.bz2 MD5(ksh93_integration_20081114_snapshot_i386.tar.bz2)= 2a757c0e9476962d55fda9210e14c512 # cd / # sync ; sync # bzcat </tmp/ksh93_integration_20081114_snapshot_i386.tar.bz2 | \ tar -xvof - # sync ; sync ** Example for SPARC: $ cd /tmp $ /usr/sfw/bin/wget http://www.opensolaris.org/os/project/ksh93-integration/downloads/ksh93_integration_20081114_snapshot_sparc.tar.bz2 $ /usr/sfw/bin/openssl md5 ksh93_integration_20081114_snapshot_sparc.tar.bz2 MD5(ksh93_integration_20081114_snapshot_sparc.tar.bz2)= c9fe186651073fd84e974bd4f77667cc # cd / # sync ; sync # bzcat </tmp/ksh93_integration_20081114_snapshot_sparc.tar.bz2 | \ tar -xvof - # sync ; sync *** Using ksh93 as /sbin/sh: After installation of the tarball the following steps will replace the original Bourne shell with ksh93: ** Example for i386/AMD64: # cp /usr/bin/i86/ksh93 /sbin/ksh93 # [[ ! -f /sbin/bsh ]] && mv /sbin/sh /sbin/bsh || rm /sbin/sh # mv /sbin/ksh93 /sbin/sh # sync ; sync ** Example for SPARC: # cp /usr/bin/sparcv7/ksh93 /sbin/ksh93 # [[ ! -f /sbin/bsh ]] && mv /sbin/sh /sbin/bsh || rm /sbin/sh # mv /sbin/ksh93 /sbin/sh # sync ; sync **** Notes: * This tarball matches ksh93t (=ast-ksh.2008-11-04) with many many changes since the last version. Please test the binaries extensively. * The binaries now are build from a B97_pre1-based tree and require SXCR B84 or higher * Sources/diffs/webrevs: + The diffs between Solaris Nevada B97_pre1 and the current ksh93-integration tree can be obtained via svn diff -r 1175:1285 svn://svn.genunix.org/on/branches/ksh93/gisburn/prototype012/usr or as unified diff (http://www.opensolaris.org/os/project/ksh93-integration/downloads/svn_genunix_org_on_branches_ksh93_gisburn_prototype012_rev_1175_1285.diff.txt , 4.5MB, MD5 checksum is 8df042b6f4768158883348dba1628c19). * "multiline" input mode is now enabled by default in /etc/ksh.kshrc to match input/editor behaviour of bash. * /etc/ksh.kshrc now sets a default prompt (PS1) which contains <username>@<hostname>:<current_directory>$<blank> for normal users and <username>@<hostname>:<current_directory>#<blank> for user "root"; the prompt length itself is limited to ~~32 characters to ensure it only occupies 1/4 of a standard 80x24 terminal window. * <esc><ctrl-l> was added to emacs/gmacs mode to clear the screen (per community requests and to be in sync with bash) * 64bit binaries and libraries are now included (and used by default if the hardware is 64bit capable) * "shcomp", the shell script compiler is now included as /usr/bin/shcomp. * AST l10n utilities are stored in /usr/ast/bin/. * Starting with ksh93s+ multibyte characters can be used for variable/function/etc.-names. Please test this functionality extensively. * The tarball was created using the build_ksh93_standalone_tarball.sh script which is available in the usr/-directory of the prototype012 tree. Note: The script can only be used after a successfull $ make setup ; dmake install #-sequence, otherwise the resulting tarball will be incomplete. * The tarballs do not provide a manual page for ksh93. Please use the manual page for ksh93s+ in the meantime. * The ksh93 binaries can be build from source like this: (Instructions are for Solaris i386/AMD64; SPARC requires minor adjustments) 1. Pull sources and extract closed bin stuff (files can be obtained from opensolaris.org): $ mkdir test_x86 ; cd test_x86 $ svn checkout -r 1285 svn://svn.genunix.org/on/branches/ksh93/gisburn/prototype012/usr $ bzcat <../download/ on-closed-bins-nd-b97_pre1.i386.tar.bz2 | tar -xf - $ cd .. 2. Create opensolaris.sh. This is the usual opensolaris.sh with the paths adjusted to match your location of the sources. Example for the changes applies to opensolaris.sh (for my workspace): --- ./test1_x86/usr/src/tools/env/opensolaris.sh +++ ./opensolaris.sh @@ -43,10 +43,10 @@ # This is a variable for the rest of the script - # GATE doesn't matter to nightly itself -GATE=testws; export GATE +GATE=test1_x86; export GATE # CODEMGR_WS - where is your workspace at (or what should # nightly name it) -CODEMGR_WS="/export/$GATE"; export CODEMGR_WS +CODEMGR_WS="/home/test001/ksh93/on_build1/$GATE" +export CODEMGR_WS # Location of encumbered binaries. ON_CLOSED_BINS="$CODEMGR_WS/closed" export ON_CLOSED_BINS 3. Run "bldenv": $ env - SHELL=$SHELL TERM=$TERM HOME=$HOME LOGNAME=$LOGNAME DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY LANG=C LC_ALL=C PAGER=less MANPATH=$MANPATH /opt/onbld/bin/bldenv opensolaris.sh # 4. Build it (the quick way): $ cd test_x86/usr/src $ export CW_NO_SHADOW=1 $ time nice make setup 2>&1 | tee -a buildlog_setup.log $ time nice dmake install >buildlog.log 2>&1 Finally: Please check http://www.opensolaris.org/os/project/ksh93-integration/downloads/2008-11-14/ for any updates or additional comments... **** Links/References: [1]=ksh93-integration/migration project home page: http://www.opensolaris.org/os/project/ksh93-integration/ [2]=http://www.opensolaris.org/os/project/ksh93-integration/downloads/2008-11-14/ [3]=ksh93s+ manual page: http://www.opensolaris.org/os/project/ksh93-integration/docs/ksh93s/man/man1/sh/ [4]=ksh93-integration mailinglist: http://mail.opensolaris.org/mailman/listinfo/ksh93-integration-discuss/ ; please subscribe before posting (and please avoid flamewars) !! [5]=ksh93-integration project bugzilla: http://bugs.grommit.com/enter_bug.cgi?product=ksh93-integration [6]=Heads-up message for "ksh93 integrated into Solaris 11/B72": http://www.opensolaris.org/os/community/on/flag-days/pages/2007081701/ ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) [EMAIL PROTECTED] \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 3992797 (;O/ \/ \O;) _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org