Portage 2.1-r1 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.11-4 x86_64) ================================================================= System uname: 2.6.11-4 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.6.15 dev-lang/python: 2.3.5-r2, 2.4.2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r2 sys-devel/libtool: 1.3.5, 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -mtune=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -funit-at-a-time -ggdb" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/" CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo" CXXFLAGS="-march=athlon64 -mtune=athlon64 -pipe -O2 -fomit-frame-pointer -frename-registers -funit-at-a-time -ggdb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" LINGUAS="en fi sv en_GB en_US fi_FI sv_SE" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/xkr47/portage" SYNC="rsync://rsync.se.gentoo.org/gentoo-portage" USE="amd64 X X509 adns alsa asf async atm avi berkdb bitmap-fonts bzip2 bzlib cairo cdinstall cdparanoia cgi cli crypt curl dbus dedicated devmap dga dlloader doc dri dv dvb dvd dvi eds emacs emboss encode enscript ethereal exif extensions fam fastcgi fbcon ffmpeg firefox flac flash foomaticdb freetype gd gif glibc-omitfp gnome gnomedb gnuplot gnutls gphoto2 graphviz gs gstreamer gtk gtk2 gtkhtml idea idn imagemagick imap imlib innodb ipv6 irda isdnlog jms jmx jpeg jython kdeenablefinal lcms libpng libsamplerate linguas_en_GB linguas_fi linguas_sv lm_sensors logrotate lzo lzw lzw-tiff mad maildir mailwrapper matroska matrox md5sum mikmod mng motif mozcalendar mozdevelop moznocompose moznoirc mozsvg mozxmlterm mp3 mpeg mysql nas nautilus ncurses network noantlr nocd nodrm nptl oav ogg oggvorbis openal opengl openssl oss pam pam_chroot pam_console pam_timestamp pcap pcre pda pdf pdflib perl php pic plotutils png pppd prelude qt3 qt4 quicktime readline reflection rhino rle rtc sdk sdl server session silvercity smime smooth sndfile sox spamassassin speex spell spl sqlite ssl struts svg swat syslog t1lib tetex theora tiff timidity tools transcode truetype truetype-fonts type1-fonts ungif unicode usb userlocales v4l v4l2 vhosts video_cards_mga video_cards_nv video_cards_radeon vnc vorbis webdav wmf xine xml xml2 xorg xpm xprint xv xvid yv12 zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_en linguas_en_US linguas_fi_FI linguas_sv_SE userland_GNU" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS Somewhere in the middle of the "qmerge" phase, xorg-x11-6.8.2-r8 installs the following: [snip] --- /usr/X11R6/ >>> /usr/X11R6/lib64 -> ../lib64 [snip] This broke the system so bad the qmerge process crashed before finishing installing all the files.. [snip] --- /var/lib/xkb/ >>> /var/lib/xkb/README Traceback (most recent call last): File "/usr/bin/emerge", line 3524, in ? mydepgraph.merge(pkglist) File "/usr/bin/emerge", line 2056, in merge retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree") File "/usr/lib/portage/pym/portage.py", line 3056, in doebuild vartree=vartree, prev_mtimes=prev_mtimes) File "/usr/lib/portage/pym/portage.py", line 3265, in merge mydbapi=mydbapi, prev_mtimes=prev_mtimes) File "/usr/lib/portage/pym/portage.py", line 6714, in merge cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes) File "/usr/lib/portage/pym/portage.py", line 6348, in treewalk self.mergeme(srcroot,destroot,outfile,None,secondhand,cfgfiledict,mymtime) File "/usr/lib/portage/pym/portage.py", line 6513, in mergeme mymtime=movefile(mysrc,mydest,newmtime=thismtime,sstat=mystat, mysettings=self.settings) File "/usr/lib/portage/pym/portage.py", line 3118, in movefile dstat=os.lstat(os.path.dirname(dest)) OSError: [Errno 2] No such file or directory: '/usr/lib64/X11' and after that emerge wouldn't function, perl complained about missing locales and various software complained about libGL.so etc, example: Traceback (most recent call last): File "/usr/bin/emerge", line 12, in ? import portage File "/usr/lib/portage/pym/portage.py", line 20, in ? import os,string,types,signal,fcntl,errno ImportError: No module named fcntl Then I found ls -ld /usr/lib64 and it showed it now pointed to ../lib64, i.e. /lib64 The reason for /usr/lib64 to go pointing to /lib64 instead of /usr/lib is that /usr/X11R6 on my system is a symlink to ../usr i.e. /usr. So when the xorg-x11-6.8.2-r8 ebuild re-linked /usr/X11R6/lib64 to ../lib64 it actually changed /usr/lib64. Realizing this, the following commands restored order to the system: rm /usr/lib64 ln -s lib /usr/lib64 Emerge, locales and everything else worked fine again after this. Is the /usr/X11R6 symlink something that some other ebuild should have removed? I previously had xorg-x11-6.8.2-r7 and that had no problems installing.
*** This bug has been marked as a duplicate of 132135 ***