I have /var/www/localhost/htdocs symbolically linked to a a directory on a big partition, /home/httpd/htdocs/ In the past I have emerged webapps like gallery, awstats, mythweb, etc without problem. For an unrelated reason I wanted a fresh untouched install of gallery, so I moved aside the htdocs/gallery directory, then did "emerge gallery". The emerge failed with an error (below). However, if I move the previous gallery directory back into place, and try to remerge again it is successful. If I delete something within the gallery directory (say a particular file or directory) upon remerging the missing file or directory is correctly restored. I tried manually creating a gallery directory with permissions matching the previous (successful) installation. This symtom seems to be true of all the webapps that I have tried. I don't even know where to get started with this issue. If there is anything useful I could tell you, please let me know. thanks, Cedar >>> Install gallery-1.4.3_p2 into /var/tmp/portage/gallery-1.4.3_p2/image/ category app-misc man: prepallstrip: strip: >>> Completed installing into /var/tmp/portage/gallery-1.4.3_p2/image/ >>> Merging app-misc/gallery-1.4.3_p2 to / --- /var/ --- /var/www/ --- /var/www/localhost/ --- /var/www/localhost/htdocs/ >>> /var/www/localhost/htdocs/.keep --- /var/www/localhost/htdocs/gallery/ Traceback (most recent call last): File "/usr/bin/emerge", line 2599, in ? mydepgraph.merge(mydepgraph.altlist()) File "/usr/bin/emerge", line 1555, in merge retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug) File "/usr/lib/portage/pym/portage.py", line 2367, in doebuild return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"]) File "/usr/lib/portage/pym/portage.py", line 2489, in merge return mylink.merge(pkgloc,infloc,myroot,myebuild) File "/usr/lib/portage/pym/portage.py", line 5928, in merge return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup) File "/usr/lib/portage/pym/portage.py", line 5558, in treewalk if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime): File "/usr/lib/portage/pym/portage.py", line 5835, in mergeme if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): File "/usr/lib/portage/pym/portage.py", line 5835, in mergeme if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): File "/usr/lib/portage/pym/portage.py", line 5835, in mergeme if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): File "/usr/lib/portage/pym/portage.py", line 5835, in mergeme if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): File "/usr/lib/portage/pym/portage.py", line 5835, in mergeme if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): File "/usr/lib/portage/pym/portage.py", line 5829, in mergeme os.mkdir(mydest) OSError: [Errno 5] Input/output error: '/var/www/localhost/htdocs/gallery/js' Reproducible: Always Steps to Reproduce: 1. 2. 3. # emerge info Portage 2.0.50-r9 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.4.25-gentoo-r1) =============================================================== == System uname: 2.4.25-gentoo-r1 i686 AMD Athlon(TM) XP 2000+ Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control /var/www/localhost/htdocs// mythweb/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/ gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apache2 apm arts avi berkdb crypt cups encode foomaticdb gdbm gif gpm gtk2 imap imlib java jpeg kde libg++ libwww mad maildir mikmod mmx motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sasl sdl slang spell sse ssl svga tcltk tcpd truetype v4l x86 xml2 xmms xv zlib"
OK, I think I have proven to myself that this is not a portage problem, but something deeper. You may want to close this bug if you think this is user error rather than a real bug. How I convinced myself: I tried to emerge gallery to a different location and it worked. Then I tried to mv or cp the gallery directory to my /home/httpd/htdocs/ directory and I got errors like this: cp -R gallery/ /home/httpd/ cp: cannot create directory `/home/httpd/gallery/contrib/mambo/includes': Input/output error cp: cannot create directory `/home/httpd/gallery/contrib/mambo/classes': Input/output error cp: cannot create directory `/home/httpd/gallery/contrib/phpBB2': Input/output error and so on. I know I have plenty of room on that partition, which I tested by successfully moving a 30 mb file to the same location. Any ideas?
Turned out to be filesystem corruption with one of my partitions. Sorry for the noise.