OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » desktop » discuss

Thread: New Desktop CBE for testing

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 15 - Last Post: Jul 9, 2008 8:48 PM by: lin
Laszlo (Laca) P...
Laszlo.Peter@Sun.COM
New Desktop CBE for testing
Posted: Jun 19, 2008 11:24 PM

  Click to reply to this thread Reply

If you used the JDS CBE and/or the KBE (KDE build env) before,
here's the big news: they have been merged to form the Desktop CBE.
Test tarballs are now available here:

http://dlc.sun.com/osol/jds/downloads/cbe/test/

The most important changes:
- a lot more tools included
- supports Solaris 10, Nevada, OpenSolaris
- only the tools that are not integrated in the OS are installed
- all tools updated to more recent versions, including
pkgbuild (1.3.0)
- interactive and hands-free installation
- improved env.sh script now supports:
- multiple compilers
- subshell mode

Note: the Desktop CBE is installed in /opt/dtbld.

Please send feedback to Lukas, myself or desktop-discuss. Remember
that this is a test release, it is entirely possible that it will
wipe your hard drive, shred your dvd collection or transfer your
savings to offshore bank accounts so use at your own risk.

Thanks,
Lukas and Laca


_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


jedy

Posts: 268
From: CN

Registered: 10/19/06
Re: New Desktop CBE for testing
Posted: Jun 19, 2008 11:53 PM   in response to: Laszlo (Laca) P...

  Click to reply to this thread Reply

Hi Laca,

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.

Regards,

jedy
On Fri, 2008-06-20 at 18:24 +1200, Laszlo (Laca) Peter wrote:
> If you used the JDS CBE and/or the KBE (KDE build env) before,
> here's the big news: they have been merged to form the Desktop CBE.
> Test tarballs are now available here:
>
> http://dlc.sun.com/osol/jds/downloads/cbe/test/
>
> The most important changes:
> - a lot more tools included
> - supports Solaris 10, Nevada, OpenSolaris
> - only the tools that are not integrated in the OS are installed
> - all tools updated to more recent versions, including
> pkgbuild (1.3.0)
> - interactive and hands-free installation
> - improved env.sh script now supports:
> - multiple compilers
> - subshell mode
>
> Note: the Desktop CBE is installed in /opt/dtbld.
>
> Please send feedback to Lukas, myself or desktop-discuss. Remember
> that this is a test release, it is entirely possible that it will
> wipe your hard drive, shred your dvd collection or transfer your
> savings to offshore bank accounts so use at your own risk.
>
> Thanks,
> Lukas and Laca
>
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris dot org
_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


Laszlo (Laca) P...
Laszlo.Peter@Sun.COM
Re: New Desktop CBE for testing
Posted: Jun 20, 2008 12:46 AM   in response to: jedy

  Click to reply to this thread Reply

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 dot org


lin

Posts: 108
From: CN

Registered: 9/19/05
Re: New Desktop CBE for testing
Posted: Jun 20, 2008 12:54 AM   in response to: Laszlo (Laca) P...

  Click to reply to this thread Reply

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 dot org
>


--
x82120 / +86 10 82618200

_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


Laszlo (Laca) P...
Laszlo.Peter@Sun.COM
Re: New Desktop CBE for testing
Posted: Jun 20, 2008 1:22 AM   in response to: lin

  Click to reply to this thread Reply

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 dot org
> >
>
>

_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


lin

Posts: 108
From: CN

Registered: 9/19/05
Re: New Desktop CBE for testing
Posted: Jun 20, 2008 2:10 AM   in response to: Laszlo (Laca) P...

  Click to reply to this thread Reply

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 dot org
>>>
>>>
>>
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris dot org
>


--
x82120 / +86 10 82618200

_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


bandy

Posts: 353
From: RO

Registered: 2/16/07
Re: New Desktop CBE for testing
Posted: Jun 20, 2008 2:55 AM   in response to: lin

  Click to reply to this thread Reply

tried: /opt/dtbld/bin/env.csh ?

On Fri, Jun 20, 2008 at 12:10 PM, Lin Ma <Lin dot Ma at sun dot 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 dot org
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> desktop-discuss mailing list
>> desktop-discuss at opensolaris dot org
>>
>
>
> --
> x82120 / +86 10 82618200
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris dot org
>



--
Andy
http://blog.sartek.net
_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


Laszlo (Laca) P...
Laszlo.Peter@Sun.COM
Re: New Desktop CBE for testing
Posted: Jun 20, 2008 3:10 AM   in response to: bandy

  Click to reply to this thread Reply

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 dot Ma at sun dot 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 dot org
> >>>>
> >>>>
> >>>
> >>
> >> _______________________________________________
> >> desktop-discuss mailing list
> >> desktop-discuss at opensolaris dot org
> >>
> >
> >
> > --
> > x82120 / +86 10 82618200
> >
> > _______________________________________________
> > desktop-discuss mailing list
> > desktop-discuss at opensolaris dot org
> >
>
>
>

_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


trisk

Posts: 147
From:

Registered: 6/6/06
Re: New Desktop CBE for testing
Posted: Jun 20, 2008 4:19 PM   in response to: Laszlo (Laca) P...

  Click to reply to this thread Reply

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 dot Ma at sun dot 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 dot org
> > >>>>
> > >>>>
> > >>>
> > >>
> > >> _______________________________________________
> > >> desktop-discuss mailing list
> > >> desktop-discuss at opensolaris dot org
> > >>
> > >
> > >
> > > --
> > > x82120 / +86 10 82618200
> > >
> > > _______________________________________________
> > > desktop-discuss mailing list
> > > desktop-discuss at opensolaris dot org
> > >
> >
> >
> >
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris dot org

_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


Laszlo (Laca) P...
Laszlo.Peter@Sun.COM
Re: New Desktop CBE for testing
Posted: Jun 21, 2008 9:33 PM   in response to: trisk

  Click to reply to this thread Reply

On Fri, 2008-06-20 at 19:19 -0400, Albert Lee wrote:
> 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.

How about a separate env-include.sh script that includes everything
env.sh does in the form of a function?

So in your script, you would have something like:

. /opt/dtbld/bin/env-include.sh
init_dt_cbe ss12

LAca

> -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 dot Ma at sun dot 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 dot org
> > > >>>>
> > > >>>>
> > > >>>
> > > >>
> > > >> _______________________________________________
> > > >> desktop-discuss mailing list
> > > >> desktop-discuss at opensolaris dot org
> > > >>
> > > >
> > > >
> > > > --
> > > > x82120 / +86 10 82618200
> > > >
> > > > _______________________________________________
> > > > desktop-discuss mailing list
> > > > desktop-discuss at opensolaris dot org
> > > >
> > >
> > >
> > >
> >
> > _______________________________________________
> > desktop-discuss mailing list
> > desktop-discuss at opensolaris dot org
>

_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


trisk

Posts: 147
From:

Registered: 6/6/06
Re: New Desktop CBE for testing
Posted: Jun 22, 2008 10:24 AM   in response to: Laszlo (Laca) P...

  Click to reply to this thread Reply


On Sun, 2008-06-22 at 16:33 +1200, Laszlo (Laca) Peter wrote:
> On Fri, 2008-06-20 at 19:19 -0400, Albert Lee wrote:
> > 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.
>
> How about a separate env-include.sh script that includes everything
> env.sh does in the form of a function?
>
> So in your script, you would have something like:
>
> . /opt/dtbld/bin/env-include.sh
> init_dt_cbe ss12
>
> LAca


Delayed evaluation might be useful for more complicated scripts (such as
an autobuilder). For the case where env.sh is sourced, the only option
for specifying the compiler seems to be an environment variable (it
should not be checking $1 in that case).

-Albert

_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


Laszlo (Laca) P...
Laszlo.Peter@Sun.COM
Re: New Desktop CBE for testing
Posted: Jun 26, 2008 3:09 AM   in response to: Laszlo (Laca) P...

  Click to reply to this thread Reply

I've posted new tarballs to
http://dlc.sun.com/osol/jds/downloads/cbe/test/

All bugs you guys reported are supposed to be fixed, also
cmake updated to 2.6.0.

Laca

On Fri, 2008-06-20 at 18:24 +1200, Laszlo (Laca) Peter wrote:
> If you used the JDS CBE and/or the KBE (KDE build env) before,
> here's the big news: they have been merged to form the Desktop CBE.
> Test tarballs are now available here:
>
> http://dlc.sun.com/osol/jds/downloads/cbe/test/
>
> The most important changes:
> - a lot more tools included
> - supports Solaris 10, Nevada, OpenSolaris
> - only the tools that are not integrated in the OS are installed
> - all tools updated to more recent versions, including
> pkgbuild (1.3.0)
> - interactive and hands-free installation
> - improved env.sh script now supports:
> - multiple compilers
> - subshell mode
>
> Note: the Desktop CBE is installed in /opt/dtbld.
>
> Please send feedback to Lukas, myself or desktop-discuss. Remember
> that this is a test release, it is entirely possible that it will
> wipe your hard drive, shred your dvd collection or transfer your
> savings to offshore bank accounts so use at your own risk.
>
> Thanks,
> Lukas and Laca


_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


ginnchen

Posts: 126
From: CN

Registered: 4/2/08
Re: New Desktop CBE for testing
Posted: Jul 1, 2008 2:34 AM   in response to: Laszlo (Laca) P...

  Click to reply to this thread Reply

Hi Laca,

Can we include autoconf-2.13 into JDS CBE?
autoconf-2.13 is required to generate "configure" file from
"configure.in" for Mozilla.
autoconf newer than 2.13 doesn't work.

For the new SCM of Mozilla, hg.mozilla.org, "configure" is not in
codebase,
therefore developers need to generate it by themselves.
It would be handy if autoconf-2.13 is included in JDS CBE.

Thanks,

Ginn

On Jun 20, 2008, at 2:24 PM, Laszlo (Laca) Peter wrote:

> If you used the JDS CBE and/or the KBE (KDE build env) before,
> here's the big news: they have been merged to form the Desktop CBE.
> Test tarballs are now available here:
>
> http://dlc.sun.com/osol/jds/downloads/cbe/test/
>
> The most important changes:
> - a lot more tools included
> - supports Solaris 10, Nevada, OpenSolaris
> - only the tools that are not integrated in the OS are installed
> - all tools updated to more recent versions, including
> pkgbuild (1.3.0)
> - interactive and hands-free installation
> - improved env.sh script now supports:
> - multiple compilers
> - subshell mode
>
> Note: the Desktop CBE is installed in /opt/dtbld.
>
> Please send feedback to Lukas, myself or desktop-discuss. Remember
> that this is a test release, it is entirely possible that it will
> wipe your hard drive, shred your dvd collection or transfer your
> savings to offshore bank accounts so use at your own risk.
>
> Thanks,
> Lukas and Laca
>
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris dot org

--------
Ginn Chen
Software Engineer, Browser Team
Sun Microsystems, Inc.
Phone: x82869 / +86-10-62673869
Fax: +86-10-62780969


_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


seb

Posts: 2,142
From: US

Registered: 3/9/05
Re: New Desktop CBE for testing
Posted: Jul 9, 2008 8:44 AM   in response to: Laszlo (Laca) P...

  Click to reply to this thread Reply

On Fri, 2008-06-20 at 18:24 +1200, Laszlo (Laca) Peter wrote:
> If you used the JDS CBE and/or the KBE (KDE build env) before,
> here's the big news: they have been merged to form the Desktop CBE.
> Test tarballs are now available here:
>
> http://dlc.sun.com/osol/jds/downloads/cbe/test/
...
> Please send feedback to Lukas, myself or desktop-discuss.

Here's a minor issue I ran into:

seb:~/Download/desktop-cbe-1.7.0-rc1$ pfexec ./cbe-install
Desktop Common Build Environment (CBE) Installer version 1.7.0-rc1
Run this script as a user with the "Software Installation"
or "Primary Administrator" profile.

You can also use the users-admin program (System -> Administration ->
Users and Groups in the GNOME menu) to assign profiles.

See the user_attr(4) and profiles(1) manual pages for further details


I am assigned the "Primary Administrator" profile, so I'm guessing the
cbe-install script is buggy.

seb:~/Download/desktop-cbe-1.7.0-rc1$ grep seb /etc/user_attr
seb::::profiles=Primary Administrator;roles=root
seb:~/Download/desktop-cbe-1.7.0-rc1$ profiles
Primary Administrator
Console User
Suspend To RAM
Suspend To Disk
Brightness
CPU Power Management
Basic Solaris User
All

-Seb


_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


sergiuss

Posts: 145
From: AR

Registered: 5/4/07
Re: New Desktop CBE for testing
Posted: Jul 9, 2008 1:59 PM   in response to: seb

  Click to reply to this thread Reply

Sebastien Roy wrote:
> On Fri, 2008-06-20 at 18:24 +1200, Laszlo (Laca) Peter wrote:
>
>> If you used the JDS CBE and/or the KBE (KDE build env) before,
>> here's the big news: they have been merged to form the Desktop CBE.
>> Test tarballs are now available here:
>>
>> http://dlc.sun.com/osol/jds/downloads/cbe/test/
>>
> ...
>
>> Please send feedback to Lukas, myself or desktop-discuss.
>>
>
> Here's a minor issue I ran into:
>
> seb:~/Download/desktop-cbe-1.7.0-rc1$ pfexec ./cbe-install
> Desktop Common Build Environment (CBE) Installer version 1.7.0-rc1
> Run this script as a user with the "Software Installation"
> or "Primary Administrator" profile.
>
FWIW I installed while being in the "Software Installation" role
executing cbe-install without the pfexec. If this is or not a bug I
would not know since I have no idea exactly how those roles work yet...
_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org


lin

Posts: 108
From: CN

Registered: 9/19/05
Re: New Desktop CBE for testing
Posted: Jul 9, 2008 8:48 PM   in response to: seb

  Click to reply to this thread Reply

Sebastien Roy wrote:
> On Fri, 2008-06-20 at 18:24 +1200, Laszlo (Laca) Peter wrote:
>
>> If you used the JDS CBE and/or the KBE (KDE build env) before,
>> here's the big news: they have been merged to form the Desktop CBE.
>> Test tarballs are now available here:
>>
>> http://dlc.sun.com/osol/jds/downloads/cbe/test/
>>
> ...
>
>> Please send feedback to Lukas, myself or desktop-discuss.
>>
>
> Here's a minor issue I ran into:
>
> seb:~/Download/desktop-cbe-1.7.0-rc1$ pfexec ./cbe-install
> Desktop Common Build Environment (CBE) Installer version 1.7.0-rc1
> Run this script as a user with the "Software Installation"
> or "Primary Administrator" profile.
>
> You can also use the users-admin program (System -> Administration ->
> Users and Groups in the GNOME menu) to assign profiles.
>
> See the user_attr(4) and profiles(1) manual pages for further details
>
>
> I am assigned the "Primary Administrator" profile, so I'm guessing the
> cbe-install script is buggy.
>
> seb:~/Download/desktop-cbe-1.7.0-rc1$ grep seb /etc/user_attr
> seb::::profiles=Primary Administrator;roles=root
> seb:~/Download/desktop-cbe-1.7.0-rc1$ profiles
> Primary Administrator
> Console User
> Suspend To RAM
> Suspend To Disk
> Brightness
> CPU Power Management
> Basic Solaris User
> All
>
While we should think that why
malin@lucky% pfexec profiles
All
Basic Solaris User
malin@lucky% profiles
Primary Administrator
Console User
Suspend To RAM
Suspend To Disk
Brightness
CPU Power Management
Basic Solaris User
All

malin@lucky% pfexec profiles
All
Basic Solaris User

Is it a bug ?
Could you try "$ ./cbe-install"?

lin
> -Seb
>
>
> _______________________________________________
> desktop-discuss mailing list
> desktop-discuss at opensolaris dot org
>


--
x82120 / +86 10 82618200

_______________________________________________
desktop-discuss mailing list
desktop-discuss at opensolaris dot org





Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
Copyright © 1995-2005 Sun Microsystems, Inc.