[racket] raco setup broken if behind softlink

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Feb 27 09:19:44 EST 2014

The `raco setup` and `setup-plt` programs are the same, and the program
decides how to treat arguments based on the name used to run it. Since
your link is not called "raco", then it uses `setup-plt` mode, which
treats arguments as file names instead of collection names.

You can work around the problem by supplying `-l` before
`mycollection`.

At Thu, 27 Feb 2014 14:56:58 +0100, Tobias Hammer wrote:
> Hi,
> 
> if i use a softlink on linux to call raco, raco setup behaves strangely  
> different.
> 
> Reproduce with
> raco setup -xiIdD --no-planet --avoid-main --force mycollection
> [compile output]
> 
> ln -s `which raco` myraco
> ./myraco setup -xiIdD --no-planet --avoid-main --force mycollection
> open-input-file: cannot open input file
>    path: <<current director>>/mycollection
>    system error: No such file or directory; errno=2
> 
>  From what i could trace, the link gets passed to racket via -N and raco  
> setup somehow uses this to check what it should do. But from that on i am  
> lost.
> 
> I would be grateful for any hints if i am trying something evil or for  
> possible workarounds.
> 
> Tobias
> 
> 
> 
> -- 
> Tobias Hammer
> DLR / Robotics and Mechatronics Center (RMC)
> Muenchner Str. 20, D-82234 Wessling
> Tel.: 08153/28-1487
> Mail: tobias.hammer at dlr.de
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.