[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#252720: linux-kernel-headers: Please also install the i386 linux kernel headers on amd64

Package: linux-kernel-headers
Version: 2.5.999-test7-bk-15
Severity: normal
Tags: patch

To build a 32bit glibc on the amd64 architecture with 'gcc -m32' 
the i386 linux kernel headers will be necessary.

Please apply the following patch which installs the i386 
linux kernel headers in /usr/lib/i386-linux/asm on amd64.

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-06-04 14:23:44.583272777 +0200
+++ ./debian/rules	2004-06-04 14:23:33.774328659 +0200
@@ -43,6 +43,14 @@
 	cp autoconfs/autoconf-$(DEB_HOST_ARCH).h $(includedir)/linux/autoconf.h
+ifeq ($(kernel_arch),x86_64)
+	# install the i386 kernel headers in /usr/include/i386-linux
+	mkdir -p $(includedir)/i386-linux
+	ln -s ../linux $(includedir)/i386-linux
+	ln -s ../asm-generic $(includedir)/i386-linux
+	cp -a include/asm-i386 $(includedir)/i386-linux/asm
 ifeq ($(kernel_arch),arm)
 	# ARM needs some extra symlinks.
 	rm -f $(includedir)/asm/proc

-- System Information:
Debian Release: testing/unstable
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.6-1-k8-smp

-- no debconf information

Reply to: