Bug#323702: linux-headers-2.6.12-1: recursive symlinks prevent module-assistant from building modules

2005-08-18 Thread Bastian Blank
On Wed, Aug 17, 2005 at 08:08:52PM -0400, Paul Kuliniewicz wrote:
 linux-headers-2.6.12-1 ships recursive symlinks in
 /usr/src/linux-headers-2.6.12-1/arch/i386, as shown:

I don't know where you get this package, but the version from my mirror
don't contains this symlinks:

| $ dpkg-deb -c 
/var/cache/apt/archives/linux-headers-2.6.12-1_2.6.12-5_i386.deb | grep -- -
| lrwxrwxrwx root/root 0 2005-08-17 01:43:59 
./usr/src/linux-headers-2.6.12-1/include/asm - asm-i386
| $ md5sum /var/cache/apt/archives/linux-headers-2.6.12-1_2.6.12-5_i386.deb
| 88f29ecefb3ff4c079ba336a68c4d5fa  
/var/cache/apt/archives/linux-headers-2.6.12-1_2.6.12-5_i386.deb

 [EMAIL PROTECTED]:/usr/src/linux-headers-2.6.12-1-686/arch/i386$ ls -l
 total 56
 lrwxrwxrwx  1 root root   49 Aug 17 18:47 Kconfig - 
 ../../../linux-headers-2.6.12-1/arch/i386/Kconfig
 lrwxrwxrwx  1 root root   55 Aug 17 18:47 Kconfig.debug - 
 ../../../linux-headers-2.6.12-1/arch/i386/Kconfig.debug
 lrwxrwxrwx  1 root root   50 Aug 17 18:47 Makefile - 
 ../../../linux-headers-2.6.12-1/arch/i386/Makefile
 drwxr-xr-x  3 root root 4096 Aug 17 18:47 boot
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 crypto
 drwxr-xr-x  5 root root 4096 Aug 17 18:47 kernel
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 lib
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-default
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-es7000
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-generic
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-visws
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-voyager
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 math-emu
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 mm
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 oprofile
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 pci
 drwxr-xr-x  2 root root 4096 Aug 17 18:47 power

This directory listing don't match the package:
| $ dpkg-deb -c 
/var/cache/apt/archives/linux-headers-2.6.12-1-686_2.6.12-5_i386.deb|grep 
arch/i386
| drwxr-xr-x root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/
| drwxr-xr-x root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/kernel/
| -rw-r--r-- root/root  2224 2005-08-16 23:16:47 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/kernel/asm-offsets.s
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/kernel/Makefile - 
../../../../linux-headers-2.6.12-1/arch/i386/kernel/Makefile
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/Kconfig - 
../../../linux-headers-2.6.12-1/arch/i386/Kconfig
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/Kconfig.debug - 
../../../linux-headers-2.6.12-1/arch/i386/Kconfig.debug
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/Makefile - 
../../../linux-headers-2.6.12-1/arch/i386/Makefile
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/boot - 
../../../linux-headers-2.6.12-1/arch/i386/boot
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/crypto - 
../../../linux-headers-2.6.12-1/arch/i386/crypto
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/lib - 
../../../linux-headers-2.6.12-1/arch/i386/lib
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/mach-default - 
../../../linux-headers-2.6.12-1/arch/i386/mach-default
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/mach-es7000 - 
../../../linux-headers-2.6.12-1/arch/i386/mach-es7000
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/mach-generic - 
../../../linux-headers-2.6.12-1/arch/i386/mach-generic
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/mach-visws - 
../../../linux-headers-2.6.12-1/arch/i386/mach-visws
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/mach-voyager - 
../../../linux-headers-2.6.12-1/arch/i386/mach-voyager
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/math-emu - 
../../../linux-headers-2.6.12-1/arch/i386/math-emu
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/mm - 
../../../linux-headers-2.6.12-1/arch/i386/mm
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/oprofile - 
../../../linux-headers-2.6.12-1/arch/i386/oprofile
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 
./usr/src/linux-headers-2.6.12-1-686/arch/i386/pci - 
../../../linux-headers-2.6.12-1/arch/i386/pci
| lrwxrwxrwx root/root 0 2005-08-17 01:51:55 

Bug#323702: linux-headers-2.6.12-1: recursive symlinks prevent module-assistant from building modules

2005-08-18 Thread Paul Kuliniewicz
On Thu, Aug 18, 2005 at 07:55:12AM +0200, Bastian Blank wrote:
 On Wed, Aug 17, 2005 at 08:08:52PM -0400, Paul Kuliniewicz wrote:
  linux-headers-2.6.12-1 ships recursive symlinks in
  /usr/src/linux-headers-2.6.12-1/arch/i386, as shown:
 
 I don't know where you get this package, but the version from my mirror
 don't contains this symlinks:

Hmm.  I purged the packages, deleted the cached .debs, and re-installed,
and now everything looks to be as it should be.  I'm not sure what had
happened there.  I think I had version -2 of the .deb and then upgraded
it to -5, but I don't remember for sure.

Everything seems to be working now, so I guess you can close this bug.


signature.asc
Description: Digital signature


Bug#323702: linux-headers-2.6.12-1: recursive symlinks prevent module-assistant from building modules

2005-08-17 Thread Paul Kuliniewicz
Package: linux-headers-2.6.12-1
Version: 2.6.12-5
Severity: normal

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

linux-headers-2.6.12-1 ships recursive symlinks in
/usr/src/linux-headers-2.6.12-1/arch/i386, as shown:

[EMAIL PROTECTED]:/usr/src/linux-headers-2.6.12-1/arch/i386$ ls -l
total 56
lrwxrwxrwx  1 root root   49 Aug 17 18:47 Kconfig - 
../../../linux-headers-2.6.12-1/arch/i386/Kconfig
lrwxrwxrwx  1 root root   55 Aug 17 18:47 Kconfig.debug - 
../../../linux-headers-2.6.12-1/arch/i386/Kconfig.debug
lrwxrwxrwx  1 root root   50 Aug 17 18:47 Makefile - 
../../../linux-headers-2.6.12-1/arch/i386/Makefile
drwxr-xr-x  3 root root 4096 Aug 17 18:47 boot
drwxr-xr-x  2 root root 4096 Aug 17 18:47 crypto
drwxr-xr-x  5 root root 4096 Aug 17 18:47 kernel
drwxr-xr-x  2 root root 4096 Aug 17 18:47 lib
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-default
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-es7000
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-generic
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-visws
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-voyager
drwxr-xr-x  2 root root 4096 Aug 17 18:47 math-emu
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mm
drwxr-xr-x  2 root root 4096 Aug 17 18:47 oprofile
drwxr-xr-x  2 root root 4096 Aug 17 18:47 pci
drwxr-xr-x  2 root root 4096 Aug 17 18:47 power

linux-headers-2.6.12-1-686 has symlinks to these recursive symlinks:

[EMAIL PROTECTED]:/usr/src/linux-headers-2.6.12-1-686/arch/i386$ ls -l
total 56
lrwxrwxrwx  1 root root   49 Aug 17 18:47 Kconfig - 
../../../linux-headers-2.6.12-1/arch/i386/Kconfig
lrwxrwxrwx  1 root root   55 Aug 17 18:47 Kconfig.debug - 
../../../linux-headers-2.6.12-1/arch/i386/Kconfig.debug
lrwxrwxrwx  1 root root   50 Aug 17 18:47 Makefile - 
../../../linux-headers-2.6.12-1/arch/i386/Makefile
drwxr-xr-x  3 root root 4096 Aug 17 18:47 boot
drwxr-xr-x  2 root root 4096 Aug 17 18:47 crypto
drwxr-xr-x  5 root root 4096 Aug 17 18:47 kernel
drwxr-xr-x  2 root root 4096 Aug 17 18:47 lib
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-default
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-es7000
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-generic
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-visws
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mach-voyager
drwxr-xr-x  2 root root 4096 Aug 17 18:47 math-emu
drwxr-xr-x  2 root root 4096 Aug 17 18:47 mm
drwxr-xr-x  2 root root 4096 Aug 17 18:47 oprofile
drwxr-xr-x  2 root root 4096 Aug 17 18:47 pci
drwxr-xr-x  2 root root 4096 Aug 17 18:47 power

When module-assistant tries to build a module for this kernel, the build
fails because it tries to dereference this recursive symlink.  Here's a
build log from trying to build ieee80211-source;

dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
rm -rf modules
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/ieee80211'
make[1]: Leaving directory `/usr/src/modules/ieee80211'
/usr/bin/make -C driver clean
make[1]: Entering directory `/usr/src/modules/ieee80211/driver'
rm -f *.mod.c *.mod *.o *.ko .*.cmd .*.flags *.lst *~ .#*
rm -rf /usr/src/modules/ieee80211/driver/tmp .tmp_versions
for file in *.{c,h} net/*.h; do \
if [ -e $file ]; then \
sed -i -e s:\ *$::g -e s:\t*$::g $file; \
fi \
done
make[1]: Leaving directory `/usr/src/modules/ieee80211/driver'
dh_clean
/usr/bin/make  -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/ieee80211'
dh_testdir
dh_testroot
rm -f build-arch-stamp build-indep-stamp configure-stamp
rm -rf modules
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/ieee80211'
make[2]: *** No rule to make target `clean'.  Stop.
make[2]: Leaving directory `/usr/src/modules/ieee80211'
make[1]: [clean] Error 2 (ignored)
/usr/bin/make -C driver clean
make[2]: Entering directory `/usr/src/modules/ieee80211/driver'
rm -f *.mod.c *.mod *.o *.ko .*.cmd .*.flags *.lst *~ .#*
rm -rf /usr/src/modules/ieee80211/driver/tmp .tmp_versions
for file in *.{c,h} net/*.h; do \
if [ -e $file ]; then \
sed -i -e s:\ *$::g -e s:\t*$::g $file; \
fi \
done
make[2]: Leaving directory `/usr/src/modules/ieee80211/driver'
dh_clean
/usr/bin/gcc-4.0
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.12-1-686/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.12-1-686/g ;s/#KVERS#/2.6.12-1-686/g ; 
s/_KVERS_/2.6.12-1-686/g ; s/##KDREV##/2.6.12-5/g ; s/#KDREV#/2.6.12-5/g ; 
s/_KDREV_/2.6.12-5/g'  $templ  ${templ%.modules.in}; \
  done
export DH_OPTIONS='-pieee80211-modules-2.6.12-1-686'
dh_testdir
dh_testroot
dh_clean -k
# Build the module
/usr/bin/make -C driver KSRC=/usr/src/linux KVER=2.6.12-1-686
make[2]: Entering directory `/usr/src/modules/ieee80211/driver'
/usr/bin/make -C /usr/src/linux