Comment 2 for bug 315252

Revision history for this message
Andy Whitcroft (apw) wrote :

Ok so there are actually two directories which are broken in the header packages:

    -lrwxrwxrwx root/root 0 2009-02-25 17:11 ./usr/src/linux-headers-2.6.28-8-generic/include/linux/linux -> ../../linux-headers-2.6.28-8/include/linux
    -lrwxrwxrwx root/root 0 2009-02-25 17:11 ./usr/src/linux-headers-2.6.28-8-generic/include/asm-x86/asm-x86 -> ../../linux-headers-2.6.28-8/include/asm-x86

These are caused by the sweep over the header to ensure we do have all the directories. This fails to check if we actually do, checking only if the file exists. Where the directory was already made due to a contained file, then we miss it and create the link triggering bogus links above.

Seems simple to fix. Patch attached. Will push to the kernel-team.