[racket-dev] planet-version follies with old planet packages

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Tue May 17 08:35:10 EDT 2011

On Tue, May 17, 2011 at 12:04 AM, Jens Axel Søgaard
<jensaxel at soegaard.net> wrote:
> 011/5/17 Robby Findler <robby at eecs.northwestern.edu>:
>> Oh, okay I'm caught up now and, as far as I can tell, the gzip.plt
>> package needs to be updated. It has this:
>>
>>  (define required-core-version "400.0")
>>
>> in the info.ss file:
>>
>>  http://planet.racket-lang.org/package-source/soegaard/gzip.plt/2/0/info.ss
>>
>> and I think that needs to be this instead:
>>  (define required-core-version "4.0")
>
> I picked at random one of my other packages "digest", and in its info.ss
> is says:
>
> (define required-core-version "369.8")
>
> And that seems to work fine:
>
> Welcome to DrRacket, version 5.0.99.6--2011-01-12(99d1cda/a) [3m].
> Language: racket; memory limit: 256 MB.
>> (require (planet "digest.ss" ("soegaard" "digest.plt" 1 2)))
>> (bytes->hex-string (md5-bytes #"abc"))
> "900150983cd24fb0d6963f7d28e17f72"
>
> So I am a little confused.
>
> Is it only the 4xx series, that where the form "400.0" doesn't work?

Right.

If the version number begins with a 3 and is three digits (before the
decimal) then it is treated as the old-style version number.

I could change the way parsing for the packages works, but that would
mean your package would only work for 5.1.2 and later versions (which,
technically, means you'd want to change the required-core-version :).

Robby



Posted on the dev mailing list.