I've opened this bug as instructed in https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=193979#c3 The spec changes to pass RPM_OPT_FLAGS in to the Mesa build via OPT_FLAGS aren't sufficient -- the linux, linux-dri, and linux-dri-ppc Makefile fragments clobber the OPT_FLAGS variable in a fashion similar to the already-fixed ARCH_FLAGS. The OPT_FLAGS assignments in those files needs to be changed to a conditional assignment or an appending assignment, depending on what you think it should do. (Probably a conditional assignment, the PPC config selects a specific -mtune option and I'm not sure how gcc will react to multiple conflicting -mtune options.)
Created attachment 131914 [details] fix OPT_FLAGS usage stick this in as Patch2, or just combine it with Patch0 and Patch1 into a new all-devouring superpatch
Looks right to me. Applied to -13.fc6 along with a fix to the problem you mentioned in IRC (before getting timed out): <DrNick> woo! /usr/lib64/dri got the wrong perms * Wed Jul 05 2006 Mike A. Harris <mharris> 6.5-13.fc6 - Added mesa-6.5-fix-opt-flags-bug197640.patch as 2nd attempt to fix OPT_FLAGS for (#197640). - Ensure that redhat-mesa-driver-install creates $DRIMODULE_DESTDIR with mode 0755.
Unfortunately, due to bug #195980 I am unable to build the newly fixed mesa package, however I will build it once releng has rectified the problem with the buildsystem.
Built this a long time ago. Current is mesa-6.5-13.1.fc6