Package: linux-kernel-headers
Severity: wishlist
Tags: patch

The x86_64 linux kernel headers will be necessary to compile a 64bit version
of libc6 on i386 (see the discussion of Bug#274367).

The attached patch installs the x86_64 linux kernel headers on i386
in the '/usr/include/x86_64-linux' directory. This corresponds to the
amd64 case where the i386 linux kernel headers are installed in the
'/usr/include/i386-linux' directory.

Regards
Andreas Jochens

diff -urN ../tmp-orig/linux-kernel-headers-2.5.999-test7-bk/debian/rules ./debian/rules
--- ../tmp-orig/linux-kernel-headers-2.5.999-test7-bk/debian/rules      2004-10-04 
20:17:53.643434168 +0200
+++ ./debian/rules      2004-10-04 20:17:47.897307712 +0200
@@ -51,6 +51,14 @@
        cp -a include/asm-i386 $(includedir)/i386-linux/asm
 endif
 
+ifeq ($(kernel_arch),i386)
+       # install the x86_64 kernel headers in /usr/include/x86_64-linux
+       mkdir -p $(includedir)/x86_64-linux
+       ln -s ../linux $(includedir)/x86_64-linux
+       ln -s ../asm-generic $(includedir)/x86_64-linux
+       cp -a include/asm-x86_64 $(includedir)/x86_64-linux/asm
+endif
+
 ifeq ($(kernel_arch),arm)
        # ARM needs some extra symlinks.
        rm -f $(includedir)/asm/proc


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

Reply via email to