emerging gentoo-sources failing due to file collisions
I've never experienced this phenomenon prior to gentoo-sources-2.6.31.-r6. I've always emerged gentoo-sources and they peacefully sat there and waited until I built the corresponding kernel later when I felt like it - if ever. With 2.6.31-r6, however, the emerge fails and consequently screws up 'emerge world' attempts. PITA.
Any recommended workarounds or fixes?
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;
I've pieced the following together from the console and elogv:
ERROR: preinst
This package will overwrite one or more files that may belong to other
packages (see list below). You can use a command such as `portageq
owners / <filename>` to identify the installed package that owns a*****************************
file. If portageq reports that only one package owns a file then do
NOT file a bug report. A bug report is only useful if it identifies at
least two or more packages that are known to install the same file(s).
If a collision occurs and you can not explain where the file came from
then you should simply ignore the collision since there is not enough
information to determine if a real problem exists. Please do NOT file
a bug report at http://bugs.gentoo.org unless you report exactly which
two packages install the same file(s). Once again, please do NOT file
a bug report unless you have completely understood the above message.
package sys-kernel/gentoo-sources-2.6.31-r6 NOT merged
****** /usr/src/linux-2.6.31-gentoo-r6/include/asm-generic/bitops/non-atomic.h
*
* Searching all installed packages for file collisions...
*
* Press Ctrl-C to Stop
*
* None of the installed packages claim the file(s).
*
* Package 'sys-kernel/gentoo-sources-2.6.31-r6' NOT merged due to file
* collisions. If necessary, refer to your elog messages for the whole
* content of the above message.
>>> Failed to install sys-kernel/gentoo-sources-2.6.31-r6, Log file:
emerging gentoo-sources failing due to file collisions
On 6 Jan, Walt Rarus wrote:
> I've never experienced this phenomenon prior to gentoo-sources-2.6.31.-r6.
> I've always emerged gentoo-sources and they peacefully sat there and waited
> until I built the corresponding kernel later when I felt like it - if ever.
> With 2.6.31-r6, however, the emerge fails and consequently screws up 'emerge
> world' attempts. PITA.
>
> Any recommended workarounds or fixes?
>
> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;
> I've pieced the following together from the console and elogv:
>
> ERROR: preinst
> This package will overwrite one or more files that may belong to other
> packages (see list below). You can use a command such as `portageq
> owners / <filename>` to identify the installed package that owns
> a
> file. If portageq reports that only one package owns a file then do
> NOT file a bug report. A bug report is only useful if it identifies at
> least two or more packages that are known to install the same file(s).
> If a collision occurs and you can not explain where the file came from
> then you should simply ignore the collision since there is not enough
> information to determine if a real problem exists. Please do NOT file
> a bug report at http://bugs.gentoo.org unless you report exactly which
> two packages install the same file(s). Once again, please do NOT file
> a bug report unless you have completely understood the above message.
>
> package sys-kernel/gentoo-sources-2.6.31-r6 NOT merged
>
> Detected file collision(s):
>
> * /usr/src/linux-2.6.31-gentoo-r6/Makefile
> * /usr/src/linux-2.6.31-gentoo-r6/Kbuild
> .... gazillion similar ellided
*** SNIP ***
So, please check where these files came from by
qfile /usr/src/linux-2.6.31-gentoo-r6/Makefile
Have you installed this kernel 'by hand' i.e. outside of portage?
Check by uname -a if you are not currently running linux-2.6.31-r6
If not, it's safe to rm -rf /usr/src/linux-2.6.31-gentoo-r6
and emerge it again.
Helmut.
--
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany