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

Bug 286015

Summary: x11-libs/libdrm-poulsbo collision with x11-libs/libdrm
Product: Gentoo Linux Reporter: Mathieu Rochette <mathieu>
Component: New packagesAssignee: Patrick Lauer <patrick>
Status: RESOLVED OBSOLETE    
Severity: normal CC: zmedico
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
environement

Description Mathieu Rochette 2009-09-22 19:44:07 UTC
when emerging xf86-video-psb, x11-libs/libdrm-poulsbo is a dependancy and fail to emerge because it has collisions with files of libdrm:



Reproducible: Always

Steps to Reproduce:
1. emerge -1 x11-libs/libdrm-poulsbo




 * checking 22 files for package collisions
 * 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 x11-libs/libdrm-poulsbo-2.3.0_p9 NOT merged
 * 
 * Detected file collision(s):
 * 
 *      /usr/include/xf86drmMode.h
 *      /usr/include/xf86drm.h
 *      /usr/include/drm/mga_drm.h
 *      /usr/include/drm/drm.h
 *      /usr/include/drm/radeon_drm.h
 *      /usr/include/drm/via_drm.h
 *      /usr/include/drm/via_3d_reg.h
 *      /usr/include/drm/r300_reg.h
 *      /usr/include/drm/drm_sarea.h
 *      /usr/include/drm/sis_drm.h
 *      /usr/include/drm/nouveau_drm.h
 *      /usr/include/drm/i915_drm.h
 *      /usr/include/drm/mach64_drm.h
 *      /usr/include/drm/savage_drm.h
 *      /usr/include/drm/r128_drm.h
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * x11-libs/libdrm-2.4.13
 *      /usr/include/drm/drm.h
 * x11-libs/libdrm-2.4.13
 *      /usr/include/drm/drm.h
 *      /usr/include/drm/drm_sarea.h
 *      /usr/include/drm/i915_drm.h
 *      /usr/include/drm/mach64_drm.h
 *      /usr/include/drm/mga_drm.h
 *      /usr/include/drm/nouveau_drm.h
 *      /usr/include/drm/r128_drm.h
 *      /usr/include/drm/r300_reg.h
 *      /usr/include/drm/radeon_drm.h
 *      /usr/include/drm/savage_drm.h
 *      /usr/include/drm/sis_drm.h
 *      /usr/include/drm/via_3d_reg.h
 *      /usr/include/drm/via_drm.h
 *      /usr/include/xf86drm.h
 *      /usr/include/xf86drmMode.h
 * 
 * Package 'x11-libs/libdrm-poulsbo-2.3.0_p9' NOT merged due to file
 * collisions. If necessary, refer to your elog messages for the whole
 * content of the above message.
Comment 1 Mathieu Rochette 2009-09-22 19:46:18 UTC
Created attachment 204967 [details]
build.log
Comment 2 Mathieu Rochette 2009-09-22 19:46:44 UTC
Created attachment 204969 [details]
environement
Comment 3 Mathieu Rochette 2009-09-22 19:50:53 UTC
I've seen in another bug, that problem, apparently, libdrm-poulsbo should be installed in /usr/lib/psb but it dosn not because of automake.
the suggested solution was to add  'WANT_AUTOMAKE=1.9' in the ebuild, but that line is already present.
Comment 4 Zac Medico gentoo-dev 2009-09-28 04:09:36 UTC
Same problem here. I don't know why we don't get the same paths shown in bug 274184, comment #22. However, I get those paths if I patch the ebuild like this:

--- libdrm-poulsbo-2.3.0_p9.ebuild.orig
+++ libdrm-poulsbo-2.3.0_p9.ebuild
@@ -35,7 +35,7 @@
 }
 
 src_configure() {
-	econf --libdir=/usr/lib/psb
+	econf --libdir=/usr/lib/psb -includedir=/usr/include/psb
 }
 
 src_install() {
Comment 5 Mathieu Rochette 2009-09-28 12:39:45 UTC
(In reply to comment #4)
> Same problem here. I don't know why we don't get the same paths shown in bug
> 274184, comment #22. However, I get those paths if I patch the ebuild like
> this:
> 
> --- libdrm-poulsbo-2.3.0_p9.ebuild.orig
> +++ libdrm-poulsbo-2.3.0_p9.ebuild
> @@ -35,7 +35,7 @@
>  }
> 
>  src_configure() {
> -       econf --libdir=/usr/lib/psb
> +       econf --libdir=/usr/lib/psb -includedir=/usr/include/psb
>  }
> 
>  src_install() {
> 
This fix works ! thanx you.
psb-kmod don't but this is another bug ;)