How to create a SqueakSource image?

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

How to create a SqueakSource image?

wilkesj
What are the dependencies for creating a squeak source image?
It looks like the latest is SqueakSource-pmm.180.mcz. And the dependencies are:

Seaside2-pmm.88 (and it's dependencies, Comanche et al.)
TinyWiki-lr.10
Mewa-bf.15

Do I need to load these in a full 3.7 or 3.8 image?  I believe that
prior versions required 3.7, but I may be wrong.

Has anyone considered creating a MCConfig for this?

Thanks,
Wilkes

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Lukas Renggli
> What are the dependencies for creating a squeak source image?

Mhh, that's a difficult task, because of all the dependencies to old
packages and SqueakMap entries. It is certainly the easiest if you
start from a ready-made image, such as the one available at
http://de-1.tric.nl/~cg/images/.

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Doug Way
In reply to this post by wilkesj

If you go to http://source.squeakfoundation.org , to the
"SqueakSource-SqF" project wiki tab, there is a specific list of all
packages needed to add to a fresh Squeak 3.7 image to get SqueakSource
running.

However, this is a somewhat older version of SqueakSource.  The latest
version from Lukas/Adrian may require fewer packages, although I imagine
the list is pretty similar.

- Doug


On Mon, 6 Feb 2006 15:38:46 -0600, "Wilkes Joiner"
<[hidden email]> said:

> What are the dependencies for creating a squeak source image?
> It looks like the latest is SqueakSource-pmm.180.mcz. And the
> dependencies are:
>
> Seaside2-pmm.88 (and it's dependencies, Comanche et al.)
> TinyWiki-lr.10
> Mewa-bf.15
>
> Do I need to load these in a full 3.7 or 3.8 image?  I believe that
> prior versions required 3.7, but I may be wrong.
>
> Has anyone considered creating a MCConfig for this?
>
> Thanks,
> Wilkes
>

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Philippe Marschall
In reply to this post by wilkesj
> Seaside2-pmm.88 (and it's dependencies, Comanche et al.)
> TinyWiki-lr.10
> Mewa-bf.15

They are all in the SqS reporsitory at
http://squeaksource.com/ss/

Seaside2 is even a required package and should load automatically.

> Do I need to load these in a full 3.7 or 3.8 image?  I believe that
> prior versions required 3.7, but I may be wrong.

No special requiremets. squeaksource.com runs now on 3.8 but used to
run on 3.7 alpha or beta (don't know exactly). No code did have to be
changed. Migrating data was a bit messy though.

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

wilkesj
Here is what I loaded into a clean 3.8-6665 image:

from SqueakMap
  DynamicBindings (1.2)
  KomServices (1.1.2)
  KomHttpServer (7.0.3)

>From squeaksource
  Seaside2 (Seaside2-pmm.88)
  Mewa (Mewa-bf.15)
  TinyWiki (TinyWiki-lr.10)
  SqueakSource (SqueakSource-pmm.176)

Then from SSRepository class>>initialize
I evaluated
        " Current _ self defaultRepository.
          Storage _ self defaultStorage. "

        " -- save the current repository -- "
        " self storage saveRepository: self current. "

Then from a workspace I ran:
SSRepository startUp

When I go to localhost:8888, I get a new session, i.e.
http://localhost:8888/@kRuVNkmOoZEIEHTB/YYNBrWQh, but never a
response.  I've opened up the process browser and see a bunch of
process that appear to be in some sort of recursive loop.

I'm guess that this is some more set up I need to do before I launch,
but I'm not sure what it is. Any ideas?

Thanks,
Wilkes

On 2/7/06, Philippe Marschall <[hidden email]> wrote:

> > Seaside2-pmm.88 (and it's dependencies, Comanche et al.)
> > TinyWiki-lr.10
> > Mewa-bf.15
>
> They are all in the SqS reporsitory at
> http://squeaksource.com/ss/
>
> Seaside2 is even a required package and should load automatically.
>
> > Do I need to load these in a full 3.7 or 3.8 image?  I believe that
> > prior versions required 3.7, but I may be wrong.
>
> No special requiremets. squeaksource.com runs now on 3.8 but used to
> run on 3.7 alpha or beta (don't know exactly). No code did have to be
> changed. Migrating data was a bit messy though.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Mark P. McCahill
In reply to this post by Doug Way

On Feb 6, 2006, at 4:28 PM, Doug Way wrote:

>
> If you go to http://source.squeakfoundation.org , to the
> "SqueakSource-SqF" project wiki tab, there is a specific list of all
> packages needed to add to a fresh Squeak 3.7 image to get SqueakSource
> running.
>
> However, this is a somewhat older version of SqueakSource.  The latest
> version from Lukas/Adrian may require fewer packages, although I  
> imagine
> the list is pretty similar.
>

I went through this exercise last week. Here is what I did:
got a fresh 3.8 image, added all the packages listed in the
"SqueakSource-SqF" project at source.squeakfoundation.org.

Then, did the set up the setup stuff in SSRepository class>>initialize

Then I went to http://source.impara.de/ss and got the Impara
updates... and then I had a nice squeaksource that works well.



Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Bert Freudenberg-3

Am 07.02.2006 um 17:09 schrieb Mark P. McCahill:

>
> On Feb 6, 2006, at 4:28 PM, Doug Way wrote:
>
>>
>> If you go to http://source.squeakfoundation.org , to the
>> "SqueakSource-SqF" project wiki tab, there is a specific list of all
>> packages needed to add to a fresh Squeak 3.7 image to get  
>> SqueakSource
>> running.
>>
>> However, this is a somewhat older version of SqueakSource.  The  
>> latest
>> version from Lukas/Adrian may require fewer packages, although I  
>> imagine
>> the list is pretty similar.
>>
>
> I went through this exercise last week. Here is what I did:
> got a fresh 3.8 image, added all the packages listed in the
> "SqueakSource-SqF" project at source.squeakfoundation.org.
>
> Then, did the set up the setup stuff in SSRepository class>>initialize
>
> Then I went to http://source.impara.de/ss and got the Impara
> updates... and then I had a nice squeaksource that works well.

Can't remember fixing anything critical, though, lately. I think  
Philippe merged with our version less than a month ago ...

Anyway, if it worked for you, it's fine :)

- Bert -


Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Philippe Marschall
In reply to this post by wilkesj
> I'm guess that this is some more set up I need to do before I launch,
> but I'm not sure what it is. Any ideas?

Yeah. Probably an exception happens somewhere, it tries to send an
email but that times out because the mail server is not configured
correctly, which throws an exception again and so ends in a loop.

Try to put a halt into WAMailErrorPage >> #show.

about the versions:
al.179 is the one currently deployed at http://www.squeaksource.com.
It has bf.166 merged in (by Lukas) and contains various fixes and
improvements:
- validation fixes (xhml and rss)
- color for report rows no longer hardcoded but follows color setting
- more information on the project page (static links)
- a link to the project page on the listing page
- catches exceptions when storing strange versions
- search fixes
- Noury's fixes
- feed link in header (mozilla, safari, opera, ie7, ... show that it has a feed)
- search for members
- feed validation link
- ...

pmm.180 contains some super secret not yet announced or deployed features ;)

please note that both al.179 and pmm.180  have the reference stream
saving disabled

Cheers
Philippe

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Andreas.Raab
In reply to this post by Mark P. McCahill
Hi -

Any chance for any of you sharing such an up-to-date image? It might
come in handy for other people too and since you just went through it
it'd be great if you could share that.

Cheers,
   - Andreas

Mark P. McCahill wrote:

>
> On Feb 6, 2006, at 4:28 PM, Doug Way wrote:
>
>>
>> If you go to http://source.squeakfoundation.org , to the
>> "SqueakSource-SqF" project wiki tab, there is a specific list of all
>> packages needed to add to a fresh Squeak 3.7 image to get SqueakSource
>> running.
>>
>> However, this is a somewhat older version of SqueakSource.  The latest
>> version from Lukas/Adrian may require fewer packages, although I  imagine
>> the list is pretty similar.
>>
>
> I went through this exercise last week. Here is what I did:
> got a fresh 3.8 image, added all the packages listed in the
> "SqueakSource-SqF" project at source.squeakfoundation.org.
>
> Then, did the set up the setup stuff in SSRepository class>>initialize
>
> Then I went to http://source.impara.de/ss and got the Impara
> updates... and then I had a nice squeaksource that works well.
>
>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

wilkesj
In reply to this post by Philippe Marschall
That seems to be part of the problem.  The error is being generated by
Color>>hex from
Integer>>printOn: base: showRadix:

"radix indicator not found."

Any more ideas?  I'v attached the complete wallback.

Thanks a lot for everyones help,
Wilkes

On 2/7/06, Philippe Marschall <[hidden email]> wrote:

> > I'm guess that this is some more set up I need to do before I launch,
> > but I'm not sure what it is. Any ideas?
>
> Yeah. Probably an exception happens somewhere, it tries to send an
> email but that times out because the mail server is not configured
> correctly, which throws an exception again and so ends in a loop.
>
> Try to put a halt into WAMailErrorPage >> #show.
>
> about the versions:
> al.179 is the one currently deployed at http://www.squeaksource.com.
> It has bf.166 merged in (by Lukas) and contains various fixes and
> improvements:
> - validation fixes (xhml and rss)
> - color for report rows no longer hardcoded but follows color setting
> - more information on the project page (static links)
> - a link to the project page on the listing page
> - catches exceptions when storing strange versions
> - search fixes
> - Noury's fixes
> - feed link in header (mozilla, safari, opera, ie7, ... show that it has a feed)
> - search for members
> - feed validation link
> - ...
>
> pmm.180 contains some super secret not yet announced or deployed features ;)
>
> please note that both al.179 and pmm.180  have the reference stream
> saving disabled
>
> Cheers
> Philippe
>
>



ss-wallback.txt (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Philippe Marschall
2006/2/7, Wilkes Joiner <[hidden email]>:
> That seems to be part of the problem.  The error is being generated by
> Color>>hex from
> Integer>>printOn: base: showRadix:
>
> "radix indicator not found."

Can you go up the stack and see for what number this fails?

What an Image (version) do you have?

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

wilkesj
image 3.8 6665
it fails on the default color on red 54.

On 2/7/06, Philippe Marschall <[hidden email]> wrote:

> 2006/2/7, Wilkes Joiner <[hidden email]>:
> > That seems to be part of the problem.  The error is being generated by
> > Color>>hex from
> > Integer>>printOn: base: showRadix:
> >
> > "radix indicator not found."
>
> Can you go up the stack and see for what number this fails?
>
> What an Image (version) do you have?
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Andreas.Raab
Actually #printOn:base:showRadix: will fail for any showRadix: false
unless base is 10. Sounds weird? Yeah. Here are examples:

   100 printOn: Transcript base:  8 showRadix: false "->fails"
   100 printOn: Transcript base: 10 showRadix: false "->succeeds"
   100 printOn: Transcript base: 16 showRadix: false "->fails"

Looks like #printStringRadix: is supposed to return a radix whenever
invoked but doesn't. Note how it is actually special-casing radix 10 -
it looks like it's expecting #printStringBase: to add the "16r" prefix
which apparently #printStringBase: doesn't (or rather "no longer") do.

BTW, this is a classic screw-up that tests would have found in no time.
Where are they when you need 'em?

Cheers,
   - Andreas

Wilkes Joiner wrote:

> image 3.8 6665
> it fails on the default color on red 54.
>
> On 2/7/06, Philippe Marschall <[hidden email]> wrote:
>> 2006/2/7, Wilkes Joiner <[hidden email]>:
>>> That seems to be part of the problem.  The error is being generated by
>>> Color>>hex from
>>> Integer>>printOn: base: showRadix:
>>>
>>> "radix indicator not found."
>> Can you go up the stack and see for what number this fails?
>>
>> What an Image (version) do you have?
>>
>>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

wilkesj
I added a kludge to fix this.

Color>>hex
        ^ (self toHexString: (self red)),
          (self toHexString: (self green)),
          (self toHexString: (self blue))

Color>>toHexString: aNumber
        ^ ((aNumber * 255) asInteger hex allButFirst: 3) padded: #left to: 2 with: $0

Not pretty but it works.

- Wilkes

On 2/7/06, Andreas Raab <[hidden email]> wrote:

> Actually #printOn:base:showRadix: will fail for any showRadix: false
> unless base is 10. Sounds weird? Yeah. Here are examples:
>
>    100 printOn: Transcript base:  8 showRadix: false "->fails"
>    100 printOn: Transcript base: 10 showRadix: false "->succeeds"
>    100 printOn: Transcript base: 16 showRadix: false "->fails"
>
> Looks like #printStringRadix: is supposed to return a radix whenever
> invoked but doesn't. Note how it is actually special-casing radix 10 -
> it looks like it's expecting #printStringBase: to add the "16r" prefix
> which apparently #printStringBase: doesn't (or rather "no longer") do.
>
> BTW, this is a classic screw-up that tests would have found in no time.
> Where are they when you need 'em?
>
> Cheers,
>    - Andreas
>
> Wilkes Joiner wrote:
> > image 3.8 6665
> > it fails on the default color on red 54.
> >
> > On 2/7/06, Philippe Marschall <[hidden email]> wrote:
> >> 2006/2/7, Wilkes Joiner <[hidden email]>:
> >>> That seems to be part of the problem.  The error is being generated by
> >>> Color>>hex from
> >>> Integer>>printOn: base: showRadix:
> >>>
> >>> "radix indicator not found."
> >> Can you go up the stack and see for what number this fails?
> >>
> >> What an Image (version) do you have?
> >>
> >>
> >
> >
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Philippe Marschall
2006/2/7, Wilkes Joiner <[hidden email]>:

> I added a kludge to fix this.
>
> Color>>hex
>         ^ (self toHexString: (self red)),
>           (self toHexString: (self green)),
>           (self toHexString: (self blue))
>
> Color>>toHexString: aNumber
>         ^ ((aNumber * 255) asInteger hex allButFirst: 3) padded: #left to: 2 with: $0
>
> Not pretty but it works.

I think originally it was like this:

Color >> #hex
        "Color white hex"
       
        ^ (Character value: (self red * 255.0) asInteger) hex,
                (Character value: (self green * 255.0) asInteger) hex,
                (Character value: (self blue * 255.0) asInteger) hex

the current code is from the latest Seaside version, strange ...

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

wilkesj
On 2/7/06, Philippe Marschall <[hidden email]> wrote:

> 2006/2/7, Wilkes Joiner <[hidden email]>:
> > I added a kludge to fix this.
> >
> > Color>>hex
> >         ^ (self toHexString: (self red)),
> >           (self toHexString: (self green)),
> >           (self toHexString: (self blue))
> >
> > Color>>toHexString: aNumber
> >         ^ ((aNumber * 255) asInteger hex allButFirst: 3) padded: #left to: 2 with: $0
> >
> > Not pretty but it works.
>
> I think originally it was like this:
>
> Color >> #hex
>         "Color white hex"
>
>         ^       (Character value: (self red * 255.0) asInteger) hex,
>                 (Character value: (self green * 255.0) asInteger) hex,
>                 (Character value: (self blue * 255.0) asInteger) hex
>
> the current code is from the latest Seaside version, strange ...
>
>
there is a version like this:
Color>>hex
        ^ (rgb hex allButFirst: 3) asLowercase

But for the default (Color r: 0.21484375 g: 0.1171875 b: 0.51953125)
it returns 'dc1e213' which isn't valid for html.

The version above returns the correct six character representation:
'361D84' or rgb: 54 29 132.

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

wilkesj
In reply to this post by Philippe Marschall
On 2/7/06, Philippe Marschall <[hidden email]> wrote:

> 2006/2/7, Wilkes Joiner <[hidden email]>:
> > I added a kludge to fix this.
> >
> > Color>>hex
> >         ^ (self toHexString: (self red)),
> >           (self toHexString: (self green)),
> >           (self toHexString: (self blue))
> >
> > Color>>toHexString: aNumber
> >         ^ ((aNumber * 255) asInteger hex allButFirst: 3) padded: #left to: 2 with: $0
> >
> > Not pretty but it works.
>
> I think originally it was like this:
>
> Color >> #hex
>         "Color white hex"
>
>         ^       (Character value: (self red * 255.0) asInteger) hex,
>                 (Character value: (self green * 255.0) asInteger) hex,
>                 (Character value: (self blue * 255.0) asInteger) hex
>
> the current code is from the latest Seaside version, strange ...

This broken version is in the current version of Seaside, but it is
only referenced in test and those test fail.

How does this work in the version running squeaksource.com?

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Mark P. McCahill
In reply to this post by Andreas.Raab

On Feb 7, 2006, at 1:05 PM, Andreas Raab wrote:

> Hi -
>
> Any chance for any of you sharing such an up-to-date image? It  
> might come in handy for other people too and since you just went  
> through it it'd be great if you could share that.
>

http://hedgehog.software.umn.edu/croquet/Jasmine/install/ 
workingSqueakSource.zip


> Cheers,
>   - Andreas
>
> Mark P. McCahill wrote:
>> On Feb 6, 2006, at 4:28 PM, Doug Way wrote:
>>>
>>> If you go to http://source.squeakfoundation.org , to the
>>> "SqueakSource-SqF" project wiki tab, there is a specific list of all
>>> packages needed to add to a fresh Squeak 3.7 image to get  
>>> SqueakSource
>>> running.
>>>
>>> However, this is a somewhat older version of SqueakSource.  The  
>>> latest
>>> version from Lukas/Adrian may require fewer packages, although I  
>>> imagine
>>> the list is pretty similar.
>>>
>> I went through this exercise last week. Here is what I did:
>> got a fresh 3.8 image, added all the packages listed in the
>> "SqueakSource-SqF" project at source.squeakfoundation.org.
>> Then, did the set up the setup stuff in SSRepository  
>> class>>initialize
>> Then I went to http://source.impara.de/ss and got the Impara
>> updates... and then I had a nice squeaksource that works well.
>
>


Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Philippe Marschall
In reply to this post by wilkesj
> How does this work in the version running squeaksource.com?

I have do idea, but obviously it does.

Reply | Threaded
Open this post in threaded view
|

Re: How to create a SqueakSource image?

Bert Freudenberg-3

Am 08.02.2006 um 09:00 schrieb Philippe Marschall:

>> How does this work in the version running squeaksource.com?
>
> I have do idea, but obviously it does.

3.7 vs. 3.8 issue?

- Bert -


12