>>> Emerging (1 of 1) sys-apps/baselayout-2.1 * baselayout-2.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ] * Based on your profile, these paths should be symlinks: * /lib * Failure to fix this may result in a broken system. * Converting /lib from a dir to a symlink * ERROR: sys-apps/baselayout-2.1 failed (setup phase): * non-empty dir found where we needed a symlink: /lib * * Call stack: * ebuild.sh, line 91: Called pkg_setup * baselayout-2.1.ebuild, line 20: Called multilib_layout * baselayout-2.1.ebuild, line 70: Called die * The specific snippet of code: * die "non-empty dir found where we needed a symlink: ${prefix}lib" * * If you need support, post the output of 'emerge --info =sys-apps/baselayout-2.1', * the complete build log and the output of 'emerge -pqv =sys-apps/baselayout-2.1'. * The complete build log is located at '/var/log/portage/sys-apps:baselayout-2.1:20111004-165739.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-apps/baselayout-2.1/temp/die.env'. * S: '/var/tmp/portage/sys-apps/baselayout-2.1/work/baselayout-2.1' >>> Failed to emerge sys-apps/baselayout-2.1, Log file: >>> '/var/log/portage/sys-apps:baselayout-2.1:20111004-165739.log' The log file is identical to the output. Reproducible: Always The system was built from stage3-amd64-20110520.tar.bz2 following the Gentoo Handbook. The following packages have files installed in /lib. # equery belongs /lib * Searching for /lib ... net-misc/dhcpcd-5.2.12-r1 (/lib) sys-boot/grub-static-0.97-r10 (/lib) sys-fs/udev-171-r2 (/lib) # emerge --info =sys-apps/baselayout-2.1 Portage 2.1.10.20 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.13-r4, 2.6.39-gentoo-r3 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-2.6.39-gentoo-r3-x86_64-Intel-R-_Xeon-R-_CPU_X5650_@_2.67GHz-with-gentoo-2.0.3 Timestamp of tree: Tue, 04 Oct 2011 07:45:01 +0000 app-shells/bash: 4.2_p10 dev-lang/python: 2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2 dev-util/cmake: 2.8.5-r2 dev-util/pkgconfig: 0.26 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.9.3-r1 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.68 sys-devel/automake: 1.11.1-r1 sys-devel/binutils: 2.21.1-r1 sys-devel/gcc: 4.5.3-r1 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.4-r3 sys-devel/make: 3.82-r3 sys-kernel/linux-headers: 2.6.39 (virtual/os-headers) sys-libs/glibc: 2.13-r4 Repositories: gentoo local ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="* -@EULA" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind /var/www/localhost/htdocs/roundcube/config" 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" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--with-bdeps=y" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org http://gentoo.osuosl.org" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/local" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="amd64 apache2 berkdb bzip2 cli cracklib crypt cups cxx dri fortran gdbm gpm iconv mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline session sse sse2 ssl sysfs tcpd unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so 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 keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS # emerge -pqv =sys-apps/baselayout-2.1 [ebuild U ] sys-apps/baselayout-2.1 [2.0.3] USE="-build" It might be worthwhile to provide some documentation on how to fix this issue. I'll leave my system broken in case there is anything you want me to investigate.
post the output of: ls -ld /lib* /usr/lib* portageq envvar SYMLINK_LIB MULTILIB_ABIS DEFAULT_ABI
garionv ~ # ls -ld /lib* /usr/lib* drwxr-xr-x 8 root root 4096 Sep 21 12:38 /lib drwxr-xr-x 2 root root 4096 May 25 14:26 /lib32 drwxr-xr-x 8 root root 4096 Sep 27 10:26 /lib64 lrwxrwxrwx 1 root root 5 May 20 20:57 /usr/lib -> lib64 drwxr-xr-x 2 root root 4096 May 25 14:26 /usr/lib32 drwxr-xr-x 40 root root 20480 Oct 4 11:50 /usr/lib64 drwxr-xr-x 6 root root 4096 Sep 19 10:23 /usr/libexec garionv ~ # portageq envvar SYMLINK_LIB MULTILIB_ABIS DEFAULT_ABI yes amd64 amd64
ok, your system should have /lib as a symlink (as we talked on irc). i've updated the baselayout text to be clearer for people who hit this situation. http://sources.gentoo.org/sys-apps/baselayout/baselayout-2.1.ebuild?r1=1.1&r2=1.2
*** Bug 385647 has been marked as a duplicate of this bug. ***
Ok the ebuild text has become a little clearer but the solution hasn't (at least for me). Is the following procedure viable? cd / cp --recursive /lib/* /lib64 rm -r /lib/* rm /lib ln -sf lib64 /lib
there's no way i'm adding a `rm` of arbitrary files in terms of users, there isn't a clean way of handling overlaid paths. if /lib/ has file "foo" and /lib64/ has dir "foo", a cp/mv will not merge those nicely.