Package: module-assistant
Version: 0.10.11
Tags: patch
Followup-For: Bug #437466

Hey,

I didn't really get your second option, so excuse me if my proposal is
similary.

I see a fourth option to fix this: Do what the manpage says.

 --kernel-dir
              The kernel source directories to be used for builds. You can 
specify multiple directories with multiple options or  separated  by  commas  or
              line separators (e.g using -k "`echo /usr/src/kernel-headers-*`" 
).  The kernel versions detected in this directories are automatically added
              to the list of target kernel versions (see --kvers-list for 
details).

The manpage promises to add the kernel versions found in the source dirs
to the --kvers-list option, but module-assistant doesn't.

The attached patch does exactly this.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-rc3-gd928769a-dirty (PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages module-assistant depends on:
ii  libtext-wrapi18n-perl         0.06-5     internationalized substitute of Te
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 

Versions of packages module-assistant recommends:
ii  liblocale-gettext-perl        1.05-1     Using libc functions for internati

-- no debconf information
--- /usr/bin/module-assistant.orig      2007-12-30 14:08:01.000000000 +0100
+++ /usr/bin/module-assistant   2007-12-30 14:12:25.000000000 +0100
@@ -1286,6 +1286,7 @@
          if(close($versionh)) {
             $kernelvers{$_}=$1;
             $kerneldirs{$1}=$_;
+            push(@opt_kverslist, $1);
          }
          elsif(-r "$_/Makefile") {
             printmsg sprintf(gettext("Warning, %s seems to contain 
unconfigured kernel source (see manpage for details)!"), $_) if !$opt_quiet;

Reply via email to