lm-sensors ebuild overwrites a file belonging to another package. Reproducible: Always Steps to Reproduce: 1. set FEATURES="collision-protect" in /etc/make.conf 2. emerge lm-sensors Actual Results: >>> Completed installing into /var/tmp/portage/lm-sensors-2.8.7/image/ * checking 146 files for package collisions existing file /usr/include/linux/i2c-dev.h is not owned by this package * spend 0.0780439376831 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 sys-apps/lm-sensors-2.8.7 NOT merged Expected Results: Successful install emerge info Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4-udev-preempt i686) ================================================================= System uname: 2.6.9-gentoo-r4-udev-preempt i686 AMD Athlon(tm) XP 2200+ Gentoo Base System version 1.6.6 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache collision-protect distlocks makecheck sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org 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="3dnow acpi apache2 apm arts avi berkdb bitmap-fonts crypt cups encode f77 fbcon firebird foomaticdb fortran gd gd-external gdbm gif gpm gtk2 imap imlib innodb java jpeg junit libg++ libwww mad maildir mikmod mmx motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png pnp postgres python quicktime readline sasl sdl slang snmp socks5 spell sse ssl svga tcpd tiff truetype unicode x86 xml xml2 xmms xv zlib"
Stick the following on line 117 of the 2.8.7 ebuild and tell me if that helps: [ -e ${ROOT}/usr/include/linux/i2c-dev.h -a -e ${D}/usr/include/linux/i2c-dev.h ] && rm ${D}/usr/include/linux/i2c-dev.h
Well, I
Well, I´m afraid I cannot do that unless you tell me which packege the file /usr/include/linux/i2c-dev.h belongs to, so that I can re-emerge that package. I already have the file overwritten by lm-sensors, since I disabled collision-protect to be able to emerge this package.
Should belong to linux-headers or linux26-headers depending on which you use.
OK. Yes, that line fixed the problem.
Ok, fixed in CVS. The change should reach the mirrors within an hour, please reopen this bug if you still have any issues. Thanks!