There's another problem:

env.sh checks the argument $1 to determine which compiler to use.
Presumably is this only supposed to work if invoked directly as a
script, not sourced from a shell.

If I source env.sh from a wrapper script (I use a script to pass pkgtool
arguments so I only need to specify spec files), $1 is one of the
arguments for the wrapper script which is not appropriate for env.sh

My current workaround is to wrap the ". /opt/dtbld/bin/env.sh" line
inside a shell function so $1 is reset.

-Albert

On Fri, 2008-06-20 at 22:10 +1200, Laszlo (Laca) Peter wrote:
> env.csh is for /bin/csh.
> 
> Looks like I will need a separate env.zsh.
> This syntax error is due to changes I made for supporting zsh.
> Workaround for this is SHELL=/bin/ksh93 /opt/dtbld/bin/env.sh
> 
> Laca
> 
> On Fri, 2008-06-20 at 12:55 +0300, Andras Barna wrote:
> > tried: /opt/dtbld/bin/env.csh ?
> > 
> > On Fri, Jun 20, 2008 at 12:10 PM, Lin Ma <Lin.Ma at sun.com> wrote:
> > > Laca,
> > >
> > > There is another bug. The source env.sh reports an error on OpenSolaris
> > > sh (ksh93).
> > > $ source /opt/dtbld/bin/env.sh
> > > sh: .: syntax error: `=' unexpected
> > >
> > > lin
> > >
> > > Laszlo (Laca) Peter wrote:
> > >> Oops, you are right.  The cbe-install script knows that
> > >> Primary Administrator is good enough for installing packages,
> > >> but pkgbuild still wants Software Installation.
> > >>
> > >> Please use Software Installation for now and I'll roll a new
> > >> pkgbuild release to fix this.
> > >>
> > >> Thanks for the feedback.
> > >> Laca
> > >>
> > >> On Fri, 2008-06-20 at 15:54 +0800, Lin Ma wrote:
> > >>
> > >>> Laca,
> > >>>
> > >>> There is an error even I install it as a user with Primary 
> > >>> Administrator.
> > >>>
> > >>> % profiles malin
> > >>> Primary Administrator
> > >>> Console User
> > >>> Suspend To RAM
> > >>> Suspend To Disk
> > >>> Brightness
> > >>> Basic Solaris User
> > >>> All
> > >>>
> > >>> ===logs===
> > >>> Fri Jun 20 15:19:45 CST 2008: *** command output ends ***
> > >>> Fri Jun 20 15:19:45 CST 2008: running /opt/dtbld/bin/pkgtool
> > >>> install-pkgs --define build_user malin CBEenv.spec
> > >>> Fri Jun 20 15:19:45 CST 2008: *** command output follows ***
> > >>> INFO: Copying %use'd or %include'd spec files to SPECS directory
> > >>> INFO: Processing spec files
> > >>> You need the Software Installation profile in order to install
> > >>> or remove packages.  See the profiles(1) and user_attr(4) man pages
> > >>> for more information
> > >>>
> > >>> The "uninstall-pkgs" command involves installing packages.
> > >>> Cannot continue.
> > >>>
> > >>> Fri Jun 20 15:19:46 CST 2008: *** command output ends ***
> > >>> Fri Jun 20 15:19:46 CST 2008: CBE setup FAILED
> > >>> Fri Jun 20 15:19:46 CST 2008: Installation log saved in
> > >>> /tmp/desktop-cbe-install-2008-06-20-15:08.log
> > >>>
> > >>> Thanks,
> > >>> lin
> > >>>
> > >>> Laszlo (Laca) Peter wrote:
> > >>>
> > >>>> Jedy,
> > >>>>
> > >>>> Please install it as a user with the Software Installation or
> > >>>> Primary Administrator profile and not as root.
> > >>>> I'll add an error message to the install script.
> > >>>>
> > >>>> Thanks,
> > >>>> Laca
> > >>>>
> > >>>> On Fri, 2008-06-20 at 14:53 +0800, Jedy Wang wrote:
> > >>>>
> > >>>>
> > >>>>> I installed new cbe and it told me
> > >>>>> CBE setup FAILED.
> > >>>>>
> > >>>>> I am not sure if this is true or just a bug. So log is attached.
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>> _______________________________________________
> > >>>> desktop-discuss mailing list
> > >>>> desktop-discuss at opensolaris.org
> > >>>>
> > >>>>
> > >>>
> > >>
> > >> _______________________________________________
> > >> desktop-discuss mailing list
> > >> desktop-discuss at opensolaris.org
> > >>
> > >
> > >
> > > --
> > > x82120 / +86 10 82618200
> > >
> > > _______________________________________________
> > > desktop-discuss mailing list
> > > desktop-discuss at opensolaris.org
> > >
> > 
> > 
> > 
> 
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris.org


Reply via email to