[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

make-kpkg strangeness



Hello.

I am trying to package AVFS,
http://www.inf.bme.hu/~mszeredi/avfs/avfs.html
one part of this software is a kernel module. I've tried to create
avfs-redir-module-source package, which should install
/usr/src/modules/avfs-redir-module.tar.gz. While trying to make it
working I've got into trouble in the very start, make-kpkg fails just
after entering /usr/src/modules/avfs-redir-module-<version>, the
output is in the attachment.

0:02 pts/19 sacha@pale:/usr/src/linux-2.4.12 9> make-kpkg modules
for module in /usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05.05 ; do       
                 \
          if test -d  $module; then                                \
    (cd $module;                                           \
              if ./debian/rules KVERS="2.4.12" KSRC="/usr/src/linux-2.4.12" \
                             KMAINT="Alexander Kotelnikov" KEMAIL="sacha@debian.
org"      \
                             KDREV="3coda" kdist; then          \
                  echo "Module $module processed fine";            \
              else                                                  \
                   echo "Module $module failed.";                  \
                   echo "Hit return to Continue?";                  \
           read ans;                                        \
              fi;                                                   \
     );                                                     \
  fi;                                                       \
        done
make[1]: Entering directory `/usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05
.05'
make[1]: *** No rule to make target `kdist'.  Stop.
make[1]: Leaving directory `/usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05.
05'
Module /usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05.05 failed.
Hit return to Continue?

0:02 pts/19 sacha@pale:/usr/src/linux-2.4.12 10> make-kpkg modules_image
for module in /usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05.05 ; do       
                 \
          if test -d  $module; then                                \
    (cd $module;                                           \
              if ./debian/rules KVERS="2.4.12" KSRC="/usr/src/linux-2.4.12" \
                             KMAINT="Alexander Kotelnikov" KEMAIL="sacha@debian.
org"      \
                             KDREV="3coda" kdist_image; then    \
                  echo "Module $module processed fine";            \
              else                                                  \
                   echo "Module $module failed.";                  \
                   echo "Hit return to Continue";                   \
           read ans;                                        \
              fi;                                                   \
     );                                                     \
  fi;                                                       \
        done
make[1]: Entering directory `/usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05
.05'
/usr/bin/make -w debian/rules binary-modules
make[2]: Entering directory `/usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05
.05'
make[2]: Nothing to be done for `debian/rules'.
make[2]: *** No rule to make target `binary-modules'.  Stop.
make[2]: Leaving directory `/usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05.
05'
make[1]: *** [kdist_image] Error 2
make[1]: Leaving directory `/usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05.
05'
Module /usr/src/modules/avfs-redir-module-0.9.3-cvs2002.05.05 failed.
Hit return to Continue
Another question is about 
/usr/share/kernel-package/{sample.module.control,sample.module.rules}
These samples are for package which is built in /usr/src/modules or
for initial source package, the part of which kernel module sources
are? I thought the latter but I am a bit confused with binary-source
target, where the installed -source package is built. From the other
hand, sample.module.control contains to many entries for just module
package.

Hope somebody can clarify this to me,
thanks in advance,
-- 
Alexander Kotelnikov
Saint-Petersburg, Russia

Reply to: