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

Bug 305595

Summary: x11-libs/libdrm-2.4.18 API breakage with nouveau in kernel 2.6.33 and media-libs/mesa-7.7
Product: Gentoo Linux Reporter: Chí-Thanh Christopher Nguyễn <chithanh>
Component: Current packagesAssignee: Chí-Thanh Christopher Nguyễn <chithanh>
Severity: normal CC: Adrian.Bassett, ag, alunduil, esigra, esqualante, patrizio.bassi, skrattaren, x11
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---

Description Chí-Thanh Christopher Nguyễn gentoo-dev 2010-02-17 16:24:36 UTC
This is to remind me about the recent API changes in libdrm_nouveau and investigate possible solutions.

Recent commits to mesa/drm and nouveau/linux-2.6 introduced incompatible changes which required an API bump from 0.0.15 to 0.0.16

Following APIs are supported:
=kernel-2.6.33_rc*: 0.0.15
<=libdrm-2.4.18_pre20100211: 0.0.15
>=libdrm-2.4.18: 0.0.16
<=nouveau-drm-20020212: 0.0.15
>=nouveau-drm-20020217: 0.0.16

This means that users of kernel 2.6.33 and libdrm 2.4.18 will not be able to use in-kernel DRM_NOUVEAU. Presently it does not look like the API changes will make it into the kernel before 2.6.33 release.
Comment 1 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-02-17 21:40:53 UTC
After discussion with nouveau developers on IRC, I decided to add a warning to x11-drivers/xf86-video-nouveau if a possible API incompatibility is detected.
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-03-07 10:43:27 UTC
This also affects mesa:

=media-libs/mesa-7.7*: 0.0.15
>=media-libs/mesa-7.8: 0.0.16
Comment 3 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-03-07 10:44:06 UTC
*** Bug 308179 has been marked as a duplicate of this bug. ***
Comment 4 Nikolaj Šujskij 2010-03-07 12:20:05 UTC
Probably it's worth to add blocking to ebuilds?
Take Mesa for example:

?nouveau ( ! >x11-libs/libdrm-2.4.18_pre20100211 )

or similar

And small elog msg to clarify issue, probably.
Comment 5 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-08-01 22:08:12 UTC
All packages now have versions stable which support the 0.0.16 API.