Bug#464407: rt73-source: compile fails if using make-kpkg

Lee Garrett lee-in-berlin at web.de
Wed Feb 6 17:49:10 UTC 2008


Package: rt73-source
Version: 1:1.0.3.6-cvs20071123-dfsg1-3
Severity: normal

Hi there,

using make-kpkg to build a the rt73 modules doesn't work. See below for details.
Note that I'm trying to compile the modules for a kernel different than the
running one. Building other out-of-tree modules works with this method, so I
don't there is a PEBKAC error here. :)

My guess is that debian/rules ignores the variables KSRC and KVERS, but I
didn't dig too far on that.

Feel free to ask me any questions or hint me in the right direction.

Kind regards,
Lee Garrett


randall at batou:~/My_Stuff/kernel-sources/saitou-24$ fakeroot make-kpkg 
modules-image --added-modules rt73
exec debian/rules  DEBIAN_REVISION=2008.02.06a  KPKG_SELECTED_MODULES="rt73" 
modules-image
for module in /usr/src/modules/rt73 ; do                       \
           if test -d  $module; then                                \
             (cd $module;                                          \
               if ./debian/rules KVERS="2.6.24-toi-rc5-saitou" 
KSRC="/home/randall/My_Stuff/kernel-sources/saitou-24" \
                              KMAINT="Unknown Kernel Package Maintainer"
KEMAIL="unknown at unconfigured.in.etc.kernel-pkg.conf"      \
 
KPKG_DEST_DIR="/home/randall/My_Stuff/kernel-sources/saitou-24/.."       \
                              KPKG_MAINTAINER="Unknown Kernel Package 
Maintainer"        \
                              KPKG_EXTRAV_ARG=""        \
                              ARCH="i386"         \
                              KDREV="2008.02.06a" kdist_image; then    \
                   echo "Module $module processed fine";            \
               else                                                  \
                    echo "Module $module failed.";                  \
                    if [ "X" != "X" ]; then      \
                       echo "Perhaps $module does not understand --rootcmd?";  \
                       echo "If you see messages that indicate that it is not"; \
                       echo "in fact being built as root, please file a bug ";  \
                       echo "against $module.";                     \
                    fi;                                              \
                    echo "Hit return to Continue";                   \
                  read ans;                                        \
               fi;                                                   \
              );                                                    \
           else                                                      \
                echo "Module $module does not exist";               \
                echo "Hit return to Continue?";                      \
           fi;                                                       \
         done
make[1]: Entering directory `/usr/src/modules/rt73'
CC=${CC:-gcc}
make -C /lib/modules/UNKNOWN/build SUBDIRS=$(pwd) modules
make: Entering an unknown directory
make: *** /lib/modules/UNKNOWN/build: No such file or directory. Stop.
make: Leaving an unknown directory
make[1]: *** [debian/build-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/rt73'
Module /usr/src/modules/rt73 failed.
Hit return to Continue





More information about the Pkg-ralink-maintainers mailing list