Re: [xml] 2.2.5 installation glitch on SunOS 5.6

Date view Thread view Subject view Author view

From: Albert Chin-A-Young (china@thewrittenword.com)
Date: Mon Oct 16 2000 - 16:21:39 EDT


On Mon, Oct 16, 2000 at 10:07:25PM +0200, Daniel Veillard wrote:
> On Mon, Oct 16, 2000 at 02:56:02PM -0500, Kenneth Pronovici wrote:
> >
> > I've found and "fixed" a minor installation glitch for libxml 2.2.5 under
> > SunOS 5.6. It appears that there are two versions of the test utility
> > under SunOS, and one of them is broken. The /usr/bin/test version of
> > the utility recognizes the -e option, but the /bin/test version does
> > not. It will be pot-luck which one any given user has in their path
> > first - and if the broken version is found, the configure script will
> > fail.

On Solaris, /bin/test and /usr/bin/test are equivalent (because /bin
is a symlink to /usr/bin). What you found is that running 'test' under
/bin/sh gets you the shell built-in test command, not /bin/test (easy
test is to move /bin/test out of the way and run the test command
under /bin/sh). Most shells have their own version of the test command
built-in.

> > What I did to make this work was to change the configure script to use
> > -r rather than -e (the change is just the difference between "exists"
> > and "exists and is readable"). Hopefully, this will be portable to
> > other systems with a broken test utility as well...as long as Daniel
> > thinks it's safe.
> >
> > Below my signature is a patch for configure.in. I think I've provided
> > the right kind of context diff, but let me know if there are problems
> > with it (it worked for me when I tested it).
>
> We actually went with Albert Chin-A-Young <china@thewrittenword.com>
> through a long series of attemps to find a portable solution to this
> problem ... And ended up with the enclosed patch (admitedly a bit more
> complex).
>
> Daniel

[ patch removed]

-- 
albert chin (china@thewrittenword.com)
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Oct 16 2000 - 17:43:21 EDT