Re: Automake's invokation of libtool doesnt handle $prefix with spaces in directory names

2007-10-08 Thread Noah Slater
> Even if this particular failure may be rather simple to fix, it will
> lead to followup issues with packages that use the installed libraries.

Okay, thank you.




Re: Automake's invokation of libtool doesnt handle $prefix with spaces in directory names

2007-10-08 Thread Ralf Wildenhues
Hello Noah,

* Noah Slater wrote on Sat, Oct 06, 2007 at 07:04:37PM CEST:
> If I run configure like so:
> 
> ./configure --prefix="/tmp/foo bar"
> 
> Everything runs fine, but when I "make install" I get the following
> error output:

If I may quote from automake/TODO:
| * quoting bugs
|   - how to install file with a space in its name?
|   [ don't bother with this -- make is just too losing ]

[...]
>  /bin/bash ../../libtool --mode=install /usr/bin/install -c
> 'couch_erl_driver.la' '/tmp/couchdb test/lib/couch_erl_driver.la'
> /usr/bin/install -c .libs/couch_erl_driver.so /tmp/couchdb
> test/lib/couch_erl_driver.so
> /usr/bin/install: target `test/lib/couch_erl_driver.so' is not a directory
> make[3]: *** [install-libLTLIBRARIES] Error 1
> 
> Notice how the "/bin/bash ../../libtool" command properly quotes the
> path but the resulting command does not have a quoted path.
> 
> Am I doing anything wrong or is this a bug with automake/libtool?

Oh well, in this case it's a Libtool bug rather than an Automake/make
one.  Still, the rule applies: don't use white space in file names.
It's too much work and very ugly to fix this throughout Libtool as well.
Even if this particular failure may be rather simple to fix, it will
lead to followup issues with packages that use the installed libraries.

Sorry,
Ralf




Automake's invokation of libtool doesnt handle $prefix with spaces in directory names

2007-10-06 Thread Noah Slater
Hello,

Using the following tools:

automake (GNU automake) 1.10
autoconf (GNU Autoconf) 2.61

If I run configure like so:

./configure --prefix="/tmp/foo bar"

Everything runs fine, but when I "make install" I get the following
error output:

make[3]: Entering directory
`/home/nslater/repository/mirror/couchdb/trunk/src/CouchDB'
test -z "/tmp/couchdb test/lib" || /bin/mkdir -p "/tmp/couchdb test/lib"
 /bin/bash ../../libtool --mode=install /usr/bin/install -c
'couch_erl_driver.la' '/tmp/couchdb test/lib/couch_erl_driver.la'
/usr/bin/install -c .libs/couch_erl_driver.so /tmp/couchdb
test/lib/couch_erl_driver.so
/usr/bin/install: target `test/lib/couch_erl_driver.so' is not a directory
make[3]: *** [install-libLTLIBRARIES] Error 1

Notice how the "/bin/bash ../../libtool" command properly quotes the
path but the resulting command does not have a quoted path.

Am I doing anything wrong or is this a bug with automake/libtool?

Thanks,

Noah