* checking 24639 files for package collisions 1000 files checked ... existing file /usr/kde/3.4/share/mimelnk/application/x-debian-package.desktop is not owned by this package 2000 files checked ... 3000 files checked ... 4000 files checked ... 5000 files checked ... 6000 files checked ... 7000 files checked ... 8000 files checked ... 9000 files checked ... 10000 files checked ... 11000 files checked ... 12000 files checked ... 13000 files checked ... 14000 files checked ... 15000 files checked ... 16000 files checked ... 17000 files checked ... 18000 files checked ... 19000 files checked ... 20000 files checked ... 21000 files checked ... 22000 files checked ... 23000 files checked ... 24000 files checked ... * spent 329.369210005 seconds checking for file collisions * This package is blocked because it wants to overwrite * files belonging to other packages (see messages above). * If you have no clue what this is all about report it * as a bug for this package on http://bugs.gentoo.org package kde-base/kdelibs-3.4.2 NOT merged No package files given... Grabbing a set. root@localhost:/mnt/data/games/for_Games/WarCraft3FT$ equery b /usr/kde/3.4/share/mimelnk/application/x-debian-package.desktop [ Searching for file(s) /usr/kde/3.4/share/mimelnk/application/x-debian-package.desktop in *... ] kde-base/kpackage-3.4.1 (/usr/kde/3.4/share/mimelnk/application/x-debian-package.desktop) Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: its happend when i tried upgrade from 3.4.1 Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r5 i686) ================================================================= System uname: 2.6.12-gentoo-r5 i686 AMD Athlon(tm) Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 2.4.1-r1 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distcc distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="ru_RU.KOI8-R" LC_ALL="ru_RU.KOI8-R" LINGUAS="RU" 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="x86 3dnow 3dnowex 3dnowext 7zip X aac aalib accessibility acl acpi activefilter adns aim alsa amuled apache2 applet artworkextra atm audio audiofile avi bash-completion bcmath berkdb bidi bitmap-fonts bmp bonobo buttons bzip2 bzlib cairo calendar caps cdparanoia cdr chroot clamav cpdflib cpudetection crypt css cups curl curlwrappers customlog dba dbus dga dhcp dillo divx4linux doc dv dvb dvd dvdr dvdread dynagraph ecc edl eds emacs emboss encode epiphany escreen etwin exif extensions extras fam ffmpeg filepro flac flash font-server foomaticdb fortran fpx freetds freetype ftp gcj gd geoip gg ggi gif glitz gnome-print gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile hal howl iconv icq idea imagemagick imap imlib irc java jbig jpeg jpeg2k justify kde kdeenablefinal kdexdeltas kdgraphics kig-scripting lcms leim lesstif libcaca libclamav libedit libfpx libg++ libwww lirc lj logmail logrotate lzo mad mailbox maildir mailwrapper matroska md5sum memlimit mikmod milter mime mjpeg mmap mmx mmxext mng mono mozilla moznomail mozsvg mozxmlterm mp3 mpeg mpi mplayer mppe-mppc musepack mysql mythtv nas ncurses nethack network nis nls nntp nptl nptlonly nvidia objc odbc offensive ogg oggvorbis opengl openntpd openssh oss pam pccts pcntl pcre pdflib perl php plugin png portaudio posix povray python qt quicktime radius rar readline real remote rss rtc rube ruby sasl sdl session sharedext silc simplexml slang slp sockets socks5 speedo speex spell sqlite sse ssl stats subtitles subversion svg symlink tcltk tcpd tetex theora threads tiff toolbar truetype truetype-fonts type1 type1-fonts underscores unicode usb v4l v4l2 vcd vda vhosts visualization vorbis win32codecs wma123 wmf xanim xface xine xinerama xinetd xml xml2 xmms xosd xpm xrandr xsl xv xvid xvmc yahoo zeroconf zlib zvbi linguas_RU userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS
It seems that since some files in kde 3.4.1 and 3.4.2 install in the major.minor version directory, it's causing some file collisions. Description above.
The problem is that one file was moved from the kdeadmin module to the kdelibs module. Is there a standard solution for this kind of problems? I don't know any...
Maybe try unmerging KDE 3.4.1 before merging 3.4.2?
(In reply to comment #3) > Maybe try unmerging KDE 3.4.1 before merging 3.4.2? You can do this manually of course, but calling emerge from inside of an ebuild is not an option. (In reply to comment #2) > Is there a standard solution for this kind of problems? I don't know any... I don't think there is one, either. Once again this is something we need Portage support for, but compared to other desperately needed improvements, it's a minor issue, imho. A false alarm is better then none.
Only known solution is to make each package block the other. This is the same problem of ftpbase and the reason why we still have pam-login split off of shadow.
I wouldn't call blocking a solution - it's more a ugly workaround. Also it's too time consuming to enable collision-protect when you play a lot with ebuilds, imho. I don't know about you or the other ones of the KDE herd, but I don't use it... We could do regularly/incremental tree build, store the CONTENT files and diff them. "Conflicting" files could be detected automatically this way. What would be needed is a smart conflict resolution system, that cares for trivial issues like this one by creating the relevant information for portage and files bug reports otherwise. But that's probably beyond the scope of what we can accomplish. ;)
I came across this bug while searching for something else. Blocking, is in fact, the correct solution. One of the goals is to have portage automatically handle blockers when upgrading, which would essentially make the order: unmerge kdeadmin-3.4.1 > update to kdelibs-3.4.2 > emerge kdeadmin-3.4.2. Blocking with the current portage is probably a bit heavy-handed for something like this though. Best would probably be to do a has_version of kdeadmin in kdelibs' pkg_setup and die if collision-protect is enabled.
Seeing that an ugly workaround is needed in any case, I propose adding this one to kdelibs: pkg_setup() { # Workaround collision with <=kdeadmin-3.4.1 (bug #100968). rm -f "${ROOT}${KDEDIR}/share/mimelnk/application/x-debian-package.desktop" } This would work and be transparent to the user, no interaction would be required.
No complaints... I added the fix in comment #8 in kdelibs-3.4.3.