Bug #20219 make bin-dist produces unportable for testing tarball
Submitted: 2 Jun 2006 9:17 Modified: 30 Aug 2006 20:00
Reporter: Andrei Elkin Email Updates:
Status: Closed Impact on me:
Category:MySQL Server: Tests Severity:S3 (Non-critical)
Version:5.1.12 OS:Linux (Linux)
Assigned to: Magnus Blåudd CPU Architecture:Any

[2 Jun 2006 9:17] Andrei Elkin
This is also a packaging/installing issue.

Trying to execute make test in parallel I made a binary tarball after BUILD/compile-pentium-debug-max
on a box where libmysqlclient.so.15 is installed.
The tarball was expanded in an env with the library of 14th version.

In the end I could not run any test in that env.

Notice further that playing around with LD_LIBRARY_PATH helps with ./mysql-test-run but never
with perl's version.

[interception from #rep]

knielsen andrei: yes perl version is wrong. It sets only LD_LIBRARY_PATH=$glob_basedir/lib. But it also needs libmysql/.libs/ and others

How to repeat:
on site with libmysclient.so.15
make bin-dist

on site with libmysqlclient.so.14

tar xzvf mysql-x.y.z-linux.tar.gz
cd mysql-x.y.z-linux/mysql-test

Suggested fix:
[16 Aug 2006 13:25] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:


ChangeSet@1.2255, 2006-08-16 15:25:30+02:00, msvensson@shellback.(none) +1 -0
  Bug#20219  make bin-dist produces unportable for testing tarball
   - Setup LD_LIBRARY_PATH to favor local libs
[17 Aug 2006 16:23] Chad MILLER
Available in 5.0.25 and soon in 5.1.12-beta.
[21 Aug 2006 12:04] Magnus Blåudd
Fixed mysql-test-run.pl so that ndb test are run. Still in mysql-5.1-maint
[30 Aug 2006 20:00] Paul DuBois
No changelog entry needed.