ccl icon indicating copy to clipboard operation
ccl copied to clipboard

Let ASDF follow symlinks when looking up systems / .asd files

Open Ambrevar opened this issue 6 years ago • 9 comments

If I symlink a Common Lisp project to ~/common-lisp for instance, I can load the .asd with SBCL but not with CCL. It seems that ASDF in CCL does not follow symlinks (I haven't checked).

I could be an issue with my system's CCL:

  • OS: Guix
  • CCL version: 1.11.5
  • (asdf:asdf-version): 3.1.5.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Ambrevar avatar Feb 07 '19 16:02 Ambrevar

I remember this coming up before, and I think it was an issue in ASDF.

https://gitlab.common-lisp.net/asdf/asdf/merge_requests/27 seems like it is in the area.

ASDF 3.1.5 is the version bundled with CCL 1.11.5, so you could try an updated ASDF to see if that helps your situation.

xrme avatar Feb 18 '19 23:02 xrme

Could very well be (sorry, no time to test at the moment). Which version is to be expected in 1.12?

Ambrevar avatar Feb 19 '19 07:02 Ambrevar

Currently, 1.12-dev has ASDF 3.2.0. I remember being hesitant about including 3.3.1 for some reason I no longer remember.

xrme avatar Feb 19 '19 16:02 xrme

I've just tried updating ASDF to 3.3.3 by running git clone .../asdf in ~/.common-lisp. From a REPL:

(asdf:asdf-version)
"3.3.3"

But this does not fix the issue. Maybe the embedded ASDF has to be replaced? According to ASDF documentation, the above should be enough.

Ambrevar avatar Apr 18 '19 13:04 Ambrevar

Tried again on 1.12, the issue persists.

Ambrevar avatar May 20 '20 08:05 Ambrevar

Same here with (asdf:asdf-version) showing "3.3.5".

q3cpma avatar Jun 24 '23 10:06 q3cpma

Note that this is still an issue. Here's a compatibility chart:

Implementation ASDF Version Follows symlinks?
CCL 3.3.3 No
SBCL 3.3.1 Yes
ECL 3.1.8.8 Yes
ABCL 3.3.6 Yes
Clasp 3.3.6 No

fosskers avatar Aug 21 '23 01:08 fosskers

See also:

https://github.com/Clozure/ccl/blob/master/tools/asdf.lisp#L3227-L3228

fosskers avatar Aug 21 '23 10:08 fosskers