Re: [port-template] portable PROBE-DIRECTORY for SBCL

Martin Simmons <[email protected]> Thu, 30 Jun 2011 16:11:38 +0100
Newsgroups gmane.lisp.cl-http
Message-ID <[email protected]>
>>>>> On Thu, 30 Jun 2011 21:40:17 +0800, Chun Tian (binghe) said:
> 
> Current definition of PROBE-DIRECTORY from port-template [1] didn't work in
> SBCL. When CL-HTTP started, it need to create #p"HTTP:PROXY-CACHE;" and
> #p"HTTP:LOG;" but actually these directories won't be created, and CL-HTTP
> won't start:
> 
> The solution is to replace PROBE-DIRECTORY with a more portable version from
> CL-FAD. I see related source code [1] already contains some code from
> CL-FAD, but it need more. That's what I did in this patch, and it works.

Your definition returns nil for pathnames with name or type components
(e.g. #P"/tmp/foo.lisp") which will break functions like
HTTP:LOAD-FILES-SAFELY.  I think you need a portable equivalent of
LISPWORKS:PATHNAME-LOCATION as well.

__Martin

_______________________________________________
WWW-CL mailing list
[email protected]
https://lists.csail.mit.edu/mailman/listinfo/www-cl