I've created two ebuilds which install the same file: /var/foo/file. And this operation succeeds with portage-2.1.5_rc4: unstable ~ # emerge foo net-misc/bar Calculating dependencies... done! >>> Verifying ebuild Manifests... >>> starting parallel fetching pid 31779 >>> Emerging (1 of 2) net-misc/foo-0.09 to / * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Source unpacked. >>> Compiling source in /var/tmp/portage/net-misc/foo-0.09/work ... >>> Source compiled. >>> Test phase [not enabled]: net-misc/foo-0.09 >>> Install foo-0.09 into /var/tmp/portage/net-misc/foo-0.09/image/ category net-misc >>> Completed installing foo-0.09 into /var/tmp/portage/net-misc/foo-0.09/image/ * checking 2 files for package collisions >>> Merging net-misc/foo-0.09 to / --- /var/ --- /var/foo/ >>> /var/foo/file >>> /var/foo/.keep_net-misc_foo-0 >>> Safely unmerging already-installed instance... No package files given... Grabbing a set. --- replaced obj /var/foo/file --- replaced obj /var/foo/.keep_net-misc_foo-0 --- replaced dir /var/foo --- replaced dir /var >>> Original instance of package unmerged safely. >>> net-misc/foo-0.09 merged. >>> Emerging (2 of 2) net-misc/bar-0.010 to / * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] >>> Unpacking source... >>> Source unpacked. >>> Compiling source in /var/tmp/portage/net-misc/bar-0.010/work ... >>> Source compiled. >>> Test phase [not enabled]: net-misc/bar-0.010 >>> Install bar-0.010 into /var/tmp/portage/net-misc/bar-0.010/image/ category net-misc >>> Completed installing bar-0.010 into /var/tmp/portage/net-misc/bar-0.010/image/ * checking 2 files for package collisions >>> Merging net-misc/bar-0.010 to / --- /var/ --- /var/foo/ >>> /var/foo/file >>> /var/foo/.keep_net-misc_bar-0 >>> Safely unmerging already-installed instance... No package files given... Grabbing a set. --- replaced obj /var/foo/file --- replaced obj /var/foo/.keep_net-misc_bar-0 --- replaced dir /var/foo --- replaced dir /var >>> Original instance of package unmerged safely. >>> net-misc/bar-0.010 merged. >>> Auto-cleaning packages... >>> No outdated packages were found on your system. * GNU info directory index is up-to-date. unstable ~ # qlist foo net-misc/bar /var/foo/file /var/foo/.keep_net-misc_bar-0 /var/foo/file /var/foo/.keep_net-misc_foo-0 unstable ~ # emerge --info Portage 2.1.5_rc4 (default-linux/x86/2007.0, gcc-4.3.0, glibc-2.7-r2, 2.6.24-ovz004 i686) ================================================================= System uname: 2.6.24-ovz004 i686 Intel(R) Pentium(R) M processor 1700MHz Timestamp of tree: Sat, 19 Apr 2008 04:21:01 +0000 app-shells/bash: 3.2_p33 dev-lang/python: 2.5.1-r5 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.2.2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.62 sys-devel/automake: 1.7.9-r1, 1.10.1-r1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="x86 ~x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -pipe -mtune=i686" 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/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=i686 -pipe -mtune=i686" DISTDIR="/usr/portage/distfiles" FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,--as-needed" PKGDIR="/usr/portage/packages" 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/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X bzip2 cli cracklib crypt cups dri iconv isdnlog linuxthreads-tls midi mudflap ncurses nls nptl nptlonly openmp pam pcap pcre perl pic pppd python readline reflection session spl ssl unicode userlocales x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="vesa fbdev radeon" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
*** This bug has been marked as a duplicate of bug 105930 ***