Package: module-init-tools
Version: 3.4-1
Severity: important

Using depmod to generate offline modules.dep files with -b seems to be
terminally broken as it is stripping too much of the base path and
thus producing a modules.dep file with the wrong path which does not
work when used in the final situation.

I use 
/sbin/depmod -ae -b $(TARGETSKEL) -F 
$(BUILDDIR)/kernel/linux-$(KERNVER)/System.map $(KERNVER)-pxa270
to generate a modules.dep file in $(TARGETSKEL)/lib/modules/$(KERNVER)-pxa270/

In actual use this expands to:
/sbin/depmod -aev -b 
../../build/initrd/buildroot/target/generic/target_skeleton_balloon3_installer
      -F ../../build/kernel/linux-2.6.29.1/System.map 2.6.29.1-pxa270

And that works just fine on module-init-tools 3.4-1 (lenny), producing
a file with entries like this:
/lib/modules/2.6.29.1-pxa270/kernel/drivers/usb/gadget/g_ether.ko: 
/lib/modules/2.6.29.1-pxa270/kernel/dr$
/lib/modules/2.6.29.1-pxa270/kernel/drivers/usb/gadget/g_serial.ko: 
/lib/modules/2.6.29.1-pxa270/kernel /$

However if run with module-init-tools 3.11-1 or 3.12~pre2-3 then the
modules.dep files ends up with entries like this:
kernel/drivers/usb/gadget/g_ether.ko: kernel/drivers/usb/gadget/pxa27x_udc.ko   
                        
kernel/drivers/usb/gadget/g_serial.ko: kernel/drivers/usb/gadget/pxa27x_udc.ko

which causes modprobe to try and load modules using 'insmod 
drivers/usb/gadget/g_ether.ko'
(it starts after the first '/', I guess?), which of course is wrong.

Using asbsolute paths in the depmod command, rather than relative paths, 
produces exactly the
same results.

This bug is pretty serious for offline depmod file generation.

I'll take a look at the code shortly and see if I can add a patch to
this report.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (700, 'stable'), (300, 'unstable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages module-init-tools depends on:
ii  libc6                         2.10.2-2   GNU C Library: Shared libraries
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip

module-init-tools recommends no packages.

module-init-tools suggests no packages.

-- no debconf information
Wookey
-- 
Principal hats:  iEndian - Balloonboard - Toby Churchill - Emdebian
http://wookware.org/



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

Reply via email to