bootstrapping 2.4?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

bootstrapping 2.4?

NorbertHartl
With my multiuser setup I need to bootstrap the system for every user. The last ones I did by boostrapping 2.3 and following the update process to 2.4. Is there a more straightforward way in doing this?

thanks,

Norbert

Reply | Threaded
Open this post in threaded view
|

Re: bootstrapping 2.4?

Dale Henrichs
On 10/05/2010 12:18 PM, Norbert Hartl wrote:
> With my multiuser setup I need to bootstrap the system for every user. The last ones I did by boostrapping 2.3 and following the update process to 2.4. Is there a more straightforward way in doing this?
>
> thanks,
>
> Norbert
>

If you take a look in your $GEMSTONE/seaside directory for 2.4.4.1, you
should find all of the pieces that are needed for bootstrapping:

   topaz/installMaster24.topaz
   bootstrap/preBootstrap2.gs
   bootstrap/postBootstrap2.gs
   bootstrap/repository

and

   $GEMSTONE/upgrade/Bootstrap2.gs

Copy the following files to the bootstrap directory:

   cp $GEMSTONE/upgrade/Bootstrap2.gs \
     $GEMSTONE/seaside/bootstrap
   cp $GEMSTONE/seaside/topaz/installMaster24.topaz \
     $GEMSTONE/seaside/bootstrap

and copy the mcz files to the bootstrap/repository directory (or change
the directory to a symbolic link):

   cp $GEMSTONE/seaside/monticello/repository \
     $GEMSTONE/seaside/bootstrap/repository

then edit the $GEMSTONE/seaside/bootstrap/installMaster24.topaz file:

16c16
< ifAbsent: [ UserGlobals at: #BootstrapRepositoryDirectory put:
'./repository/'].
---
 > ifAbsent: [ UserGlobals at: #BootstrapRepositoryDirectory put:
GsPackageLibrary getMonticelloRepositoryDirectory ].

and define $upgradeDir:

   export upgradeDir='.'

You'll then want to make any other changes to the installMaster24.topaz
that might be needed for your setup...

This will get you 1.0-beta.8.1....

This worked for me, let me know if it works for you and I'll
blog/glassdb the instructions.

Dale
Reply | Threaded
Open this post in threaded view
|

Re: bootstrapping 2.4?

NorbertHartl
Hi,

worked quite well. Comments inline!

On 05.10.2010, at 23:24, Dale Henrichs wrote:

> On 10/05/2010 12:18 PM, Norbert Hartl wrote:
>> With my multiuser setup I need to bootstrap the system for every user. The last ones I did by boostrapping 2.3 and following the update process to 2.4. Is there a more straightforward way in doing this?
>>
>> thanks,
>>
>> Norbert
>>
>
> If you take a look in your $GEMSTONE/seaside directory for 2.4.4.1, you should find all of the pieces that are needed for bootstrapping:
>
>  topaz/installMaster24.topaz
>  bootstrap/preBootstrap2.gs
>  bootstrap/postBootstrap2.gs
>  bootstrap/repository
>
> and
>
>  $GEMSTONE/upgrade/Bootstrap2.gs
>
> Copy the following files to the bootstrap directory:
>
>  cp $GEMSTONE/upgrade/Bootstrap2.gs \
>    $GEMSTONE/seaside/bootstrap
>  cp $GEMSTONE/seaside/topaz/installMaster24.topaz \
>    $GEMSTONE/seaside/bootstrap
>
> and copy the mcz files to the bootstrap/repository directory (or change the directory to a symbolic link):
>
>  cp $GEMSTONE/seaside/monticello/repository \
>    $GEMSTONE/seaside/bootstrap/repository
>
cp does not copy directories. On the other hand seaside/bootstrap/repository exists already. So a

cp $GEMSTONE/seaside/monticello/repository/* \
        $GEMSTONE/seaside/bootstrap/repository

should do.

> then edit the $GEMSTONE/seaside/bootstrap/installMaster24.topaz file:
>
> 16c16
> < ifAbsent: [ UserGlobals at: #BootstrapRepositoryDirectory put: './repository/'].
> ---
> > ifAbsent: [ UserGlobals at: #BootstrapRepositoryDirectory put: GsPackageLibrary getMonticelloRepositoryDirectory ].
>

The diff you did is in the opposite direction. I'm not sure if somebody would have noticed. And it is easy to figure out the right direction. But turning it right probably helps. I did a unified diff because I think it is easier to read.

@@ -15,3 +15,3 @@
  at: #BootstrapRepositoryDirectory
- ifAbsent: [ UserGlobals at: #BootstrapRepositoryDirectory put: GsPackageLibrary getMonticelloRepositoryDirectory ].
+ ifAbsent: [ UserGlobals at: #BootstrapRepositoryDirectory put: './repository/' ].
 UserGlobals


> and define $upgradeDir:
>
>  export upgradeDir='.'
>
> You'll then want to make any other changes to the installMaster24.topaz that might be needed for your setup...
>
> This will get you 1.0-beta.8.1....
>
Yep. And then I could log in, press update... and upgrade to 1.0-beta.8.4. It seems to be really fine. I'll start to install seaside and pier and report if I find some weird stuff.

> This worked for me, let me know if it works for you and I'll blog/glassdb the instructions.
>
It worked like a charm. Thanks for that.

Norbert