libcfg+ - Viewing Bug Advanced Details [ Go Back ]
315 building stuff major always 2005-03-23 11:27 2005-03-24 00:18
SvdB AMD Athlon 600  
rajo Linux  
high 2.6.11  
resolved 0.6.2 (stable)  
fixed  
none  
none  
Using --prefix trashes / dir.
If you run configure with --prefix, then for some reason it immediately tries to create the target directory, which ofcourse it shouldn't do, as one doesn't run configure as root, while you may still want to install in a location which only root can write to.

So if you specify a directory where the current user can't write, the directory will not be created. This is not detected, and the line
prefix="`cd $prefix && pwd`"
will evaluate to
prefix=""

and you'll end up with a root dir full of junk when you 'make install' as root.
$ ./configure --prefix=/opt/libcfg+
$ make
# make install

Bug Notes
SvdB   
2005-03-23 11:33   
Oops. Severity should have been at least "major". It seems that it's too late for me to change it now.
rajo   
2005-03-23 21:42   
Severity/priority changed to major/high.
rajo   
2005-03-24 00:18   
Fixed in CVS. Please, check if it is correct. Thanks for bug report.