A long time ago I reported that I couldn't get CLISP to build on
OpenBSD. I've now figured out the problem.
The basic problem is that the "sh" builtin command "cd" sometimes
emits output, e.g.
$ cd /tmp
$ cd .
$ cd ''
which plays havoc with the idiom
canonical_filename=`cd $foo; pwd`
used by the CLISP build scripts to find canonical filenames. (The
basic problem was obscured by the way that the first failure caused by
the basic problem ends up interacting with some rather bizarre "sh"
I've attached a diff against the clisp-2.27 sources to redirect output
from "cd" to "/dev/null". It let CLISP build and pass its tests on my
OpenBSD 2.9 system. I don't guarantee that I didn't make some obscure
mistake in one of the many places where the backquote/cd/pwd idiom is
used, and it'd might be better to find some way to wrap up that idiom
in a subroutine anyway. But at least it shows the way to go for CLISP
maintainers who don't happen to have OpenBSD machines handy for
William Harold Newman <william.newman@...>
"Furious activity is no substitute for understanding." -- H. H. Williams
PGP key fingerprint 85 CE 1C BA 79 8D 51 8C B9 25 FB EE E0 C3 E5 7C
* William Harold Newman <william.newman@...>:
> canonical_filename=`cd $foo; pwd`
Um. Why not just do
cd $foo # With a &>/dev/null here, if it's really important.
Johannes Grødem <johs@...>
From: Sam Steingold <sds@gn...> - 2001-11-28 22:59:16
> * In message <20011128154319.B30912@...>
> * On the subject of "[clisp-list] building CLISP on OpenBSD"
> * Sent on Wed, 28 Nov 2001 15:43:19 -0600
> * Honorable William Harold Newman <william.newman@...> writes:
> A long time ago I reported that I couldn't get CLISP to build on
> OpenBSD. I've now figured out the problem.
> The basic problem is that the "sh" builtin command "cd" sometimes
> emits output,
I committed a patch based on your suggestions.
please get the latest CVS sources and try building CLISP!
Thanks for your help - I hope you will get CLISP to bootstrap SBCL,
Sam Steingold (http://www.podval.org/~sds)
Keep Jerusalem united! <http://www.onejerusalem.org/Petition.asp>
Read, think and remember! <http://www.iris.org.il> <http://www.memri.org/>