Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150246 - portage has problems with distfile symlinks
Summary: portage has problems with distfile symlinks
Status: RESOLVED NEEDINFO
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-06 03:12 UTC by Marcin Kowalski
Modified: 2007-01-28 08:10 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 Marcin Kowalski 2006-10-06 03:12:37 UTC
i tried installing savage2 from portage today.

my system is setup this way:
portage tree is on squashfs, it's merged via unionfs with extra directory for r/w access. squashfs image is rebuilt on system shutdown. mounted in /usr/portage

distfiles and packages are in separate 
/home/gentoo/distfiles and 
/home/gentoo/packages 
directories (no symlinking from portage tree, they're explictly specified in make.conf)

i had already downloaded one file from savage before. instead of copying/moving it into distfile dir, i symlinked it, and i got an error:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 4153, in ?
    emerge_main()
  File "/usr/bin/emerge", line 4148, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 3660, in action_build
    retval = mergetask.merge(pkglist, favorites, mtimedb)
  File "/usr/bin/emerge", line 2020, in merge
    mydbapi=portdb, tree="porttree")
  File "/usr/lib/portage/pym/portage.py", line 2982, in doebuild
    if need_distfiles and not fetch(
  File "/usr/lib/portage/pym/portage.py", line 2152, in fetch
    mystat = os.stat(myfile_path)
OSError: [Errno 40] Too many levels of symbolic links: '/home/gentoo/distfiles/savage_2.00c-english.update.run'

there is just ONE symlink in the way, so i really don't understand this. i used to symlink distfiles off dvd a couple of years ago (around 2004.3 / 2005.0) , now it seems to be broken.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-10-06 03:56:10 UTC
emerge --info, please.
Comment 2 Marcin Kowalski 2006-10-06 10:29:17 UTC
well i thought it was irrelevant to the problem

here goes:
emerge --info

--------------------------------
Portage 2.1.2_pre2-r3 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.17-beyond4 i686)
=================================================================
System uname: 2.6.17-beyond4 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.5
Last Sync: Fri, 06 Oct 2006 09:20:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -mfpmath=sse -msse2 -msse3"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -mtune=athlon-xp -O2 -pipe -mfpmath=sse -msse2 -msse3"
DISTDIR="/home/gentoo/distfiles"
FEATURES="autoconfig candy ccache distlocks moo sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS=" http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL.UTF-8"
LINGUAS="pl en"
MAKEOPTS="-j2"
PKGDIR="/home/gentoo/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--progress"
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="/mnt/debian/workdirs/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/gentoo/overlays/kpex-media /home/gentoo/overlays/fluidportage /home/gentoo/overlays/sunrise /home/gentoo/overlays/wschlich /home/gentoo/overlays/
wrobel /home/gentoo/overlays/ebuild-exchange /home/gentoo/overlays/mpd /home/gentoo/overlays/portage-xgl /home/gentoo/overlays/hanno-xgl /home/gentoo/overlays/musicbrai
nz /home/gentoo/overlays/sabayon /home/gentoo/overlays/yoshi"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 7zip X a52 aac aalib acct acl acpi ada aim akode alsa amazon amr amuled animation ao aoss aotuv apache2 ares asf async atk audiofile bash-comple
tion bcmath bcp berkdb bitmap-fonts bittorrent bjam bonjour boost bzip2 cairo calendar caps capslib catalogs ccache cdb cdda cddb cdr cgi clearcase cli clock-screen col
ordiff crypt cscope css ctype curl custom-cflags dbus devmap dillo directfb djbfft dlloader dmi dpmod dpms dri dts dvd dvdr dvdread dvi ecc effects elibc_glibc emboss e
nca encode esd exif expat extraengine extras faad fam fame fastcgi fat fbcon fbdev ffmpeg fftw firefox flac flatfile fontconfig fortran fpx freetype ft ftp fuse gcj gd 
gdbm geoip ggi gif gimp glade glibc-omitfp glitz glut glx gmp gnome gnutls gopher gpgme gpm grammar gs gsm gstreamer gstreamer010 gtk hal hash iconv icq idea imagemagic
k imap imlib inifile inkjar input_devices_keyboard input_devices_mouse insecure-patches ipv6 irc irda irmc isdnlog jabber javascript jfs jikes jpeg jpeg2k js junit just
ify kde kdeenablefinal kdehiddenvisibility kdrive kernel_linux key-screen kqemu l7filter largeterminal lcms leim lesstif libcaca libg++ libnotify libsamplerate libvisua
l lights linguas_en linguas_pl lj lm_sensors logrotate lzo mad maildir mailwrapper math matroska mbox md5sum mhash mikmod mjpeg mmkeys mmx mmxext mng modplug mods mouse
 mozsvg mp3 mp4 mp4live mpeg mplayer mudflap multiuser musepack musicbrainz mysql ncurses nethack network nforce2 nls nntp no-old-linux no-seamonkey nogecko-sdk nosendm
ail nptl nptlonly nsplugin ntfs ogg oggvorbis on-the-fly-crypt openal opengl oss overlays pam panel panel-plugin pango pascal password paste64 pcntl pcre pdf pdo perl p
hp plugin pmu png pop posix ppds pppd pulseaudio python qa qmax qsa qt3 qt4 quicktime rar rdesktop readline real reflection reiser4 reiserfs remote rle rplay rrdtool rs
s rtc ruby sdl sdl-sound search-screen sensord session sharedext silc simplexml skins slang smtp sndfile sockets softmmu source speedo spell spl sql sqlite sqlite3 srv 
srvdir sse sse-filters sse2 ssl startup-notification stencil-buffer stroke subtitles subversion svg svga sysfs sysvipc t1lib tabs tagwriting tcl tcltk tcpd textures tga
 theora thesaurus threads thumbnail thunar thunar-vfs tidy tiff tk tokenizer tools tordns transcode trayicon truetype truetype-fonts type1 type1-fonts udev unicode upnp
 usb userland_GNU userlocales vcd vcdimager vhosts video_cards_ati video_cards_fglrx video_cards_radeon vidix vim vim-pager vim-with-x visualization vm-switch vorbis wi
n32codecs wma wmf wordperfect wv wxgtk1 wxwindows x264 xchatdccserver xcomposite xfs xgetdefault xine xml xml2 xmlreader xmlrpc xmlwriter xorg xpm xrandr xscreensaver x
sl xv xvid xvmc yahoo yv12 zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS
--------------------------------
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 10:21:22 UTC
Do the following commands work?
stat /home/gentoo/distfiles/savage_2.00c-english.update.run
stat -L /home/gentoo/distfiles/savage_2.00c-english.update.run
python -c "import os; os.stat('/home/gentoo/distfiles/savage_2.00c-english.update.run')"
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2007-01-28 08:10:43 UTC
Reopen when you can provide the requested information.
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2007-01-28 08:10:56 UTC
Reopen when you can provide the requested information.