<div class="gmail_quote">On Wed, Jul 7, 2010 at 1:16 AM, Pascal J. Bourguignon <span dir="ltr"><<a href="mailto:pjb@informatimago.com">pjb@informatimago.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
When loading :alexandria with asdf in ecl 10.7.1, there's a mix up<br>
with pathnames.</blockquote><div><br></div><div>The example below shows clearly what is happening. ECL's TRUENAME, PROBE-FILE and TRANSLATE-LOGICAL-PATHNAME seem to be working fine but ASDF refuses to follow the symlinks when the input is a logical pathname. If your central registry is a physical pathname, the problem disappears.</div>
<div><br></div><div>I believe there was a change in ASDF's policy regarding logical pathnames some time ago. More or less, they work with these pathnames untranslated, without further guessing where files may go. This, and the fact that *central-registry* is deprecated may be the source of all your problems.</div>
<div><br></div><div>I would report it in the ASDF mailing list or at their launchpad account.</div><div><br></div><div>Juanjo</div><div><br></div><div>> (si::system "cat foo.lsp")</div><div>(load "~/devel/ecl/contrib/asdf/asdf")</div>
<div><br></div><div>(setf (logical-pathname-translations "JUANJO")</div><div> '(("JUANJO:ASDF-SYSTEMS;**;*.*.*" "~/tmp/asdf/**/*.*")))</div><div><br></div><div>(format t "~A~% ->~A~% -> ~A"</div>
<div> #P"JUANJO:ASDF-SYSTEMS;ALEXANDRIA.ASD"</div><div> (translate-logical-pathname #P"JUANJO:ASDF-SYSTEMS;ALEXANDRIA.ASD")</div><div> (probe-file #P"JUANJO:ASDF-SYSTEMS;ALEXANDRIA.ASD"))</div>
<div><br></div><div>(setf asdf:*central-registry*</div><div> '("JUANJO:ASDF-SYSTEMS;"))</div><div><br></div><div>(require :alexandria)</div><div><br></div><div>0</div><div>> (load "foo")</div>
<div><br></div><div>;;; Loading #P"/Users/jjgarcia/build/ecl/foo.lsp"</div><div>;;; Loading #P"/Users/jjgarcia/devel/ecl/contrib/asdf/asdf.lisp"</div><div>;;; Loading #P"/Users/jjgarcia/lib/ecl-10.7.1/cmp.fas"</div>
<div>JUANJO:ASDF-SYSTEMS;ALEXANDRIA.ASD</div><div> ->/Users/jjgarcia/tmp/asdf/alexandria.asd</div><div> -> /Users/jjgarcia/src/lisp/libcl/alexandria/alexandria.asd</div><div>;;; Loading "/Users/jjgarcia/tmp/asdf/alexandria.asd"</div>
<div>ASDF could not load alexandria because Filesystem error with pathname #P"JUANJO:ASDF-SYSTEMS;PACKAGE.LISP".</div><div> </div></div><br clear="all"><br>-- <br>Instituto de Física Fundamental, CSIC<br>c/ Serrano, 113b, Madrid 28006 (Spain) <br>
<a href="http://juanjose.garciaripoll.googlepages.com">http://juanjose.garciaripoll.googlepages.com</a><br>