Install section of dev-util/gperf-3.0.3 dies with the following message: OSError: [Errno 20] Not a directory: '/var/db/pkg/dev-util/-MERGING-gperf-3.0.3' After the failed emerge I've checked and /var/db/pkg/dev-util/-MERGING-gperf-3.0.3 is an empty file. I've removed this file and created a directory with the same name and re-tried the emerge. After this the emerge completed successfully. Also tried 'ebuild /usr/portage/dev-util/gperf/gperf-3.0.3 clean' but that didn't solved anything. Reproducible: Always Steps to Reproduce: 1. emerge -av1 dev-util/gperf 2. 3. Emerge --info: Portage 2.1.6.13 (default/linux/amd64/10.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2 .6.29-tuxonice-r4 x86_64) ================================================================= System uname: Linux-2.6.29-tuxonice-r4-x86_64-Intel-R-_Core-TM-2_CPU_T5500_@_1.6 6GHz-with-gentoo-1.12.11.1 Timestamp of tree: Sun, 13 Sep 2009 22:45:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.6.2-r1 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.63-r1 sys-devel/automake: 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/php/ap ache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-activ e/ /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=core2 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms str ict unmerge-orphans userfetch" GENTOO_MIRRORS="http://darkstar.ist.utl.pt/gentoo/ ftp://distro.ibiblio.org/pub/ linux/distributions/gentoo/ http://ftp.udc.es/gentoo/ " LDFLAGS="-Wl,-O1" LINGUAS="pt pt_PT en en_GB" 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 --exclu de=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aac acl additions amd64 apache2 arts bash-completion berkdb bindist bzip2 cgi cli cracklib crypt ctype cups dri fbcondecor fbsplash fortran gd gdbm git g nutls gpm hal hddtemp iconv ipv6 isdnlog kde kpathsea lcms lm_sensors matroska m mx mp4 mudflap multilib mysql ncurses nls nptl nptlonly nsplugin ntfs n vidia openmp pam pcre perl php pmu pppd python readline reflection session socke ts spl sse sse2 sse3 ssl sysfs tcpd tk unicode vhosts vim-syntax xorg xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoo p empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mu law 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 dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache fil ter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2 _MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KER NEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxor b ncurses text" LINGUAS="pt pt_PT en en_GB" USERLAND="GNU" VIDEO_CARDS="nvidia n v" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_A LL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Try just removing the directory/file entirely.. it means your merge crashed mid-merge...