On Wed, Jul 7, 2010 at 1:16 AM, Pascal J. Bourguignon <[email protected]
> 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
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ecls-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecls-list