Your message dated Wed, 1 Jun 2011 01:55:14 +0200
with message-id <[email protected]>
and subject line Re: Bug#578902: module-init-tools: depmod -b incorrectly 
stripping base path in modules.dep file
has caused the Debian Bug report #578902,
regarding module-init-tools: depmod -b incorrectly stripping base path in 
modules.dep file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
578902: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=578902
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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/



--- End Message ---
--- Begin Message ---
Closing, since the upstream maintainer is not interested in changing
this behavior.

-- 
ciao,
Marco

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to