On Thursday, February 22, 2018 at 2:14:53 PM UTC+8, Claes Wallin wrote:
>
> Here's where we are now with racket2nix:
>
> I'm able to install but not actually build drracket and all its 
> dependencies. I pull down the zip files, run raco install --no-setup, and 
> the files are all there in their respective share/racket/pkgs, and 
> share/racket/links.rktd is updated. Awesome! It's been a rewarding week.
>
> But I can't run raco setup, even on a simple package like at-exp-lib:
>
> ++ 
> /nix/store/20jh9mdzw4ngyg6h2205lfpwhcjwj0ca-racket-minimal-6.12/bin/racket 
> -G /nix/store/kgrvx3swjp7a1vbzk6384jx27hli6pjc-at-exp-lib/etc/racket -U -X 
> /nix/store/kgrvx3swjp7a1vbzk6384jx27hli6pjc-at-exp-lib/share/racket/collects 
> -N raco -l- raco setup --no-user --no-pkg-deps --fail-fast --only --pkgs 
> at-exp-lib
> raco setup: bootstrapping from source...
>  triggered by use of non-".zo" file
>   path: 
> /nix/store/kgrvx3swjp7a1vbzk6384jx27hli6pjc-at-exp-lib/share/racket/collects/compiler/compilation-path.rkt
> collection-path: collection not found
>   collection: "at-exp"
>   in collection directories:
>    
> /nix/store/kgrvx3swjp7a1vbzk6384jx27hli6pjc-at-exp-lib/share/racket/collects
>    
> /nix/store/20jh9mdzw4ngyg6h2205lfpwhcjwj0ca-racket-minimal-6.12/share/racket/collects
>    /nix/store/bxhgb75zr9yrzsa496s5830i9wq7dw2d-base/share/racket/collects
>
> I've been digging around, but as there is no stack trace I cannot figure 
> out where this happens. Could anyone clue me in?
>

I've worked around it by simply looking at ((get-info/full "$package_path") 
'collection), creating the appropriate .../collects directories based on 
the value, and then after raco setup I prune all empty directories from 
.../collects. The full racket install doesn't do this when setting up its 
bundled packages, but I guess there are two important things that differ:

1. The layout -- I have multiple collects directories.
2. I'm running raco setup --only --pkgs. I guess the (collection-path) call 
happens in the part of the code that tries to be specific about what it's 
compiling, and the unrestricted raco setup in the racket install simply 
doesn't take that code path.

-- 
   /c

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to