Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388673 - emerge --config =dev-db/mysql-5.1.59 fails to create initial database
Summary: emerge --config =dev-db/mysql-5.1.59 fails to create initial database
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-27 16:33 UTC by Uros
Modified: 2011-11-17 16:05 UTC (History)
5 users (show)

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 Uros 2011-10-27 16:33:36 UTC
After fresh mysql install, setting up initial database via emerge --config =dev-db/mysql-5.1.59 fails with the following error:
/var/tmp/portage/dev-db/mysql-5.1.59/temp/environment: line 3782: //usr/bin/mysql_install_db --basedir=/usr: No such file or directory

Problem seems to be in ${ROOT} variable @ mysql-v2.eclass as described at http://forums.gentoo.org/viewtopic-p-6845836.html#6846500

Reproducible: Always

Steps to Reproduce:
1. install dev-db/mysql-5.1.59
2. run emerge --config =dev-db/mysql-5.1.59
Actual Results:  
 * ERROR: dev-db/mysql-5.1.59 failed (config phase):
 *   Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND /var/tmp/portage/dev-db/mysql-5.1.59/temp/mysql_install_db.log
 *
 * Call stack:
 *     ebuild.sh, line   69:  Called pkg_config
 *   environment, line 4153:  Called mysql-v2_pkg_config
 *   environment, line 3785:  Called die
 * The specific snippet of code:
 *           die "Failed to run mysql_install_db. Please review /var/log/mysql/mysqld.err AND ${TMPDIR}/mysql_install_db.log";
 *
 * If you need support, post the output of 'emerge --info =dev-db/mysql-5.1.59',
 * the complete build log and the output of 'emerge -pqv =dev-db/mysql-5.1.59'.
 * This ebuild is from an overlay named 'gentoo': '/var/db/pkg/'
 * The complete build log is located at '/var/tmp/portage/dev-db/mysql-5.1.59/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-db/mysql-5.1.59/temp/environment'.
 * S: '/var/tmp/portage/dev-db/mysql-5.1.59/work/mysql-5.1.59'

/var/tmp/portage/dev-db/mysql-5.1.59/temp/mysql_install_db.log contents:

/var/tmp/portage/dev-db/mysql-5.1.59/temp/environment: line 3782: //usr/bin/mysql_install_db --basedir=/usr: No such file or directory

Expected Results:  
initial db structure with permissions would be setup

Portage 2.3-r7 (default/linux/amd64/2008.0/desktop, gcc-4.4.5, glibc-2.11.3-r0, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-2630QM_CPU_@_2.00GHz-with-gentoo-2.1.8
Timestamp of tree: Mon, 17 Oct 2011 16:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p10
dev-lang/python:          2.7.1-r2
dev-util/cmake:           2.8.6-r1
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1.8-r2
sys-apps/openrc:          0.8.3-r2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1-r1
sys-devel/binutils:       2.20.1
sys-devel/gcc:            4.4.5
sys-devel/gcc-config:     1.5
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.11.3
Repositories: gentoo
Installed sets:
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="git://github.com/funtoo/portage-mini-2011.git"
SYNC_USER="root"
USE="X a52 aac acl acpi alac alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr dvdread emboss encode exif fam firefox flac fortran gdbm gdu gif gpm hfs iconv idn ipv6 jpeg lame lcms libnotify mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nss nvidia ogg opengl openmp pam pango pcre pdf png policykit ppds pppd qt3 qt3support qt4 readline samba session sse sse2 ssl ssse3 startup-notification svg sysfs system-sqlite tcpd tiff truetype udev unicode usb userlocales vdpau vorbis wavpack x264 xcb xinerama xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NGINX_MODULES_HTTP="access auth_basic autoindex charset empty_gif fastcgi gzip limit_req limit_zone map memcached proxy referer rewrite ssi scgi" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Comment 1 Pandu E Poluan 2011-11-17 14:04:05 UTC
This also happens on dev-db/mysql-5.1.58-r1
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2011-11-17 16:05:02 UTC
Misplaced quotes where causing this, not the usage of $ROOT as mentioned in the forum.
Fixed.