libcfg+ - Viewing Bug Advanced Details [ Go Back ]
501 building stuff minor always 2008-01-06 01:55 2008-01-06 01:55
kh x86  
NetBSD  
normal 3.1  
new 0.6.2 (stable)  
open  
none  
none  
configure script overrides value for --prefix even if it should not
If I run

./configure --prefix=/var/tmp/cfgsymlink

and /var/tmp/cfgsymlink is a symlink to /var/tmp/cfgtest/,
the resulting prefix variable in config.status is not
"/var/tmp/cfgsymlink" (as specified by the user who
probably wants it that way) but "/var/tmp/cfgtest".

The reason for this behaviour is an incomplete fix for
relative path prefixes in configure.in where every prefix
is changed with

prefix="`cd $prefix && pwd`"

instead of relative prefixes only.
- create a directory /var/tmp/cfgtest
- create a symlink /var/tmp/cfgsymlink pointing to
/var/tmp/cfgtest

- run
./configure --prefix=/var/tmp/cfgsymlink

- examine config.status and wonder why @prefix@ does not
have the value "/var/tmp/cfgsymlink".
Apply the appended patch where prefix is only changed if
the path is relative, ie it starts with a dot.

There are no notes attached to this bug.