Package: module-assistant
Version: 0.11.2
Severity: important

--- Please enter the report below this line. ---
With the last kernel from git (build with kernel-package 12.032),
module-assistant don't find the headers and try to download the
linux-headers-2.6.33-rc4-next package (which doesn't exist).

The problem is that the new kernel no longer put the utsrelease.h file
in include/linux/ but in include/generated/ now.
The way to fix this is to add the new location in initksrc().

A possible patch for that is attached.

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.33-rc4-next

Debian Release: Debian Squeeze
  990 testing         apt.home.lan
  500 unstable        apt.home.lan
    1 experimental    apt.home.lan

--- Package information. ---
Depends                    (Version) | Installed
====================================-+-===========
perl                                 | 5.10.1-8
libtext-wrapi18n-perl                | 0.06-7
bzip2                                | 1.0.5-3


Recommends                  (Version) | Installed
=====================================-+-===========
liblocale-gettext-perl                | 1.05-6


Suggests             (Version) | Installed
==============================-+-===========
build-essential                | 11.4
dialog                         | 1.1-20080819-1
 OR whiptail                   | 0.52.10-5




--- module-assistant.orig	2010-01-23 15:05:17.882949049 +0100
+++ module-assistant	2010-01-23 14:58:23.552935757 +0100
@@ -1281,6 +1281,7 @@
       if(-d $_) {
           print "PROBEKDIR: $_\n" if $opt_debug;
          open($versionh, "<$_/include/linux/utsrelease.h")||
+	     open($versionh, "<$_/include/generated/utsrelease.h")||
 	     open($versionh, "<$_/include/linux/version.h");
          <$versionh> =~ /"(.+)"/;
          if(close($versionh)) {
@@ -1319,6 +1320,7 @@
             else {
                if(-e "$poskdir/include/linux/version.h") {
                   open($versionh, "<$poskdir/include/linux/utsrelease.h") ||
+                  open($versionh, "<$poskdir/include/generated/utsrelease.h") ||
                   open($versionh, "<$poskdir/include/linux/version.h");
                   <$versionh> =~ /"(.+)"/;
                   push(@seenkvers, "$1\n");

Reply via email to