Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105668 - mysql-4.1.14.ebuild config is unable to set rootpassword
Summary: mysql-4.1.14.ebuild config is unable to set rootpassword
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 03:00 UTC by Robert Förster
Modified: 2005-09-12 15:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Förster 2005-09-12 03:00:24 UTC
pressure ~ # ebuild /usr/portage/dev-db/mysql/mysql-4.1.14.ebuild config
 * MySQL DATADIR is /var/lib/mysql
 * Creating the mysql database and setting proper
 * permissions on it...
 * Insert a password for the mysql 'root' user
 * Avoid ["'\_%] characters in the password
    >
 * Check the password
    >

!!! ERROR: dev-db/mysql-4.1.14 failed.
!!! Function pkg_config, Line 483, Exitcode 0
!!! Passwords are not the same
!!! If you need support, post the topmost build error, NOT this status message.

(i used test as test passwored now, i'm 100% sure i didn't mistyped it ;-) )

Reproducible: Always
Steps to Reproduce:
1.ebuild /usr/portage/dev-db/mysql/mysql-4.1.14.ebuild config
2.enter a password
3.

Actual Results:  
the ebuild isn't able to set the mysql root password

Expected Results:  
the password should be settable via the ebuild

Portage 2.0.51.22-r2 (hardened/x86/2.6, gcc-3.3.6, glibc-2.3.5-r1, 2.6.12-ck3-r1
i686)
=================================================================
System uname: 2.6.12-ck3-r1 i686 Intel(R) Celeron(TM) CPU                1200MHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage//packages/x86/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="apache2 berkdb chroot crypt curl dlloader doc gd gif gpm hardened icc
imagemagick imap innodb jpeg ldap libwww maildir memlimit mmx mysql ncurses nls
pam pdflib perl pic png python readline sasl session sse ssl tcpd threads tiff
userlocales vda x86 xml xml2 zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Friedrich Oslage (RETIRED) gentoo-dev 2005-09-12 07:42:23 UTC
Hello,

line 482 contains: if [[  pwd1 != pwd2 ]] ; then
this should be replaced with: if [[  "x$pwd1" != "x$pwd2" ]] ; then

Kind regards
Comment 2 Francesco R. (RETIRED) gentoo-dev 2005-09-12 07:54:35 UTC
Yes, it's a transcription error, was broken in 
mysql-4.1.13-r1.ebuild
mysql-4.1.14.ebuild
mysql-5.0.12_beta.ebuild
, fixed now.
Please wait few hours that cvs propagate.
Comment 3 Francesco R. (RETIRED) gentoo-dev 2005-09-12 15:21:02 UTC
Additional note, you will need to use 
ebuild /usr/portage/dev-db/mysql/mysql-<version>.ebuild config 
instead of 
ebuild /var/db .... config
since we have not the magic to change it.