I've re-read through all the above messages and I think I guess what has happened:
"it didn't complain about an already applied patch when i patch the sources i got using an apt-get source. So i guess the patch wasn't applied, right?"
The patch is in a delta-patch in 'debian/patches' so is only applied when the system is built; so yes, ...the patch would have appiled quite cleanly! :-)
"ok i managed to compile the thing, did a make and make install, restarted X, and still no dri. I don't get it!"
Ahhh a make install. Normally when building debian packages we'd use something like:
$ debuild -uc -us -i
$ sudo dpkg -i ../mesa-*.deb
What's happened here is that the *packaging system* thinks you've got version 'mesa...ubuntu7' installed, but the copy that you compiled yourself and installed has overwritten the files in that package---except that the compiled copy wasn't built with the debian Makefile and settings so the module load directory is defaulting to the previous one.
I've re-read through all the above messages and I think I guess what has happened:
"it didn't complain about an already applied patch when i patch the sources i got using an apt-get source. So i guess the patch wasn't applied, right?"
The patch is in a delta-patch in 'debian/patches' so is only applied when the system is built; so yes, ...the patch would have appiled quite cleanly! :-)
"ok i managed to compile the thing, did a make and make install, restarted X, and still no dri. I don't get it!"
Ahhh a make install. Normally when building debian packages we'd use something like:
$ debuild -uc -us -i
$ sudo dpkg -i ../mesa-*.deb
What's happened here is that the *packaging system* thinks you've got version 'mesa...ubuntu7' installed, but the copy that you compiled yourself and installed has overwritten the files in that package---except that the compiled copy wasn't built with the debian Makefile and settings so the module load directory is defaulting to the previous one.
Can you do:
$ sudo apt-get --reinstall install libgl1-mesa libgl1-mesa-dri mesa-common-dev
and hopefully that should tidy things up for you...