Bug #37024 Wrong location of messagefiles
Submitted: 28 May 2008 3:27 Modified: 18 Jun 2008 6:51
Reporter: Alexey Stroganov
Status: Closed
Category:Server: Packaging Severity:S2 (Serious)
Version:5.1.25-release OS:Linux
Assigned to: Timothy Smith Target Version:

[28 May 2008 3:27] Alexey Stroganov
Description:
Found out that for packages below location of message files is wrong(share/mysql instead
of share/ ) that leads to problem with mysql_install_db and starting server itself. In
5.1.24 all is ok. For the same issue that was fixed some time ago see BUG#30678.

packages:
mysql-5.1.25-rc-linux-i686-glibc23.tar.gz
mysql-5.1.25-rc-linux-x86_64-glibc23.tar.gz

output:
/data0/ranger/mysql-5.1.25-rc-linux-i686-glibc23> ./scripts/mysql_install_db --basedir=.
--datadir=data/
Installing MySQL system tables...
080528  3:23:29 [ERROR] Can't find messagefile
'/data0/ranger/mysql-5.1.25-rc-linux-i686-glibc23/share/english/errmsg.sys'
080528  3:23:29 [ERROR] Aborting

080528  3:23:29 [Note]

Installation of system tables failed!  Examine the logs in
data/ for more information.

workaround:
$ cd share
$ ln -s mysql/english english

How to repeat:
- unpack mysql-5.1.25-rc-linux-i686-glibc23.tar.gz package 

 cd  mysql-5.1.25-rc-linux-i686-glibc23
 ./scripts/mysql_install_db --basedir=. --datadir=data/

or just try to start server
[28 May 2008 6:04] Timothy Smith
A bad merge caused the 5.0 version of make_binary_distribution.sh to be copied over the
5.1 version.  This results in several symptoms in the packaging - files either missing or
installed into the wrong locations.

The fix should be to revert make_binary_distribution.sh to the version before the bad
merge.
[28 May 2008 6:17] 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/47114

ChangeSet@1.2653, 2008-05-28 06:17:04+02:00, tsmith@mysql.com +1 -0
  Bug #37024: Wrong location of messagefiles
  
  make_binary_distribution.sh got clobbered by the 5.0 version during a merge.
  This caused a few packaging problems, including message files put in the wrong
  place and some missing files.  Fix is just to revert back to the 5.1 version
  from before the merge.
[28 May 2008 11:04] Daniel Fischer
Patch was approved in discussion.
[28 Jul 2008 18:51] Bugs System
Pushed into 5.1.26-rc  (revid:joerg@mysql.com-20080619153300-tv151an4nrq1rnr2) (version
source revid:joerg@mysql.com-20080619153300-tv151an4nrq1rnr2) (pib:3)
[13 Dec 2008 0:30] Bugs System
Pushed into 6.0.6-alpha 
(revid:sp1r-tsmith/mysqldev@mysql.com/production.mysql.com-20080528041704-19102) (version
source revid:jonas@mysql.com-20080808094047-4e1yiarqa2t3opg3) (pib:5)