On Feb 7, 2008 12:49 AM, Roland Mainz <roland.mainz at nrubsig.org> wrote:
> chinmayi sk wrote:
> > i would like to know how to build ksh93 environment .
>
> What do you mean with "ksh93 environment" ?
>
> Assuming you mean "ksh93 in OpenSolaris":
>
> * Overview:
>
> ksh93 itself is seperated into multiple shared libraries (libshell,
> libcmd, libsum, libdll and libast) and a "frontend" binary which
> directly jumps into libshell.so.1 (ksh93; /usr/bin/ksh93 itself is a
> hard-link to /usr/lib/isaexec which launches either 32bit or 64bit
> versions of ksh93 in /usr/bin/$ISA/ksh93 (where $ISA may be one of {
> "sparcv9", "amd64", "sparc", "i86" })).
> The source for the shared libraries can be found in the following
> locations:
> - usr/src/lib/libshell/common/ (contains ksh93 itself)
> - usr/src/lib/libcmd/common/ (contains many often-used commands as
> builtin commands)
> - usr/src/lib/libsum/common/ (contains hash algorithms for the "sum"
> builtin command (this shared library is new for the upcoming ksh93
> update in OS/Net and not yet part of the OS/Net main repository))
> - usr/src/lib/libdll/common/ (contains the dynamic linker "glue" used to
> load builtin commands from shared (plugin) libraries)
> - usr/src/lib/libast/common/ (platform-abstraction and utilty library)
>
>
> * Building ksh93 in OS/Net >= B72:
>
> 1. Setup your OS/Net environment and "log-in" using "bldenv" as
> described in http://opensolaris.org/os/community/on/install_quickstart/
> 2. Do a ...
> $ cd usr/src
> $ make setup 2>&1 | tee -a buildlog_setup.log #
> 3. Build the ksh93 libraries:
> -- snip --
> $ cd lib
> $ for i in libast libdll libpp libcmd libshell ; do
>     (
>         cd "$i"
>         make install
>     )
>   done
> -- snip --
> 4. Build the ksh93 frontend:
> -- snip --
> $ cd ../cmd
> $ for i in isaexec ksh ; do
>     (
>         cd "$i"
>         make install
>     )
>   done
> -- snip --
>
>
> * Building the "ksh93 update prototype010" tree:
> We're currently preparing a _vastly_ updated version of ksh93 which
> should be integrated into OS/Net hopefully this month.
> The prototype tree for this version can be build like this:
>
> 1. Checkout the "prototype010" source tree:
> $ svn checkout
> svn://svn.genunix.org/on/branches/ksh93/gisburn/prototype010/usr
> 2. Unpack the B72 closed-source binaries (available from
> http://dlc.sun.com/osol/on/downloads/b72/)
> $ bzcat <${HOME}/download/b72/on-closed-bins-nd-b72.i386.tar.bz2 | tar
> -xf -
> 3. Log-in into the "bldenv" environment:
> $ cd ..
> $ 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_x86.sh
> 4. Run "make setup"
> $ cd test1_x86/usr/src/
> $ time nice make setup 2>&1 | tee -a buildlog_setup.log
> $ cd ..
> 5. Run the script which builds ksh93 standalone (without building all
> the other bits of OS/Net):
> $ ksh93 build_ksh93_standalone.sh 2>&1 | tee -a buildlog.log
>
>
> Comments/questions/rants/etc. welcome...
>
> ----
>
> Bye,
> Roland
>

I think chinmayi also needs a list of the specific tasks for his students

Josh

Reply via email to