From: Joerg Bruehe Date: December 12 2012 9:52am Subject: bzr push into mysql-trunk branch (joerg.bruehe:5219 to 5221) List-Archive: http://lists.mysql.com/commits/145495 Message-Id: <20121212095226.24689.57569.5221@trift-6core.fambruehe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 5221 Joerg Bruehe 2012-12-12 [merge] Upmerge a merge - empty. 5220 Joerg Bruehe 2012-12-12 [merge] Merge an upmerge modified: packaging/rpm-uln/mysql.spec.sh scripts/mysql_install_db.pl.in support-files/mysql.spec.sh 5219 sayantan.dutta@stripped 2012-12-12 [merge] upmerge 14737171 5.6=>trunk modified: mysql-test/mysql-test-run.pl === modified file 'packaging/rpm-uln/mysql.spec.sh' --- a/packaging/rpm-uln/mysql.spec.sh 2012-12-11 09:53:43 +0000 +++ b/packaging/rpm-uln/mysql.spec.sh 2012-12-12 09:44:20 +0000 @@ -150,9 +150,9 @@ %endif %endif %else - %define generic_kernel %(uname -r | cut -d. -f1-2) - %define distro_description Generic Linux (kernel %{generic_kernel}) - %define distro_releasetag linux%{generic_kernel} + %define glibc_version %(/lib/libc.so.6 | grep stable | cut -d, -f1 | cut -c38-) + %define distro_description Generic Linux (glibc %{glibc_version}) + %define distro_releasetag linux_glibc%{glibc_version} %define distro_buildreq gcc-c++ gperf ncurses-devel perl readline-devel time zlib-devel %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd %endif === modified file 'scripts/mysql_install_db.pl.in' --- a/scripts/mysql_install_db.pl.in 2012-11-21 12:44:48 +0000 +++ b/scripts/mysql_install_db.pl.in 2012-12-12 09:41:58 +0000 @@ -93,15 +93,20 @@ EOF2 uses the compiled binaries and support files within the source tree, useful for if you don't want to install MySQL yet and just want to create the system tables. +EOF3 + if ( $^O !~ m/^(MSWin32|cygwin)$/ ) { + print <{user}; +my @pwnam; +if ($opt_user) +{ + if ( $^O =~ m/^(MSWin32|cygwin)$/ ) + { + warning($opt, "The --user option is not supported on Windows, ignoring"); + $opt_user= undef; + } + else + { + @pwnam= getpwnam($opt_user); + } +} + foreach my $dir ( $opt->{ldata}, "$opt->{ldata}/mysql", "$opt->{ldata}/test" ) { mkdir($dir, 0700) unless -d $dir; - chown($opt->{user}, $dir) if -w "/" and !$opt->{user}; + if ($opt_user and -w "/") + { + chown($pwnam[2], $pwnam[3], $dir) + or error($opt, "Could not chown directory $dir"); + } } push(@args, "--user=$opt->{user}") if $opt->{user}; === modified file 'support-files/mysql.spec.sh' --- a/support-files/mysql.spec.sh 2012-11-21 15:32:54 +0000 +++ b/support-files/mysql.spec.sh 2012-12-12 09:41:58 +0000 @@ -199,9 +199,9 @@ %endif %endif %else - %define generic_kernel %(uname -r | cut -d. -f1-2) - %define distro_description Generic Linux (kernel %{generic_kernel}) - %define distro_releasetag linux%{generic_kernel} + %define glibc_version %(/lib/libc.so.6 | grep stable | cut -d, -f1 | cut -c38-) + %define distro_description Generic Linux (glibc %{glibc_version}) + %define distro_releasetag linux_glibc%{glibc_version} %define distro_buildreq gcc-c++ gperf ncurses-devel perl time zlib-devel %define distro_requires coreutils grep procps /sbin/chkconfig /usr/sbin/useradd /usr/sbin/groupadd %endif No bundle (reason: useless for push emails).