Package: module-assistant
Version: 0.7.5
Severity: wishlist
Tags: patch

Hi blade,

inserting a module built against a "fakesource" tree taints the kernel
here, because the __versions section is empty and so the symbol version
for struct_module is not available.

This could be remedied by copying the Module.symvers file included in
kernel-headers to the fakesource tree. Makefile.modpost will use it if
available to look up the correct versions for the symbols used.

I've been doing this for some time manually with the loop-AES binary
module packages and think it would make sense for m-a. Find attached
a small patch to this effect.

cheers,
Max

--- module-assistant.orig       2005-03-02 18:45:44.553183376 +0100
+++ module-assistant    2005-03-02 18:46:18.559013704 +0100
@@ -850,6 +850,7 @@
    $knmbr=~s/^([\d\.]+)(.*)/$1/;
    my $extra=$2;
    my $confile="/boot/config-$kvers";
+   my $symverfile="$usrc/$kheaders-$kvers/Module.symvers";
    print "Experimental kernel source recreating method...\nGetting 
source...\n";
    return 0 if withecho "apt-get install $ksource-$knmbr";
    if(! -f $confile) {
@@ -865,6 +866,9 @@
    print "Installing to final location and configuring, please wait...\n";
    withecho "mv", "$tmpdir/$ksource-$knmbr", "$usrc/$ksource-$kvers";
    withecho "cp", $confile, "$usrc/$ksource-$kvers/.config";
+   if (-f $symverfile) {
+      withecho "cp", $symverfile, "$usrc/$ksource-$kvers/Module.symvers";
+   }
    rmdir $tmpdir;
    if($extra) {
       open(mk,"<$usrc/$ksource-$kvers/Makefile");

Reply via email to