[squeak-dev] [Test][Squeak5.2rc1][SqueakMap] FFI entry in SqueakMap catalog for 5.2?

David T. Lewis lewis at mail.msen.com
Sun Oct 14 14:54:06 UTC 2018


The SqueakMap package loader looks for the 'publisher' field to
decide if a package release has been published, as opposed to
just tagged for Squeak5.2 but not published. If that field is nil,
it finds some other published release (even it if is not tagged
for Squeak5.2) and loads that one instead.

I tried to hack the 'publisher' field from the image side and save
it back to the server, but the SqueakMap server was too smart for
me, and would not keep my change to the publisher field.

For the record, here is what I did (that does not work):

   thePackageRelease := (SMPackageRelease allInstances
            select: [:e | e package name = 'FFI'
                  and: [e version = '5.2']]) first.
   myAccount := (SMAccount allInstances
            select: [:e | e name = 'Dave Lewis']) first.
   thePackageRelease publisher: myAccount.

Maybe there is a SqueakMap administrator function that would allow
this release to be published?

Dave


On Sun, Oct 14, 2018 at 09:32:53AM -0400, David T. Lewis wrote:
> Hi Hannes,
> 
> Unfortunately I cannot find a way to do the publish. The map.squeak.org
> site lets me edit my own package releases, and that is where the "publish"
> check box is. But I see no way for me to do it with the community supported
> FFI package.
> 
> Meanwhile, if I try doing the install for FFI from the package level,
> then click "accept" to proceed, it tries to load the old 3.10 version.
> So that is not good :-(
> 
> Dave
> 
> 
> On Sun, Oct 14, 2018 at 03:36:04AM +0200, H. Hirzel wrote:
> > Hi David
> > 
> > Thank you for the FFI (5.2) entry (release) entry you created. If I
> > click on it and 'Install' it it loads fine.
> > 
> > On the other side if I click on FFI and then Install it gives a small
> > dialog box with
> > 
> >      'The package has no published release for your Squeak version'.
> > 
> > For example the recently created SIXX entry by Masashi Umezawa does
> > not have this dialog box.
> > 
> > This box will probably not show up if you "publish" is from the web page.
> > 
> > --Hannes
> > 
> > On 10/14/18, David T. Lewis <lewis at mail.msen.com> wrote:
> > > Hi Hannes,
> > >
> > > This sounds right to me also. I just added a '5.2' SqueakMap release for
> > > FFI that hopefully does what you explain here.
> > >
> > > If it looks right, we can "publish" it from the web page to make it
> > > official.
> > >
> > > Thank you for making this happen for FFI :-)
> > >
> > > Dave
> > >
> > >
> > > On Sun, Oct 14, 2018 at 02:30:35AM +0200, H. Hirzel wrote:
> > >> Hello
> > >>
> > >> Yes, in the meantime I have read through Chris Muller's email again
> > >> and I understand that
> > >>
> > >> a) the entry with the head script which contains
> > >>
> > >>        Installer new merge: #ffiTests'
> > >>
> > >>     continues to be effective for future releases but will not help to
> > >> document
> > >>     what works here and now in 5.2.
> > >>
> > >>
> > >> b) for 5.2 we need to create specific new release.
> > >>
> > >>     It should be labeled '5.2' because that follows the example set in
> > >> the current FFI entry.  (**)
> > >>
> > >>     And assign it to Squeak release 5.2  so that it shows up in the
> > >> filtered  list of
> > >>     'newly safely-available package' for 5.2
> > >>
> > >>     Then entry may follow the example of Magma database (e.g. 1.62
> > >> server) which is
> > >>
> > >>         'SMSqueakMap default loadUpdates.
> > >>
> > >>         (Smalltalk hasClassNamed: #MagmaSession)
> > >> 	ifFalse: [ SMSqueakMap default installPackageNamed: ''Magma''
> > >> version: ''1.62 client'' ].
> > >>
> > >>         #(''Magma-Server-cmm.515'' ''Magma-Tools-cmm.76'' ) do:
> > >> 	[ : each |
> > >> 	(Installer repository: ''http://www.squeaksource.com/Magma'') install:
> > >> each ]'
> > >>
> > >>
> > >>         The  issue is to go for specifc version of FFI code
> > >>
> > >>         http://source.squeak.org/FFI/
> > >>
> > >>         The question now is which files to pick.
> > >>
> > >>         I probably just pick the latest ones. The 'versions' page show a
> > >>         ConfigurationOfFFI-nice.41.mcz from Nicolas Cellier, April this
> > >> year
> > >>
> > >>         But I remember that Eliot Miranda has added better VM support
> > >> for exceptions
> > >>         regarding FFI, so I probably better go for his most recent
> > >>
> > >>         http://source.squeak.org/FFI/FFI-Kernel-eem.55.mcz
> > >>
> > >>         and for the Pool dictionary values
> > >>         http://source.squeak.org/FFI/FFI-Pools-TorstenBergmann.4.mcz
> > >>
> > >>         And for the tests
> > >>
> > >>         FFI-Tests-cbc.9.mcz
> > >>
> > >>         I'll do that on Monday unless somebody else wants to do it.
> > >>         The FFI package is 'community supported'. So anybody with which
> > >> has a
> > >>         SqueakMap login may create it.
> > >>
> > >>         Any comments?
> > >>
> > >> --Hannes
> > >>
> > >>
> > >> ** Other entries have different release numbering schemes, no need to
> > >> label releases in synch with the Squeak releases.
> > >>
> > >> On 10/14/18, Chris Muller <ma.chris.m at gmail.com> wrote:
> > >> >> It sounds like we need a new release called '5.2' with a load script
> > >> >> that looks similar to the load script for '3.10' but with package
> > >> >> versions that match what you get when you load '(head)'. That new
> > >> >> release should be tagged for Squeak5.2, and it should be "published"
> > >> >> from the http://map.squeak.org site. Does this sound right?
> > >> >
> > >> > Yes, absolutely.  And, once we have the template from this Squeak
> > >> > release established, it becomes incredibly easy to simply do what you
> > >> > said above, since you just select "Create New Release", and update
> > >> > version numbers in the script to what they show in the Monticello
> > >> > browser.
> > >> >
> > >> > Any one of the 1.62 Magma packages can serve as the first template.
> > >> > Just delete the pre-req load if you don't need it and change the
> > >> > package names to the current correct versions of FFI.
> > >> >
> > >> >  - Chris
> > >> >
> > >> >
> > >
> > 
> 


More information about the Squeak-dev mailing list