Bug #24902 Cannot install to /std_data
Submitted: 8 Dec 2006 9:41 Modified: 18 Dec 2006 18:32
Reporter: Ingo Strüwing Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S1 (Critical)
Version:5.0.32, 5.1.15 OS:Linux (Linux)
Assigned to: Daniel Fischer CPU Architecture:Any

[8 Dec 2006 9:41] Ingo Strüwing
Description:
It started after the Thu Dec 7 pushes to mysql-5.0 and mysql-5.1.

Tail of output:

/usr/bin/install -c -m 644 ./std_data/*.pem /home/mytest/install-5.1-main/mysql-test/std_data
/usr/bin/install -c -m 644 ./std_data/*.frm /home/mytest/install-5.1-main/mysql-test/std_data
/usr/bin/install -c -m 644 ./std_data/*.MY* /std_data
/usr/bin/install: target `/std_data' is not a directory
make[4]: *** [install-data-local] Error 1
make[4]: Leaving directory `/home2/mytest/mysql-5.1-main/mysql-test'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory `/home2/mytest/mysql-5.1-main/mysql-test'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home2/mytest/mysql-5.1-main/mysql-test'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home2/mytest/mysql-5.1-main'
make: *** [install] Error 2

This might have something to do with the Makfile:

mysql-test/Makefile:    $(INSTALL_DATA) $(srcdir)/std_data/*.pem $(DESTDIR)$(testdir)/std_data
mysql-test/Makefile:    $(INSTALL_DATA) $(srcdir)/std_data/*.frm $(DESTDIR)$(testdir)/std_data
mysql-test/Makefile:    $(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(distdir)/std_data
mysql-test/Makefile:    $(INSTALL_DATA) $(srcdir)/std_data/*.cnf $(DESTDIR)$(testdir)/std_data

As you can see the line for *.MY* has $(distdir) instead of $(DESTDIR)$(testdir). However, I don't know if this is intended.
This is in the target "install-data-local:". It may be a copy-n-paste error from the target "dist-hook:".

Note that I configure with a --prefix option.

I cannot build (make install) anymore -> S1, P1.

How to repeat:
bk clone bk-internal.mysql.com:/home/bk/mysql-5.1 'mysql-5.1-main'
cd 'mysql-5.1-main'
BUILD/compile-pentium-debug-max --with-debug=full --prefix="/home/mytest/install-5.1-main"
make install
[8 Dec 2006 15:33] Giuseppe Maxia
Just had the same problem. 
Quick workaround: I fixed it by changing ./mysql-test/Makefile.in

837c837
<       $(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(distdir)/std_data
---
>       $(INSTALL_DATA) $(srcdir)/std_data/*.MY* $(DESTDIR)$(testdir)/std_data

Giuseppe
[12 Dec 2006 12:39] Daniel Fischer
Patch: http://lists.mysql.com/commits/16820
[12 Dec 2006 12:55] 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:

  http://lists.mysql.com/commits/16829

ChangeSet@1.2346, 2006-12-12 13:55:40+01:00, df@kahlann.erinye.com +1 -0
  BUG#24902 in 5.0
[18 Dec 2006 18:32] Paul DuBois
No release affected; no changelog entry needed.
[19 Dec 2006 16:21] Jon Stephens
Bug#24941 appears to be related to this bug.