Bug #20842 | client libraries installed in wrong location | ||
---|---|---|---|
Submitted: | 4 Jul 2006 4:49 | Modified: | 4 Jul 2006 10:01 |
Reporter: | Mark Johnson (Basic Quality Contributor) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Compiling | Severity: | S4 (Feature request) |
Version: | 5.0.22 | OS: | Linux (Linux 2.6.15/Slackware 10.2) |
Assigned to: | CPU Architecture: | Any |
[4 Jul 2006 4:49]
Mark Johnson
[4 Jul 2006 7:43]
Mark Johnson
Trying to find a workaround, I did: $./configure --prefix=/usr \ --libdir=/usr/lib \ --without-server $make $DESTDIR=`pwd`/tmp make install The libraries are still found in `pwd`/tmp/usr/lib/mysql. This is not the directory specified by --libdir.
[4 Jul 2006 8:10]
Valeriy Kravchuk
Sorry, but you explicitely asked to use $DESTDIR=`pwd`/tmp for "make install". Why do think this should be ignored and DEFAULT (compile time) setting should be used?
[4 Jul 2006 8:55]
Mark Johnson
I do not claim that DESTDIR should be ignored. "--libdir=/usr/lib" combined with DESTDIR means I should find the libraries in $DESTDIR/usr/lib. However, they are actually being installed to $DESTDIR/usr/lib/mysql. That is the problem. The mysql directory should not be there with this value of --libdir. Nor should it be there with the default value of --libdir.
[4 Jul 2006 9:13]
Valeriy Kravchuk
Sorry for misuderstanding you. Putting libraries in mysql subdirectory of libdir is not a bug, but intended behaviour. Please, read the Makefile: pkgdatadir = $(datadir)/mysql pkglibdir = $(libdir)/mysql pkgincludedir = $(includedir)/mysql I think, it is reasonable. You can use ln -s to make links to the libraries in whatever directory you want.
[4 Jul 2006 9:40]
Mark Johnson
I should not have to read the Makefile to see that this is the intended behaviour. Therefore, I request two things: 1. that "./configure --help" be updated to show that this is the intended behaviour. 2. that when I explicitly specify --libdir, it should override this default location, and put the libraries where requested.
[4 Jul 2006 10:01]
Valeriy Kravchuk
I agree that either ./configure --help should explicitely state that mysql subdirectory is created for libraries in --libdir, or there should be some way to set explicit location for the libraries. So, this is a reasonable feature request, for me.