From bruno.jargot at gmail.com Tue Jun 12 11:18:52 2007 From: bruno.jargot at gmail.com (Bruno Jargot) Date: Tue, 12 Jun 2007 20:18:52 +0200 Subject: [busybox-dev] Getting started with "busybox" ... In-Reply-To: <462EA8EB.CB2CFB4D@nrubsig.org> References: <462EA8EB.CB2CFB4D@nrubsig.org> Message-ID: <9625978a0706121118q3d99557amf0cb88b1f2f0e6ad@mail.gmail.com> Has the work on this project made any progress yet? There weren't any updates for a month :( On 4/25/07, Roland Mainz wrote: > > Hi! > > ---- > > Did anyone thought about how/where we should start with busybox yet ? > > For example (more or less a raw braindump): > 1. Which commands do we want to include in our busybox ? > - AFAIK someone from the SMF or Dtrace team (CC:'ing Liane Praza > for that, maybe she remebers more details) once > created a Dtrace script to track all commands at boot time (the results > where used to build a graph which someone put into her/her blog). AFAIK > such a script+results would be usefull to check which commands are used > more or less often and which are good canidates as builtins (AFAIK the > criteria are "small" and "often used", right ?) > > - Which platform-specific (e.g. Solaris-specific commands) should be > included (this may be tricky since it may require dependicies to other > libraries (or maybe this is not a problem since we could "lazyload" such > libraries from libbusyboxcmd.so.1)) ? > > 2. How do we include commands ? > AFAIK options include: > - builtin in libcmd (e.g. in the upstream version of libcmd) > - builtin in something like a libbusyboxcmd.so.1 > - shell script function (e.g. usr/src/lib/libshell/common/tests/grep.sh > is a cut-down script version of POSIX "grep") > - external command > > 3. Which commands should be enabled by default and which should be > loadable using the "builtin" command ? > This depends on the usage, right ? > > Any ideas/comments/wishlists etc. welcome... > > ---- > > Bye, > Roland > > -- > __ . . __ > (o.\ \/ /.o) roland.mainz at nrubsig.org > \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer > /O /==\ O\ TEL +49 641 7950090 > (;O/ \/ \O;) > _______________________________________________ > busybox-dev mailing list > busybox-dev at opensolaris.org > http://opensolaris.org/mailman/listinfo/busybox-dev > -- Bruno From roland.mainz at nrubsig.org Wed Jun 13 00:30:00 2007 From: roland.mainz at nrubsig.org (Roland Mainz) Date: Wed, 13 Jun 2007 09:30:00 +0200 Subject: [busybox-dev] Getting started with "busybox" ... References: <462EA8EB.CB2CFB4D@nrubsig.org> <9625978a0706121118q3d99557amf0cb88b1f2f0e6ad@mail.gmail.com> Message-ID: <466F9CF8.600E9A80@nrubsig.org> Bruno Jargot wrote: > > Has the work on this project made any progress yet? There weren't any > updates for a month :( My fault... I still own Moinak&&GNS a description how to convert a command into a ksh93 builtin command... ;-( ... Moinak/GNS: Could you point me to a standalone command which you'd like to see converted (that I can create some sample source), please ? ---- Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.mainz at nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /==\ O\ TEL +49 641 7950090 (;O/ \/ \O;) From shivakumar.gn at gmail.com Wed Jun 13 07:29:54 2007 From: shivakumar.gn at gmail.com (G N S) Date: Wed, 13 Jun 2007 19:59:54 +0530 Subject: [busybox-dev] Getting started with "busybox" ... In-Reply-To: <466F9CF8.600E9A80@nrubsig.org> References: <462EA8EB.CB2CFB4D@nrubsig.org> <9625978a0706121118q3d99557amf0cb88b1f2f0e6ad@mail.gmail.com> <466F9CF8.600E9A80@nrubsig.org> Message-ID: <319ee2b10706130729g4c949a38s654f55dfc67dcf2@mail.gmail.com> Hi Roland, On 6/13/07, Roland Mainz wrote: > ... Moinak/GNS: Could you point me to a standalone command which you'd > like to see converted (that I can create some sample source), please ? > You may use one of the already implemented ones: basename,cat,chgrp,chown,cut,date,dirname,echo,head,mkdir,rmdir,pathchk,pwd,rm,sleep,tail,wc,... Or not implemented ones: chroot,env,grep,hostname,link,ls,touch,who,... (There have been some major changes on the work front which is keeping me quite tied up. I am barely managing to catchup with the mails. Trying to get back to steady state). regards Shiv (GNS) From Moinak.Ghosh at Sun.COM Wed Jun 13 08:03:46 2007 From: Moinak.Ghosh at Sun.COM (Moinak Ghosh) Date: Wed, 13 Jun 2007 20:33:46 +0530 Subject: [busybox-dev] Getting started with "busybox" ... In-Reply-To: <466F9CF8.600E9A80@nrubsig.org> References: <462EA8EB.CB2CFB4D@nrubsig.org> <9625978a0706121118q3d99557amf0cb88b1f2f0e6ad@mail.gmail.com> <466F9CF8.600E9A80@nrubsig.org> Message-ID: <46700752.20803@Sun.COM> Roland Mainz wrote: > Bruno Jargot wrote: > >> Has the work on this project made any progress yet? There weren't any >> updates for a month :( >> > > My fault... I still own Moinak&&GNS a description how to convert a > command into a ksh93 builtin command... ;-( > ... Moinak/GNS: Could you point me to a standalone command which you'd > like to see converted (that I can create some sample source), please ? > One simple command to add would be last(1). Regards, Moinak. > > ---- > > Bye, > Roland > > From joshhurst at gmail.com Sat Jun 30 10:22:14 2007 From: joshhurst at gmail.com (Josh Hurst) Date: Sat, 30 Jun 2007 19:22:14 +0200 Subject: [busybox-dev] ksh93-integration 2007-04-19 test binaries available for download... In-Reply-To: <462C2649.AD02B062@nrubsig.org> References: <462C2649.AD02B062@nrubsig.org> Message-ID: On 4/23/07, Roland Mainz wrote: > > Hi! > > ---- > > [Sorry for the repost but the original annoucement had a few dates/etc. > wrong... ;-( ] > > A new set of tarballs containing an OS/Net version of ksh93 [1] (based > on ksh93s+_beta_20070418 [2]) is now available from > http://www.opensolaris.org/os/project/ksh93-integration/downloads/2007-04-19/ > > These tarballs are intended to be installed over an existing OpenSolaris > i386 or SPARC installation (>= B61) and provide ksh93s_final_20070418 > [2] for testing and evaluation purposed 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). > > > > ** Install instructions: > > 1. Download the tarball: > + i386/AMD64: > http://www.opensolaris.org/os/project/ksh93-integration/downloads/ksh93_integration_20070419_snapshot_i386.tar.bz2 > + SPARC: > http://www.opensolaris.org/os/project/ksh93-integration/downloads/ksh93_integration_20070419_snapshot_sparc.tar.bz2 > 2. Verify the MD5 checksum: > + i386/AMD64: MD5 > (ksh93_integration_20070419_snapshot_i386.tar.bz2)= > 16c2788ade60e2f7fb27c555248e722a > + SPARC: MD5 > (ksh93_integration_20070419_snapshot_sparc.tar.bz2) > = 45dd265978f8f40d62ebcb2600568a67 > 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 > $ wget > http://www.opensolaris.org/os/project/ksh93-integration/downloads/ksh93_integration_20070419_snapshot_i386.tar.bz2 > $ /usr/sfw/bin/openssl md5 > ksh93_integration_20070419_snapshot_i386.tar.bz2 > MD5(ksh93_integration_20070419_snapshot_i386.tar.bz2)= > 16c2788ade60e2f7fb27c555248e722a > # cd / > # sync ; sync > # bzcat -xvof - > # sync ; sync > > Example for SPARC: > > $ cd /tmp > $ wget > http://www.opensolaris.org/os/project/ksh93-integration/downloads/ksh93_integration_20070419_snapshot_sparc.tar.bz2 > $ /usr/sfw/bin/openssl md5 > ksh93_integration_20070419_snapshot_sparc.tar.bz2 > MD5(ksh93_integration_20070419_snapshot_sparc.tar.bz2)= > 45dd265978f8f40d62ebcb2600568a67 > # cd / > # sync ; sync > # bzcat -xvof - > # sync ; sync > > > > ** Notes (please check > http://www.opensolaris.org/os/project/ksh93-integration/downloads/2007-04-19/ > for updates): > > * This tarball matches ksh93s+ (=ast-ksh.2007-04-18) with > many many changes since the last version. Please test > the binaries extensively. > > * The binaries now are build from a B61-based tree and > require SXCR B61 or higher > > * Sources/diffs/webrevs: > > + The diffs between Solaris Nevada B61 and the > current ksh93-integration tree can be obtained via > svn diff -r 676:694 svn://svn.genunix.org/on/ > branches/ksh93/gisburn/prototype005/usr > or as unified diff (12MB, MD5 checksum is > 1332a3ce792e02e90099daa81d7f26af). > > + Alternatively webrev pages (for code review) are > available in various flavors: > o All changes+diffs+sources: > http://www.nrubsig.org/people/gisburn/work/solaris/ksh93_integration/ksh93_integration_prototype005_webrev_20070419/allfiles/webrev/ > o Only Makefile changes+diffs+sources: > http://www.nrubsig.org/people/gisburn/work/solaris/ksh93_integration/ksh93_integration_prototype005_webrev_20070419/makefile_files/webrev/ > o Only non-AST/ksh93 changes+diffs+sources: > http://www.nrubsig.org/people/gisburn/work/solaris/ksh93_integration/ksh93_integration_prototype005_webrev_20070419/non_ast_files/webrev/ > o Only AST/ksh93-specific changes+diffs+sources: > http://www.nrubsig.org/people/gisburn/work/solaris/ksh93_integration/ksh93_integration_prototype005_webrev_20070419/non_files/webrev/ > > * 64bit binaries and libraries are now included (and used > by default if the hardware is 64bit capable) > > * 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. > > * was added to emacs/gmacs mode to clear > the screen (per community requests and to be in sync > with bash) > > * If you wish to use ksh93 as login shell you have to > create the file /etc/shells (see shells(4) manual page) > to include it in the list of "allowed" system login > shells: > Example /etc/shells file (created using $ cat usr/src/ > lib/libc/port/gen/getusershell.c | egrep '.*".*/(bin| > sbin)/.*".*' | sed 's/[",]//g' | sort -u #): > > /bin/bash > /bin/csh > /bin/jsh > /bin/ksh > /bin/ksh93 > /bin/pfcsh > /bin/pfksh > /bin/pfsh > /bin/sh > /bin/tcsh > /bin/zsh > /sbin/jsh > /sbin/pfsh > /sbin/sh > /usr/bin/bash > /usr/bin/csh > /usr/bin/jsh > /usr/bin/ksh > /usr/bin/ksh93 > /usr/bin/pfcsh > /usr/bin/pfksh > /usr/bin/pfsh > /usr/bin/sh > /usr/bin/tcsh > /usr/bin/zsh > /usr/sfw/bin/zsh > /usr/xpg4/bin/sh > > > * libcmd.so is replaced with a version which includes > both the ksh93 builtin commands and the private Solaris > API of previous libcmd versions. > > * The tarball was simply created from an OS/Net B61 proto > / subdir via collecting the files listed by $ find > $ROOT '!' -type d | sed 's/.*\/root_sparc\///' | egrep > "/(lib|llib-l)(cmd|ast|shell|dll|pp)|/(ksh|rksh|pfksh)| > include/ast|usr/ast/" | egrep -v cmdutils | sort #. > > * The tarballs do not provide a manual page for ksh93. > Please use the manual page for ksh93r in the meantime. > > * "multiline" input mode was temporary disabled in the > default configuration due small issues. > > * 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 694 svn://svn.genunix.org/on/ > branches/ksh93/gisburn/prototype004/usr > $ bzcat <../download/ > on-closed-bins-nd-b61.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 Thu Sep > 14 13:17:59 2006 > +++ ./opensolaris.sh Sun Jul 30 00:50:08 2006 > @@ -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 ON_BUILD_AST_L10N_CATALOGS=1 CW_NO_SHADOW=1 > $ time nice make setup 2>&1 | tee -a > buildlog_setup.log > $ time nice dmake install >buildlog.log 2>&1 > > > > ** Links/References: > [1]=ksh93-integration/migration project home page: > http://www.opensolaris.org/os/project/ksh93-integration/ > > [2]=ksh93s+_beta release annoucement: > http://mail.opensolaris.org/pipermail/ksh93-integration-discuss/2007-April/002483.html > > [3]=ksh93r manual page: > http://www.opensolaris.org/os/project/ksh93-integration/docs/ksh93r/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]=http://bugs.grommit.com/enter_bug.cgi?product=ksh93-integration > > ---- Roland, could you make an update of the pre-built packages, pls? The last one is two months old :( Josh