Re: [PATCH] xlibmesa-drm-src: divert original kernel modules out of the way

2003-11-08 Thread Flavio Stanchina

Flavio Stanchina wrote:

--- xlibmesa-drm.orig/debian/control.m4 2003-07-31 10:24:21.0 +0200
+++ xlibmesa-drm/debian/control.m4  2003-11-06 22:00:46.0 +0100
@@ -1,3 +1,4 @@
+Source: xlibmesa-drm-module-KVERS
 Section: graphics
 Priority: extra
 Maintainer: KMAINT KEMAIL


P.S. I had to add this Source: line to the control file, otherwise the 
package wouldn't build. I'm not sure if it's really needed or if it's me 
who was doing something wrong.


--
Ciao,
Flavio Stanchina
Trento - Italy




Re: [PATCH] xlibmesa-drm-src: divert original kernel modules out of the way

2003-11-08 Thread Michel Dänzer
On Sat, 2003-11-08 at 18:07, Flavio Stanchina wrote:
 I'm experimenting with XFree86 4.3.0-0pre1v4 and I installed the 
 xlibmesa-drm-src package to get OpenGL working on my Radeon. There's one 
 problem though: dpkg complains loudly because the new DRM modules would 
 overwrite the old kernel modules, so either one rebuilds his kernel 
 without old DRM modules or he has to --force installation.

xlibmesa-drm-src no longer exists, the last version was 4.3.0-0pre1v1.
That being said...

 This patch solves the problem by diverting the old modules out of the 
 way, to a directory called /lib/modules/$(KVERS)_diversions. It works 
 for me, but it's really just a quick hack: for example, I preprocess the 
 preinst and postrm scripts with sed instead of m4 because I know nothing 
 about m4 and I couldn't get it to work. I hope the idea is fine though.

I'm afraid not, because the list of modules varies between
architectures. My current drm-trunk-module-src generates dpkg-divert
calls only for the actually available modules.


-- 
Earthling Michel Dänzer  | Debian (powerpc), X and DRI developer
Software libre enthusiast|   http://svcs.affero.net/rm.php?r=daenzer