Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489998 - dev-db/mariadb - emerge --config complains about infinite loop when loading zoneinfo tables
Summary: dev-db/mariadb - emerge --config complains about infinite loop when loading z...
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
Depends on:
Blocks: 486532
  Show dependency tree
Reported: 2013-10-31 19:43 UTC by James Dominy
Modified: 2014-04-25 00:20 UTC (History)
2 users (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description James Dominy 2013-10-31 19:43:53 UTC
I have a fresh amd64 install. I just installed mariadb and ran emerge --config. While it succeeded, it issued an error line warning about duplicate keys when trying to load zoneinfo tables. See below for the whole output. Also, I'm guessing the zoneinfo tables aren't loaded correctly

Reproducible: Always

Steps to Reproduce:
1. emerge dev-db/mariadb
2. emerge --config dev-db/mariadb
Actual Results:  
$ emerge --config dev-db/mariadb

Configuring pkg...

 * Please provide a password for the mysql 'root' user now, in the
 * MYSQL_ROOT_PASSWORD env var or through the /root/.my.cnf file.
 * Avoid ["'\_%] characters in the password
 * Retype the password
 * Command: '/usr/share/mysql/scripts/mysql_install_db' '--basedir=/usr' --log-warnings=0 --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --user=mysql
 * Creating the mysql database and setting proper
 * permissions on it ...
 * Starting mysqld ...
 * Command //usr/sbin/mysqld 		--log-warnings=0 --loose-skip-grant-tables --loose-skip-host-cache --loose-skip-name-resolve --loose-skip-networking --loose-skip-slave-start --loose-skip-ssl --loose-skip-log-bin --loose-skip-relay-log --loose-skip-slow-query-log --loose-skip-external-locking --loose-skip-log-slave-updates --user=mysql 		--user=mysql 		--log-warnings=0 		--basedir=//usr 		--datadir=///var/lib/mysql 		--max_allowed_packet=8M 		--net_buffer_length=16K 		--default-storage-engine=MyISAM 		--socket=//var/run/mysqld/mysqld2169.sock 		--pid-file=//var/run/mysqld/                                                                                                                                                                             [ ok ].
 * Setting root password ...                                                                                                                                                                                         [ ok ]
 * Loading "zoneinfo", this step may require a few seconds ... ...
ERROR 1062 (23000) at line 320485: Duplicate entry 'posix/posix/posix/posix/posix/posix/posix/America/Argentina/San_' for key 'PRIMARY'                                                                              [ ok ]
 * Failed to load zoneinfo!
 * Stopping the server ...
 * Done

Expected Results:  
I expect the zoneinfo tables to load without error (and without duplicate entries)

I did a bit of digging and found that, indeed there is a recursive link /usr/share/zoneinfo

$ls -ld /usr/share/zoneinfo/posix
lrwxrwxrwx 1 root root 1 Oct 31 21:17 /usr/share/zoneinfo/posix -> .

I removed everything from inside /var/lib/mysql, and removed /usr/share/zoneinfo/posix, and re-ran the emerge --config. This time it worked.

Either the ebuild should remove the link temporarily during config, or mariadb needs to be somehow instructed to exclude/ignore that symlink.
Comment 1 James Dominy 2013-10-31 19:45:42 UTC
Portage 2.2.7 (default/linux/amd64/13.0, gcc-4.8.1, glibc-2.17, 3.11.6-gentoo x86_64)
System uname: Linux-3.11.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     8069996 total,   6827416 free
KiB Swap:    8912892 total,   8912892 free
Timestamp of tree: Wed, 30 Oct 2013 20:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.5-r4, 3.2.5-r2, 3.3.2-r2
dev-util/cmake:           2.8.12
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.3
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.1-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.11 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo enlightenment x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=core-avx-i -O2 -pipe -fomit-frame-pointer"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=core-avx-i -O2 -pipe -fomit-frame-pointer"
FCFLAGS="-march=core-avx-i -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-logs cgroup clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=core-avx-i -O2 -pipe -fomit-frame-pointer"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/enlightenment /usr/local/portage"
USE="X a52 aac acl acpi adns alsa amd64 ao apache2 avahi bash-completion berkdb bidi bluetooth bzip2 cairo caps cdda cddb cdio cdparanoia cdr cjk cli consolekit cracklib crypt cscope css cups curl cvs cxx dbus dhcp directfb djvu dri drm dts dv dvd emotion encode ethumb exif fam fftw filecaps flac fortran ftp gd gdbm geoip ggi gif git gnome-keyring gnutls gpg gpm gtkstyle gzip iconv icu idn inotify introspection ipv6 javascript jbig jit jpeg kerberos lame lapack latex ldap libass libnotify libsamplerate lzma mmap mms mmx mmxext modemmanager modules mp3 mp4 mpeg mudflap multilib mysql ncurses network networkmanager nls nptl nsplugin ogg openal opencl opengl openmp pam pcre pdf png policykit postgres postscript ppds python quicktime raw readline samba session slang smp sna sound spell sqlite sqlite3 sse sse2 sse3 sse4_1 ssh ssl ssse3 startup-notification subversion svg syslog taglib tcpd theora threads tiff truetype udev unicode usb uxa v4l vaapi vcd vdpau vim-syntax vorbis vpx webkit wifi wmf x264 xattr xcb xcomposite xetex xinerama xinetd xscreensaver xv xvid xvmc zeroconf zlib" ABI_X86="64" ALSA_CARDS="seq-dummy intel-hda-snd" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 sheets stage tables krita karbon braindump author" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_ZA en_GB en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="intel i915 radeon" 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"
Comment 2 Brian Evans (RETIRED) gentoo-dev 2013-11-01 18:17:39 UTC
I reported this upstream.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2013-11-21 20:59:11 UTC
This is fixed in MariaDB 5.5.34 which should be in the overlay soon
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2014-01-20 00:53:07 UTC
That's an annoying situation, currently: The available mariadb versions aren't usable: You will first run into bug 453480 which you can fix when you update the eclass by hand. But then you will run into this problem :>

To fix this problem, you need a mariadb ebuild, which is only available on the overlay. :(

So you realize you should use the mysql overlay you didn't know before (or thought that this is just for development).

I don't know your plans, but because dev-db/mariadb in the main portage tree isn't usable for some weeks now, maybe it is better to remove it. So people like me who want to get started with mariadb would know that they must use the overlay...

Or better: Make the working versions from the overlay available in the main portage tree :)

Comment 5 Jorge Manuel B. S. Vicetto (RETIRED) Gentoo Infrastructure gentoo-dev 2014-01-20 13:34:57 UTC
I'm working on some bugs and will sync the ebuilds / eclasses in the tree to the ones in the overlay when I'm done.
So if you don't want to use the overlay, wait a bit as I plan to fix the "tree" soon.