Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 385993 - sys-apps/baselayout-2.1 emerge fails with link error
Summary: sys-apps/baselayout-2.1 emerge fails with link error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-07 07:55 UTC by Christian Samsel
Modified: 2011-10-09 16:57 UTC (History)
0 users

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 Christian Samsel 2011-10-07 07:55:04 UTC
I cannot upgrade to baselayout-2.1, emerge fails with the following error:

oxygen-mobile christian # LANG=C emerge -u1 baselayout
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/baselayout-2.1
 * baselayout-2.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                              [ ok ]
 * Initializing /usr/local/lib as a symlink
ln: failed to create symbolic link `./lib': File exists
 * ERROR: sys-apps/baselayout-2.1 failed (setup phase):
 *   (no error message)
 * 
 * Call stack:
 *               ebuild.sh, line  91:  Called pkg_setup
 *   baselayout-2.1.ebuild, line  20:  Called multilib_layout
 *   baselayout-2.1.ebuild, line  85:  Called die
 * The specific snippet of code:
 *                              ln -s ${def_libdir} "${prefix}lib" || die
 * 
 * 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:20111007-075147.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:20111007-075147.log'

 * Messages for package sys-apps/baselayout-2.1:

 * Initializing /usr/local/lib as a symlink
 * ERROR: sys-apps/baselayout-2.1 failed (setup phase):
 *   (no error message)
 * 
 * Call stack:
 *               ebuild.sh, line  91:  Called pkg_setup
 *   baselayout-2.1.ebuild, line  20:  Called multilib_layout
 *   baselayout-2.1.ebuild, line  85:  Called die
 * The specific snippet of code:
 *                              ln -s ${def_libdir} "${prefix}lib" || die
 * 
 * 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:20111007-075147.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'

Reproducible: Always




oxygen-mobile christian # emerge --info
Portage 2.1.10.22 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.13-r4, 3.0.6-gentoo x86_64)
=================================================================
System uname: Linux-3.0.6-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8400_@_2.26GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 07 Oct 2011 07:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.1.3-r1
dev-util/ccache:          3.1.6
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.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo local
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA as-is Nero-EULA-US PUEL dlj-1.1 SMLABS-EULA AdobeFlash-10 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -floop-interchange -floop-strip-mine -floop-block -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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=native -O2 -floop-interchange -floop-strip-mine -floop-block -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.halifax.rwth-aachen.de/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://pandemonium.tiscali.de/pub/gentoo/"
LANG="de_DE@euro"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de 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/portage/local"
SYNC="rsync://ftp.halifax.rwth-aachen.de/gentoo-portage/"
USE="3dnow 3dnowext 64bit X a52 aac abyss acct acl acpi additions addressbook adns aim aio airplay akonadi alsa amd64 amr animgif apng archive aspell attica audioscrobbler auto-completion autoipd automount avahi avcodec avformat bash-completion battery bazaar berkdb binary-drivers bittorrent bluetooth bookmarks branding bugzilla bzip2 cairo calendar caps cardbus cblas-external ccache cdda cddb cdio cdr cdrom cg chipcard chm chroot cleartype cli cmake color colordiff connection-sharing consolekit context corefonts cracklib cron crypt cscope css csv ctype cuda cue cups curl custom-cflags cvs cxx daap dbus dbx declarative dell detex device-mapper dhcp dhcpcd dia disk-partition djvu dlna dlopen dnotify doc dri dts dvb dvd dvdr dvi dvipdfm eap-sim eap-tls embedded enca encode enscript examples exif expat extensions extras faad fakevim fam fat fax ffmpeg firefox firefox3 flac flash flickr fontconfig foomaticdb fortran ftp fts3 gcj gd gd-external gdbm geoip geolocation gif gimp git glep glib glut gmm gmp gnuplot gnutls google gpc gpg gphoto2 gpm gps grammar graphite grub gs gsm gstreamer gzip h323 hash hbci hdri hpcups hpijs hpn html httpd i18n ical iconv icq icu id3 id3tag ident ieee1394 imagemagick imap imlib inkjar inotify ioemu iostats ipod iproute2 iptv ipv6 irc irda jabber jadetex java java6 javascript jfs jingle jpeg kde kdm kipi kismet konqueror kontact kpathsea kqemu kvm lame lapack laptop lastfm latex latex3 latin1 lcms libextractor libffi libnotify libproxy libsamplerate libv4l2 libvirtd libvisual libwww lighttpd lm_sensors logrotate logwatch lua lyx lzma lzo mad magic maildir mapnik matroska md5sum mdadm mdnsresponder-compat media-library mercurial metric mime mjpeg mmap mmx mmxext mng modules mp3 mp4 mpeg mpi mplayer mudflap multimedia multiuser musepack mysql mysqli ncurses net network network-cron networkmanager nfs nfsv4 nls nmap nntp nocd nptl nptlonly nsplugin nss ntfs ntp nvidia nxclient obex ofx ogg okular openal opencl openct openexr opengl openmp optimization optimized-qmake oscar otr oxygen pam parted patch pcap pcf pch pcmcia pcntl pcre pcsc-lite pda pdf perl perlsuid phonon plasma plotutils pmu png podcast policykit posix postproc ppds pppd prediction preview-latex private-headers ps pstoedit pstricks pulseaudio pvr python python3 qalculate qemu qmake qml qscintilla qt-faststart qt-webkit qt3support qt4 qtscript quicktime quota quotes rar rdesktop rdesktop-vrdp readline recode remote romio rpm rss rtsp samba sasl scanner screen screenshot script scripts sdl search secure-delete semantic-desktop server session sftp shout simplexml skins slang slp smp sms snmp sound spell sql sqlite sqlite3 sse sse2 sse3 sse4 sse4a sse5 ssh ssl ssse3 startup-notification stats stream strong-optimization subversion suid svg symlink sysfs syslog system-sqlite sysvipc t1lib taglib tcpdump tcpreplay templates tex texmacs theora thesaurus threads threadsafe thumbnail tiff tk tools tpm truetype twitter twolame udev uml unicode unlock-notify unzip upnp usb v4l v4l2 vaapi vboxwebsrv vcd vcdx vdpau video vim vim-pager vim-syntax virtualbox virtuoso vlm vnc vorbis vpx watchdog webdav webkit wifi wireshark wma wordperfect wps wxwidgets x264 x86emu xattr xcb xcomposite xen xetex xext xft xhtml xine xinerama xml xmlrpc xmp xmpp xorg xpm xprint xrandr xscreensaver xslt xulrunner xv xvid xvmc zeroconf zip zlib zvbi" ALSA_CARDS="hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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="all" 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="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

ls -l /usr/
insgesamt 436
drwxr-xr-x   2 root    root    122880  6. Okt 11:53 bin
drwxr-xr-x   5 root    root      4096  4. Jul 16:49 etc
drwxr-x---   3 root    games     4096  4. Mai 2010  games
drwxr-xr-x   4 root    root      4096  1. Jul 08:05 imports
drwxr-xr-x 417 root    root     61440  6. Okt 10:52 include
lrwxrwxrwx   1 root    root         5 26. Jun 23:55 lib -> lib64
drwxr-xr-x   2 root    root      4096 14. Sep 2009  lib32
drwxr-xr-x 181 root    root    172032  6. Okt 11:45 lib64
drwxr-xr-x  12 root    root      4096  6. Okt 11:20 libexec
drwxr-xr-x   2 root    root      4096  4. Okt 10:34 local
lrwxrwxrwx   1 root    root        17 13. Jul 11:31 locale -> /usr/lib64/locale
drwxr-xr-x   5 root    root      4096 13. Jul 12:45 NX
drwxr-xr-x 164 portage portage   4096  7. Okt 09:33 portage
drwxr-xr-x   3 root    root      4096 16. Feb 2009  qt
drwxr-xr-x   2 root    root     12288  6. Okt 11:53 sbin
drwxr-xr-x 337 root    root     12288  5. Okt 13:12 share
drwxr-xr-x   6 root    root      4096  5. Okt 10:53 src
lrwxrwxrwx   1 root    root         8 27. Jun 00:25 tmp -> /var/tmp
drwx------   2 root    root      4096 26. Feb 2010  tmp-oxygen-mobile
drwxr-xr-x   3 root    root      4096  4. Jul 16:49 var
lrwxrwxrwx   1 root    root         6 27. Jun 00:25 X11R6 -> ../usr
drwxr-xr-x   6 root    root      4096 12. Jan 2010  x86_64-pc-linux-gnu
Comment 1 SpanKY gentoo-dev 2011-10-08 00:51:39 UTC
what does `ls -l /usr/local/` look like ?
Comment 2 Christian Samsel 2011-10-08 08:52:11 UTC
it's empty. i tried to resolve the issue by removing /usr/local (it did not contain anything useful anyways).
Comment 3 SpanKY gentoo-dev 2011-10-08 19:58:58 UTC
that branch of code only executes if /usr/local/lib is not a dir or symlink.  so if you can't recreate the situation, then there isn't much to do at this point.
Comment 4 Christian Samsel 2011-10-08 21:09:02 UTC
i had a brief look into the ebuild and modified it the following way:

82 ewarn "Initializing ${prefix}lib as a symlink to ${def_libdir}"

with the output

 * Initializing /usr/local/lib as a symlink to 

it seems for unknown reason ${def_libdir} is undefined... then ln will fail obviously.

so i guess it has something to do with:

def_libdir=$(get_abi_LIBDIR $DEFAULT_ABI)

maybe its related to the fact i'm using nomultilib?
Comment 5 SpanKY gentoo-dev 2011-10-08 21:49:00 UTC
post the output of running:
portageq envvar MULTILIB_ABIS DEFAULT_ABI
Comment 6 Christian Samsel 2011-10-08 22:09:34 UTC
oxygen-mobile christian # portageq envvar MULTILIB_ABIS DEFAULT_ABI
amd64
x86_64
Comment 7 Christian Samsel 2011-10-08 22:15:19 UTC
unsetting DEFAULT_ABI resolved the issue. thanks for you effort
Comment 8 SpanKY gentoo-dev 2011-10-09 16:33:40 UTC
yeah, that DEFAULT_ABI setting is wrong.  i'll add a sanity check to the ebuild.
Comment 9 SpanKY gentoo-dev 2011-10-09 16:34:53 UTC
should be all set now in the tree; thanks for the report!

Commit message: Add sanity check for $DEFAULT_ABI
http://sources.gentoo.org/sys-apps/baselayout/baselayout-2.1.ebuild?r1=1.2&r2=1.3
Comment 10 Christian Samsel 2011-10-09 16:57:29 UTC
yeah cool. although it was my bad with the DEFAULT_ABI, the sanity check seems useful.