[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windo
From: |
Waldek Hebisch |
Subject: |
[Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows |
Date: |
Wed, 20 Jun 2007 16:40:33 +0200 (CEST) |
Bill Page wrote:
> On 6/19/07, Waldek Hebisch wrote:
> > Than I would look what '(directory "*.NRLIB/index.KAF")' in algebra
> > directory gives
> > -- it should produce list of pathnames to index.KAF files.
> > The exact result vary from Lisp to Lisp, but the form above was
> > the only one which gave what we want in all Lisps...
> >
> > You may also try '(directory "*.NRLIB\\index.KAF")', to check
> > for possible bug handling slashes.
> >
>
> All of these functions fail!
>
> (1) -> )lisp (directory "*.NRLIB/index.KAF")
>
> Value = NIL
>
> (1) -> )lisp (directory "*.NRLIB\index.KAF")
>
> Value = NIL
> (1) -> )lisp (directory "*.NRLIB\\index.KAF")
>
> Value = NIL
>
> But the following works:
>
> (1) -> )sys ls *.NRLIB/index.KAF
> A1AGG-.NRLIB/index.KAF
> A1AGG.NRLIB/index.KAF
> ...
>
> and this works:
>
> (1) -> )lisp (directory "*.NRLIB")
>
> Value = (#p"A1AGG-.NRLIB" #p"A1AGG.NRLIB" #p"ABELGRP-.NRLIB"
> #p"ABELGRP.NRLIB" #p"ABELMON-.NRLIB" #p"ABELMON.NRLIB"
> #p"ABELSG-.NRLIB" #p"ABELSG.NRLIB" #p"ACF-.NRLIB"
> ...
>
> So I guess we can blame some limitation in the wildcard handling in
> paths on Windows. Do you think that it is not safe just to use '
> (directory "*.NRLIB")' ? I will change 'make-databases' to omit the
> '/index.KAF' part and try the build again.
>
It looks that 'directory' implementation in GCL is rather messy, so
I will not try to fix it. However, you can try the following (which
works like the old code):
--- wh-sandbox.bb3/src/interp/daase.lisp.pamphlet 2007-06-20
15:59:32.000000000 +0200
+++ wh-sandbox/src/interp/daase.lisp.pamphlet 2007-06-20 16:32:24.000000000
+0200
@@ -900,7 +900,19 @@
(let (nrlibdirs asos skipasos aos)
(chdir (string dirarg))
+ #-:GCL
(setq nrlibdirs (directory "*.NRLIB/index.KAF"))
+
+ #| directory in GCL (at least gcl-2.6.8) on Windows is buggy,
+ it can not handle pathnames having wildcards in the middle,
+ so we need a workaround. |#
+ #+:GCL
+ (setq nrlibdirs
+ (mapcar #'(lambda (f)
+ (concatenate 'string (namestring f)
+ "/index.KAF"))
+ (directory "*.NRLIB")))
+
(setq asys (directory "*.asy"))
(setq asos (directory "*.ao"))
--
Waldek Hebisch
address@hidden
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, (continued)
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Bill Page, 2007/06/18
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Bill Page, 2007/06/18
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Waldek Hebisch, 2007/06/18
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Bill Page, 2007/06/19
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Waldek Hebisch, 2007/06/19
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Bill Page, 2007/06/19
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Waldek Hebisch, 2007/06/19
- [Axiom-developer] gcl 2.7.0 and "ready", Camm Maguire, 2007/06/19
- Re: [Axiom-developer] gcl 2.7.0 and "ready", Stephen Wilson, 2007/06/19
- Re: [Axiom-developer] gcl 2.7.0 and "ready", Camm Maguire, 2007/06/20
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows,
Waldek Hebisch <=
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Bill Page, 2007/06/22
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Waldek Hebisch, 2007/06/22
- [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Bill Page, 2007/06/22
- Re: [Axiom-developer] Re: problem compiling wh-sandbox revision 571 on Windows, Ralf Hemmecke, 2007/06/23
- [Axiom-developer] Version numbers, Martin Rubey, 2007/06/23
- [Axiom-developer] Re: Version numbers, Bill Page, 2007/06/23
- [Axiom-developer] Re: Version numbers, Bill Page, 2007/06/25
- [Axiom-developer] Re: Version numbers, Gabriel Dos Reis, 2007/06/25
- [Axiom-developer] Re: Version numbers, Bill Page, 2007/06/25
- [Axiom-developer] Re: Version numbers, Ralf Hemmecke, 2007/06/25