Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 580714

Summary: app-eselect/eselect-opencl-1.1.0-r4: fails to emerge because of file collisions
Product: Gentoo Linux Reporter: Louis Sautier (sbraz) <sbraz>
Component: Current packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED OBSOLETE    
Severity: normal CC: fakih18716, stig_nielsen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 651660    
Attachments: build.log

Description Louis Sautier (sbraz) gentoo-dev 2016-04-21 10:32:46 UTC
Created attachment 431432 [details]
build.log

All those colliding files are symlinks.
# file /usr/include/CL/cl_gl_ext.h
/usr/include/CL/cl_gl_ext.h: symbolic link to ../../lib64/OpenCL/global/include/CL-1.1/cl_gl_ext.h
# qfile /usr/lib64/OpenCL/global/include/CL-1.1/cl_gl_ext.h
app-eselect/eselect-opencl (/usr/lib64/OpenCL/global/include/CL-1.1/cl_gl_ext.h)

I guess that those symlinks were installed by eselect-opencl at some point but portage somehow lost track of them?
Comment 1 Samuel Bernardo 2018-05-07 22:30:47 UTC
Same happened here using profile default/linux/amd64/17.0

 * This package will overwrite one or more files that may belong to other
 * packages (see list below).
 *
 * package app-eselect/eselect-opencl-1.1.0-r4 NOT merged
 *
 * Detected file collision(s):
 *
 *      /usr/include/CL/opencl.h
 *      /usr/include/CL/cl_platform.h
 *      /usr/include/CL/cl.h
 *      /usr/include/CL/cl_ext.h
 *      /usr/include/CL/cl_gl.h
 *      /usr/include/CL/cl_gl_ext.h


Searching for package responsible for installation I found the following result:

 * Searching for /usr/include/CL/opencl.h ... 
app-eselect/eselect-opencl-1.1.0-r1 (/usr/lib64/OpenCL/global/include/CL/opencl.h)

So just like Louis Sautier mentioned, it seems that emerge somehow are not removing old symlink files from the previous version of the package being upgraded.
Comment 2 Samuel Bernardo 2018-05-07 22:38:38 UTC
I just run emerge -Cav eselect-opencl I verified that it leaves the symlinks created.

So this confirms that those symlinks don't belong to app-eselect/eselect-opencl-1.1.0-r1.

I just installed the new package release ignoring collisions.
Comment 3 anonymous 2018-05-13 09:31:20 UTC
I also encountered the same error. There might be another issue that describes this issue more accurately.