The final part of the merge process for libsndfile-1.0.11 crashes with a bad file descriptor error: >>> Completed installing libsndfile-1.0.11 into /var/tmp/portage/libsndfile-1.0.11/image/ * checking 33 files for package collisions * spent 0.039803981781 seconds checking for file collisions >>> Merging media-libs/libsndfile-1.0.11 to / --- /usr/ --- /usr/bin/ >>> /usr/bin/sndfile-convert >>> /usr/bin/sndfile-info >>> /usr/bin/sndfile-play --- /usr/include/ >>> /usr/include/sndfile.h --- /usr/lib/ >>> /usr/lib/libsndfile.1.0.11.dylib >>> /usr/lib/libsndfile.1.dylib -> libsndfile.1.0.11.dylib >>> /usr/lib/libsndfile.dylib -> libsndfile.1.0.11.dylib >>> /usr/lib/libsndfile.la --- /usr/lib/pkgconfig/ >>> /usr/lib/pkgconfig/sndfile.pc --- /usr/share/ --- /usr/share/doc/ --- /usr/share/doc/libsndfile-1.0.11/ >>> /usr/share/doc/libsndfile-1.0.11/AUTHORS.gz >>> /usr/share/doc/libsndfile-1.0.11/ChangeLog.gz --- /usr/share/doc/libsndfile-1.0.11/html/ >>> /usr/share/doc/libsndfile-1.0.11/html/api.html >>> /usr/share/doc/libsndfile-1.0.11/html/bugs.html >>> /usr/share/doc/libsndfile-1.0.11/html/command.html >>> /usr/share/doc/libsndfile-1.0.11/html/dither.html >>> /usr/share/doc/libsndfile-1.0.11/html/embedded_files.html >>> /usr/share/doc/libsndfile-1.0.11/html/FAQ.html >>> /usr/share/doc/libsndfile-1.0.11/html/index.html >>> /usr/share/doc/libsndfile-1.0.11/html/libsndfile.css >>> /usr/share/doc/libsndfile-1.0.11/html/libsndfile.jpg >>> /usr/share/doc/libsndfile-1.0.11/html/lists.html >>> /usr/share/doc/libsndfile-1.0.11/html/new_file_type.HOWTO >>> /usr/share/doc/libsndfile-1.0.11/html/octave.html >>> /usr/share/doc/libsndfile-1.0.11/html/pkgconfig.html >>> /usr/share/doc/libsndfile-1.0.11/html/sndfile_info.html >>> /usr/share/doc/libsndfile-1.0.11/html/win32.html >>> /usr/share/doc/libsndfile-1.0.11/NEWS.gz >>> /usr/share/doc/libsndfile-1.0.11/README.gz >>> /usr/share/doc/libsndfile-1.0.11/TODO.gz --- /usr/share/man/ --- /usr/share/man/man1/ >>> /usr/share/man/man1/sndfile-convert.1.gz >>> /usr/share/man/man1/sndfile-info.1.gz >>> /usr/share/man/man1/sndfile-play.1.gz Traceback (most recent call last): File "/usr/bin/emerge", line 3074, in ? mydepgraph.merge(mydepgraph.altlist()) File "/usr/bin/emerge", line 1848, in merge retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug) File "/usr/lib/portage/pym/portage.py", line 2651, 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 2823, in merge return mylink.merge(pkgloc,infloc,myroot,myebuild) File "/usr/lib/portage/pym/portage.py", line 6834, in merge return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup) File "/usr/lib/portage/pym/portage.py", line 6447, in treewalk if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime): File "/usr/lib/portage/pym/portage.py", line 6699, in mergeme if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): File "/usr/lib/portage/pym/portage.py", line 6699, in mergeme if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime): File "/usr/lib/portage/pym/portage.py", line 6691, in mergeme os.mkdir(mydest) OSError: [Errno 9] Bad file descriptor: '/usr/share/octave' This leaves an incomplete merge that needs to be cleaned up manually (by trying to emerge libsndfile again and making note of what file conflicts come up). Reproducible: Always Steps to Reproduce: 1. emerge libsndfile
I seem to have some sort of filesystem weirdness going on..."ls /usr/share" lists nothing, but "ls /usr/share/doc" (for instance) lists the contents of that directory. "mkdir /usr/share/octave" returns a bad file descriptor error, and fsck_hfs says there are errors.