Bug#323702: linux-headers-2.6.12-1: recursive symlinks prevent module-assistant from building modules
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:
paul@kryten:/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:
paul@kryten:/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 M=/usr/src/modules/ieee80211/driver MODVERDIR=/usr/src/modules/ieee80211/driver modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.12-1-686'
Makefile:530: /usr/src/linux-headers-2.6.12-1-686/arch/i386/Makefile: Too many levels of symbolic links
make[3]: stat:/usr/src/linux-headers-2.6.12-1-686/arch/i386/Makefile: Too many levels of symbolic links
make[3]: *** No rule to make target `/usr/src/linux-headers-2.6.12-1-686/arch/i386/Makefile'. Stop.
make[3]: Leaving directory `/usr/src/linux-headers-2.6.12-1-686'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/modules/ieee80211/driver'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/ieee80211'
make: *** [kdist_build] Error 2
- -- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.9-1-686
Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages linux-headers-2.6.12-1 depends on:
ii coreutils [fileutils] 5.2.1-2 The GNU core utilities
linux-headers-2.6.12-1 recommends no packages.
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
iD8DBQFDA9GUZOE8w8ubnoERAnbkAKCDYq4OzUhz/S3UAanW2Kr5wV0tHQCfXV42
Fba9acFTgBSzXcWbfEjIFvA=
=72ct
-----END PGP SIGNATURE-----
Reply to: