[Bug 689563] Re: packages: mysql/mysql.init, mysql/mysql.spec - allow spaces and tabs after ...

Elan Ruusamäe 689563 at bugs.launchpad.net
Mon Dec 13 17:57:34 CET 2010


  On 13.12.2010 17:09, wiget wrote:
> Author: wiget                        Date: Mon Dec 13 15:09:16 2010 GMT
> Module: packages                      Tag: HEAD
> ---- Log message:
> - allow spaces and tabs after variable name
...
> 	section == "mysqld" {
> -		if ($1 == "datadir") {
> +		if ($1 ~ /^datadir[ \t]*$/) {
>   			printf("MYSQL_DATA_DIR=%s;", $2);
> -		} else if ($1 == "user") {
> +		} else if ($1 ~ /^user[ \t]*$/) {
>   			printf("MYSQL_USER=%s;", $2);
> -		} else if ($1 == "pid-file") {
> +		} else if ($1 ~ /^pid-file[ \t]*$/) {
>   			printf("MYSQL_PIDFILE=%s;", $2);
> -		} else if ($1 == "socket") {
> +		} else if ($1 ~ /^socket[ \t]*$/) {
>   			printf("MYSQL_SOCKET=%s;", $2);
> -		} else if ($1 == "port") {
> +		} else if ($1 ~ /^port[ \t]*$/) {
>   			printf("MYSQL_PORT=%s;", $2);
> -		} else if ($1 == "bind-address") {
> +		} else if ($1 ~ /^bind-address[ \t]*$/) {
>   			printf("MYSQL_BIND_ADDRESS=%s;", $2);
> -		} else if ($1 == "skip-networking") {
> +		} else if ($1 ~ /^skip-networking[ \t]*$/) {
>   			printf("MYSQL_SKIP_NETWORKING=1;");
> -		} else if ($1 == "log-error") {
> +		} else if ($1 ~ /^log-error[ \t]*$/) {
>   			printf("MYSQL_LOG_ERROR=%s;", $2);
>   		}
>   
...pff, make temp var "key" there, which has the spaces/tabs stripped,
instead!

-- 
glen

-- 
You received this bug notification because you are subscribed to PLD
Linux.
https://bugs.launchpad.net/bugs/689563

Title:
  Mawk and mysql conflict

Status in PLD Linux Distribution:
  Fix Released

Bug description:
  [root at pld-laptop ~]# service mysql restart
Error: datadir specified in /var/lib/mysql/mysqld.conf should be
/var/lib/mysql/mysqldb/db MySQL can't be run.

[root at pld-laptop ~]# grep -v "^#" /etc/mysql/clusters.conf

mysqld.conf=/var/lib/mysql


[root at pld-laptop ~]# rpm -qv mysql
mysql-5.1.52-1.i686

[root at pld-laptop ~]# rpm -qv mawk
mawk-1.3.4-0.20100625.1.i686


mawk build on carme, but some time ago there were in th-foo (I don't
know, in which th-*), and --upgrade-dist didn't "downgrade" mawk.




More information about the pld-bugs mailing list