[Ecls-list] Problem with pathnames in ASDF in ECL 10.7.1

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sat Jul 17 17:05:51 UTC 2010


On Wed, Jul 7, 2010 at 1:16 AM, Pascal J. Bourguignon <pjb at informatimago.com
> wrote:

> When loading :alexandria with asdf in ecl 10.7.1, there's a mix up
> with pathnames.


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.

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.

I would report it in the ASDF mailing list or at their launchpad account.

Juanjo

> (si::system "cat foo.lsp")
(load "~/devel/ecl/contrib/asdf/asdf")

(setf (logical-pathname-translations "JUANJO")
      '(("JUANJO:ASDF-SYSTEMS;**;*.*.*" "~/tmp/asdf/**/*.*")))

(format t "~A~% ->~A~%  -> ~A"
        #P"JUANJO:ASDF-SYSTEMS;ALEXANDRIA.ASD"
        (translate-logical-pathname #P"JUANJO:ASDF-SYSTEMS;ALEXANDRIA.ASD")
        (probe-file #P"JUANJO:ASDF-SYSTEMS;ALEXANDRIA.ASD"))

(setf asdf:*central-registry*
      '("JUANJO:ASDF-SYSTEMS;"))

(require :alexandria)

0
> (load "foo")

;;; Loading #P"/Users/jjgarcia/build/ecl/foo.lsp"
;;; Loading #P"/Users/jjgarcia/devel/ecl/contrib/asdf/asdf.lisp"
;;; Loading #P"/Users/jjgarcia/lib/ecl-10.7.1/cmp.fas"
JUANJO:ASDF-SYSTEMS;ALEXANDRIA.ASD
 ->/Users/jjgarcia/tmp/asdf/alexandria.asd
  -> /Users/jjgarcia/src/lisp/libcl/alexandria/alexandria.asd
;;; Loading "/Users/jjgarcia/tmp/asdf/alexandria.asd"
ASDF could not load alexandria because Filesystem error with pathname
#P"JUANJO:ASDF-SYSTEMS;PACKAGE.LISP".



-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100717/c9b7fda8/attachment.html>


More information about the ecl-devel mailing list