[squeak-dev] About loading Grease into Squeak6.0alpha latest update: #17402

H. Hirzel hannes.hirzel at gmail.com
Thu Sep 28 12:09:43 UTC 2017


Hello

FYI: To load Grease [1] into Squeak6.0alpha latest update: #17402 I
had to trick Metacello into assuming to have a Squeak 5.1 image [2].

Then
    (ConfigurationOfGrease project version: #stable) load
went fine.

A fix for Squeak6.0a is needed for the Metacello method in [2].

Kind regards
Hannes Hirzel




[1] MCHttpRepository
    location: 'http://www.squeaksource.com/MetacelloRepository'
    user: ''
    password: ''

    Version:

    http://www.squeaksource.com/MetacelloRepository/ConfigurationOfGrease-StephanEggermont.345.mcz

[2] MetacelloSqueakPlatform

defaultPlatformAttributes
	| attributes  |
	attributes := OrderedCollection with: #squeakCommon with: #squeak.
	Smalltalk
		at: #SystemVersion
		ifPresent: [:cl | |versionString|
			versionString := cl current version asString.
			" Major version "
			#(	'Squeak3.10' (#'squeak3.10.x' ())
				'Squeak4' (#'squeak4.x' (
					'Squeak4.1' #'squeak4.1.x'
					'Squeak4.2' #'squeak4.2.x'
					'Squeak4.3' #'squeak4.3.x'
					'Squeak4.4' #'squeak4.4.x'
					'Squeak4.5' #'squeak4.5.x'
					'Squeak4.6' #'squeak4.6.x'))
				'Squeak5' (#'squeak5.x' (
					'Squeak5.0' #'squeak5.0.x')))
			pairsDo: [:major :allAttributes |
				(versionString beginsWith: major) ifTrue: [
					attributes add: allAttributes first.
					allAttributes second ifNotEmpty: [:minorVersions |
						minorVersions pairsDo: [:minor :attribute |
							(versionString beginsWith: minor) ifTrue: [
								attributes add: attribute.
								^ attributes]]]]]].

       "HACK HJH to load Grease into Squeak6.0a"
        attributes add: #'squeak5.x'.

        ^ attributes


More information about the Squeak-dev mailing list