[racket] raco setup broken if behind softlink

From: Sam Tobin-Hochstadt (samth at cs.indiana.edu)
Date: Thu Feb 27 10:07:27 EST 2014

On Thu, Feb 27, 2014 at 9:19 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> 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.

Would it be reasonable to reverse the sense of this test, and only
behave like `setup-plt` if the program is called "setup-plt"?

Sam

> 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
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users

Posted on the users mailing list.