Attaching patch for ebuild for correctly enabling DRI for gentoo-freebsd, and patch that fixes a little error that shows up on a Makefile when enabling DRI on freebsd.
Created attachment 96451 [details, diff] mesa-6.5-r4_ebuild.patch Patch for the ebuild.
Created attachment 96452 [details, diff] 6.5-redirect-fix.patch Little fix for the output redirect error.
I'm adding Inclusion because this needs looking at, not necessarily because the patches should be added as-is.
Created attachment 96647 [details, diff] 6.5-fbsd-configs-fix.patch Fixes compilation without motif useflag enabled.
Created attachment 96724 [details, diff] mesa_ebuild.patch Fixes to the fix.
Created attachment 96726 [details, diff] 6.5-freebsd-dri.patch A more correct way of making freebsd-dri config file to use our flags (just snatched from freebsd config to freebsd-dri)
Looks nice and simple to me. Donnie, you disagree with any of the changes here?
We discussed it on IRC the other day, I'll need to take another look.
These patches look reasonable to me and are probably worth sending upstream as well.
Patches sent. (freedesktop bug 8344)
Patches have been applied upstream.
Created attachment 97439 [details, diff] 6.5.1-freebsd-dri.patch Updated patch for mesa-6.5.1.
Created attachment 97468 [details, diff] 6.5.1-freebsd-dri.patch Additional last minute fixes.
Created attachment 97481 [details, diff] mesa-6.5.1-r1.ebuild.patch These are the required changes to the ebuild. The removal of -DHAVE_POSIX_MEMALIGN from freebsd-dri is required because this function is not implemented in the FreeBSD 6.1 libc. As far as i've checked it's only implemented on 7.0-CURRENT. Regarding the libdrm issue discussed on irc, i mailed Brian Paul and he said he commited already that fix as well.
Applied to cvs.
*** Bug 148351 has been marked as a duplicate of this bug. ***