Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 506570 - sys-libs/timezone-data - src_install(): OSError: [Errno 40] Too many levels of symbolic links: '/usr/share/zoneinfo/posix/Australia/Adelaide'
Summary: sys-libs/timezone-data - src_install(): OSError: [Errno 40] Too many levels o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-02 14:34 UTC by Cănărău Constantin
Modified: 2014-07-30 06:46 UTC (History)
2 users (show)

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


Attachments
Requested info (report.txt,98.75 KB, text/plain)
2014-04-02 17:40 UTC, Cănărău Constantin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cănărău Constantin 2014-04-02 14:34:28 UTC
On new installation timezone-data (any version) fail to install

Reproducible: Always

Actual Results:  
>>> Installing (1 of 1) sys-libs/timezone-data-2014b
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/dbapi/_MergeProcess.py", line 234, in _spawn
    prev_mtimes=self.prev_mtimes, counter=counter)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 4872, in merge
    counter=counter)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3651, in treewalk
    retval = self._security_check(others_in_slot)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3405, in _security_check
    s = os.lstat(path)
  File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)
OSError: [Errno 40] Too many levels of symbolic links: '/usr/share/zoneinfo/posix/Australia/Adelaide'



On existing system timezone-data install succesful, but on new installtion it fail with: 
Traceback (most recent call last):
  File "/usr/lib64/portage/pym/portage/dbapi/_MergeProcess.py", line 234, in _spawn
    prev_mtimes=self.prev_mtimes, counter=counter)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 4872, in merge
    counter=counter)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3651, in treewalk
    retval = self._security_check(others_in_slot)
  File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 3405, in _security_check
    s = os.lstat(path)
  File "/usr/lib64/portage/pym/portage/__init__.py", line 259, in __call__
    rval = self._func(*wrapped_args, **wrapped_kwargs)

Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.2, glibc-2.19, 3.13.8-aufs-costel x86_64)
=================================================================
System uname: Linux-3.13.8-aufs-costel-x86_64-Intel-R-_Core-TM-_i7_CPU_860_@_2.80GHz-with-gentoo-2.2
KiB Mem:    16427936 total,   4058588 free
KiB Swap:          0 total,         0 free
Timestamp of tree: Wed, 02 Apr 2014 05:45:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p46
dev-lang/python:          2.7.6, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo added gnome-next gnome
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-Ofast -pipe -march=native -w"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/sandbox.d /etc/terminfo"
CXXFLAGS="-Ofast -pipe -march=native -w"
DISTDIR="/mnt/linux/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=4 --load-average=11 --keep-going --with-bdeps=y --complete-graph --quiet-build=n --autounmask-write"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy cgroup collision-protect config-protect-if-modified distlocks fail-clean fixlafiles ipc-sandbox merge-sync news nodoc noinfo parallel-fetch parallel-install preserve-libs protect-owned sandbox sfperms strict unknown-features-filter unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://localhost/ http://ftp.romnet.org/gentoo/ http://mirrors.xservers.ro/gentoo/ ftp://ftp.romnet.org/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ http://distfiles.gentoo.org/"
LANG="ro_RO.utf8"
LC_ALL="ro_RO.UTF-8"
LDFLAGS="-Wl,-O1,--sort-common,--hash-style=gnu,--as-needed,-z,now"
MAKEOPTS="-j9 --load-average=11"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable --delete-before --progress"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/added /usr/portage/local/gnome-next /usr/portage/local/gentoo-gnome"
USE="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam firefox flac gdbm gif gmp gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 iconv introspection ipv6 ithreads jpeg lcms ldap libnotify libsecret logrotate mad mmx mng modules mp3 mp4 mpeg multilib mysql nautilus ncurses networkmanager nls nptl ogg opengl openmp opus pam pango pch pcre pdf png policykit postgres ppds pulseaudio qt3support qt4 readline sdl session socialweb spell sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff truetype udev udisks unicode upower usb vdpau vhosts vorbis wxwidgets x264 xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="virtuoso hda-intel" 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 ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ro en" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gunzip gzip limit_conn limit_req map memcached naxsi proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition cache_purge dav fancyindex flv geoip gzip_static headers_more image_filter mp4 perl push random_index realip secure_link spdy stub_status sub upload_progress xslt" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nv 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC, USE_PYTHON
Comment 1 SpanKY gentoo-dev 2014-04-02 16:18:41 UTC
can you attach the output of running `qlist -vvv timezone-data` and make sure that `qcheck timezone-data` doesn't report any errors

also run:
 find /usr/share/zoneinfo/ -type l
 cat /proc/mounts
Comment 2 Cănărău Constantin 2014-04-02 17:40:23 UTC
Created attachment 374102 [details]
Requested info

Of course, all requested infos are attached in a single file
Comment 3 SpanKY gentoo-dev 2014-04-03 22:10:32 UTC
what if you:
 rm -rf /usr/share/zoneinfo/posix /usr/share/zoneinfo/.gentoo-upgrade
 emerge timezone-data
 emerge timezone-data
Comment 4 Cănărău Constantin 2014-04-05 12:44:48 UTC
Yes, it solved it! 
Thank you very much!
Comment 5 floppe 2014-05-20 06:38:29 UTC
Same thing happened here and the proposed solution solved it. Thanks.
Comment 6 Dirkjan Ochtman (RETIRED) gentoo-dev 2014-05-26 07:43:57 UTC
I'm seeing the same thing, on a regular emerge world update (2013d -> 2014a).
Comment 7 Antek Grzymała (antoszka) 2014-06-24 09:30:03 UTC
lemongrass ~ # cd /usr/share/zoneinfo/
lemongrass zoneinfo # find -type l
./posix
lemongrass zoneinfo # ls -l posix
lrwxrwxrwx 1 root root 1 May 15 12:23 posix -> .

Same problem here, caused postgresql-8.4.20 to crash.
Comment 8 Chí-Thanh Christopher Nguyễn gentoo-dev 2014-07-06 23:12:02 UTC
This is probably a duplicate of bug 318941.
Comment 9 SpanKY gentoo-dev 2014-07-30 06:46:07 UTC
i've tweaked the timezone-data pkg_setup logic to handle failed merged scenarios, so hopefully it should recover from whatever state your system is in now

http://sources.gentoo.org/sys-libs/timezone-data/timezone-data-2014e.ebuild?r1=1.2&r2=1.3