Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#19225 - [mysql] missing "/" in mysql.install

Attached to Project: Arch Linux
Opened by Sebastian Köhler (kart0ffelsack) - Friday, 23 April 2010, 19:48 GMT
Last edited by Andrea Scarpino (BaSh) - Friday, 23 April 2010, 22:18 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
The post_install function fails with this output:

Prüfe Paketintegrität...
(2/2) Prüfe auf Dateikonflikte [####################################################################################################] 100%
(1/2) Installiere mysql-clients [####################################################################################################] 100%
(2/2) Installiere mysql [####################################################################################################] 100%
Installing MySQL system tables...
100423 21:28:58 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
100423 21:28:58 [Warning] Can't create test file /usr/var/lib/mysql/ps2.lower-test
100423 21:28:58 [Warning] Can't create test file /usr/var/lib/mysql/ps2.lower-test
/usr/sbin/mysqld: Can't change dir to '/usr/var/lib/mysql/' (Errcode: 2)
100423 21:28:58 [ERROR] Aborting

100423 21:28:58 [Note] /usr/sbin/mysqld: Shutdown complete


In mysql.install the line:
"usr/bin/mysql_install_db --datadir=var/lib/mysql --user=mysql"

should be changed to:
"/usr/bin/mysql_install_db --datadir=/var/lib/mysql --user=mysql"

Additional info:
Packageversion: mysql 5.1.46-1

Steps to reproduce:
1. Install mysql
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Friday, 23 April 2010, 22:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  5.1.46-2
Comment by Ionut Biru (wonder) - Friday, 23 April 2010, 20:43 GMT
the first / that is missing is not a bug. the one from --datadir i believe is a bug.
Comment by Jan de Groot (JGC) - Friday, 23 April 2010, 21:38 GMT
/usr/var/lib? looks like someone forget to set a localstatedir option in configure.
Comment by Andrea Scarpino (BaSh) - Friday, 23 April 2010, 21:51 GMT
No Jan, it's set (see PKGBUILD).
--datadir needs the slash.
Anyway pass --datadir to mysql_install_db is not needed, so I removed that line in 5.1.46-2.

-2 is in [testing], please test it and report feedback.

Loading...