[racket] file-or-directory-modify-seconds usage bug

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Mon Jul 19 20:23:38 EDT 2010

I've noticed this bug too, but I think that, in the meantime, you can
just do an "in place" build. That is, create some build directory to
run configure in, but don't pass an install dir and instead let the
make install phase go directly into the plt tree where you're building
from. This works in general and is probably easier to deal with than a
separate install directory.


On Mon, Jul 19, 2010 at 6:28 PM, synx <plt at synx.us.to> wrote:
> raco setup:   file-or-directory-modify-seconds: expects type <exact
> integer or #f> as 2nd argument, given: +inf.0; other arguments were:
> #<path:/.../share/racket/doc/gl-board-game/stamp.sxref>
> Just noticed this error during install of the latest git. Something
> during installation is attempting to set the modified time of the file
> to infinitely far in the future. So either
> file-or-directory-modify-seconds has to be adjusted to set modified time
> to the highest possible number in such cases, or the code calling that
> has to make sure it  passes a real, finite integer to the procedure.
> My git repository is in /home/racket/git ($GIT). It's attempting to
> install in /var/opt/racket ($PREFIX). I'm running my little compilation
> script in the ordinary place: $GIT/build. I'm using
> $GIT/build/temp-install as a DESTDIR. (Then as root I'll just copy the
> files over to /var/opt/racket but I haven't got that far yet.)
> The two files that raised the error were in $DESTDIR$PREFIX/$COLLECTS:
> .../lib/racket/collects/games/gl-board-game/gl-board-game.scrbl
> .../lib/racket/collects/sgl/scribblings/sgl.scrbl
> --
> I was also seeing a lot of errors like this:
> raco setup: ERROR: games/doors doors.rkt: default-load-handler: cannot
> open input file: "/home/racket/git/collects/sgl/gl-info.rkt" (No such
> file or directory; errno=2)
> Which is pretty odd, because gl-info.rkt is only created in
> $DESTDIR/$PREFIX/$COLLECTS/sgl/ not in $GIT/$COLLECTS. Why it would be
> requiring the existence of a generated file in the source directory,
> that doesn't ever get modified during the build process, I can only
> think it must be a bug somewhere.
> Since it's so big, I'll reply with the full make.log for moderators to
> approve at their leisure.
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.