Le November 8, 2008 07:56:42 pm Manoj Srivastava, vous avez écrit :
> On Sat, Nov 08 2008, Filipus Klutiero wrote:
> > Le November 7, 2008 10:36:40 am Manoj Srivastava, vous avez écrit :
> >> Hi,
> >>
> >>         You need to setup the modules path to a place you have write
> >>  permission to, and set the MODULE_LOC env variable accordingly.
> >>  Or else, file a bug on the module package for not using the ROOR_CMD
> >>  env variable to become root.
> >
> > I have no idea about ROOT_CMD. As I wrote, this happens for several
> > modules (and even all those I tried), including nvidia (default), alsa
> > and rt2500.
> >
> > Reopen, but feel free to reassign/clone to the appropriate packages if
> > you're sure this isn't a kernel-package bug. If you do so for one
> > package (say alsa-source 1.0.17.dfsg-4), I should be good to handle
> > the rest.
>
>         If you ask me, frankly, this is pilot error.
Does that mean me or the driver?
>         You are supposed to 
>  unpack the module sources somewhere, and then set MODULE_LOC to tell
>  make-kpkg where you did so. The assumption is that you unpackged them
>  in a directory where they can be built.
>
>         kernel-package  does not take responsibility if the modules are
>  in a partition mounted read-only, or in a directory where you have no
>  permissions to write to them.

Right, and this is the bug. Making such an assumption is incorrect, the 
instructions need to avoid that.

Note that the instructions still fail even if one honors this assumption:

$ LANG=C MODULE_LOC=/home/chealer/modules make-kpkg modules_image
exec debian/rules  DEBIAN_REVISION=2.6.26-10.00.Custom  modules_image
for module in /home/chealer/modules/rt2500 ; do                       \
          if test -d  $module; then                                \
            (cd $module;                                          \
              if ./debian/rules KVERS="2.6.26" 
KSRC="/home/chealer/sources/linux-source-2.6.26" \
                             KMAINT="Unknown Kernel Package Maintainer" 
KEMAIL="[EMAIL PROTECTED]"      \
                             
KPKG_DEST_DIR="/home/chealer/sources/linux-source-2.6.26/.."       \
                             KPKG_MAINTAINER="Unknown Kernel Package 
Maintainer"        \
                             KPKG_EXTRAV_ARG=""        \
                             ARCH="i386"         \
                             KDREV="2.6.26-10.00.Custom" 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 `/home/chealer/modules/rt2500'
/usr/bin/make -w -f debian/rules kdist_clean kdist_config binary-modules
make[2]: Entering directory `/home/chealer/modules/rt2500'
touch config.mk \
                && /usr/bin/make clean
make[3]: Entering directory `/home/chealer/modules/rt2500'
make[3]: Leaving directory `/home/chealer/modules/rt2500'
dh_clean
for templ in ; do \
    cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.26/g'` ; \
  done
for templ in `ls debian/*.modules.in` ; do \
    test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in} 
${templ%.modules.in}.backup 2>/dev/null || true; \
    sed -e 's/##KVERS##/2.6.26/g ;s/#KVERS#/2.6.26/g ; s/_KVERS_/2.6.26/g ; 
s/##KDREV##/2.6.26-10.00.Custom/g ; s/#KDREV#/2.6.26-10.00.Custom/g ; 
s/_KDREV_/2.6.26-10.00.Custom/g  ' < $templ > ${templ%.modules.in}; \
  done
# Install module
dh_installdirs lib/modules/2.6.26/kernel/drivers/net/wireless
# Build modules
/usr/bin/make KERNDIR=/home/chealer/sources/linux-source-2.6.26 PATCHLEVEL=6
make[3]: Entering directory `/home/chealer/modules/rt2500'
make[4]: Entering directory `/home/chealer/sources/linux-source-2.6.26'
  CC [M]  /home/chealer/modules/rt2500/rtmp_main.o
  CC [M]  /home/chealer/modules/rt2500/mlme.o
  CC [M]  /home/chealer/modules/rt2500/connect.o
  CC [M]  /home/chealer/modules/rt2500/sync.o
  CC [M]  /home/chealer/modules/rt2500/assoc.o
  CC [M]  /home/chealer/modules/rt2500/auth.o
  CC [M]  /home/chealer/modules/rt2500/auth_rsp.o
  CC [M]  /home/chealer/modules/rt2500/rtmp_data.o
  CC [M]  /home/chealer/modules/rt2500/rtmp_init.o
  CC [M]  /home/chealer/modules/rt2500/sanity.o
  CC [M]  /home/chealer/modules/rt2500/rtmp_wep.o
  CC [M]  /home/chealer/modules/rt2500/wpa.o
  CC [M]  /home/chealer/modules/rt2500/md5.o
  CC [M]  /home/chealer/modules/rt2500/rtmp_tkip.o
  CC [M]  /home/chealer/modules/rt2500/rtmp_info.o
  CC [M]  /home/chealer/modules/rt2500/rt2x00debug.o
  CC [M]  /home/chealer/modules/rt2500/eeprom.o
  LD [M]  /home/chealer/modules/rt2500/rt2500.o
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /home/chealer/modules/rt2500/rt2500.mod.o
  LD [M]  /home/chealer/modules/rt2500/rt2500.ko
make[4]: Leaving directory `/home/chealer/sources/linux-source-2.6.26'
make[3]: Leaving directory `/home/chealer/modules/rt2500'
install -m 0644 
rt2500.ko 
/home/chealer/modules/rt2500/debian/rt2500-modules-2.6.26/lib/modules/2.6.26/kernel/drivers/net/wireless
dh_testdir
dh_testroot
dh_testroot: You must run this as root (or use fakeroot).
make[2]: *** [binary_modules] Error 1
make[2]: Leaving directory `/home/chealer/modules/rt2500'
make[1]: *** [kdist_build] Error 2
make[1]: Leaving directory `/home/chealer/modules/rt2500'
Module /home/chealer/modules/rt2500 failed.
Hit return to Continue



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to