From d6b4ce9f05655a85a204376480a23d209ba65044 Mon Sep 17 00:00:00 2001 From: Tim Yamin Date: Wed, 24 Dec 2003 12:10:13 +0000 Subject: Version bumped, and added a patch to make some applications which didn't compile to compile. --- sys-kernel/linux-headers/ChangeLog | 11 +- sys-kernel/linux-headers/Manifest | 6 +- .../linux-headers/files/digest-linux-headers-2.6.0 | 1 + .../files/digest-linux-headers-2.6.0_beta11 | 1 - .../files/linux-headers-2.6.0-appCompat.patch | 230 +++++++++++++++++++++ .../linux-headers/linux-headers-2.6.0.ebuild | 130 ++++++++++++ .../linux-headers-2.6.0_beta11.ebuild | 132 ------------ 7 files changed, 374 insertions(+), 137 deletions(-) create mode 100644 sys-kernel/linux-headers/files/digest-linux-headers-2.6.0 delete mode 100644 sys-kernel/linux-headers/files/digest-linux-headers-2.6.0_beta11 create mode 100644 sys-kernel/linux-headers/files/linux-headers-2.6.0-appCompat.patch create mode 100644 sys-kernel/linux-headers/linux-headers-2.6.0.ebuild delete mode 100644 sys-kernel/linux-headers/linux-headers-2.6.0_beta11.ebuild (limited to 'sys-kernel') diff --git a/sys-kernel/linux-headers/ChangeLog b/sys-kernel/linux-headers/ChangeLog index abca80ab43d9..ee4907b2b9f5 100644 --- a/sys-kernel/linux-headers/ChangeLog +++ b/sys-kernel/linux-headers/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for sys-kernel/linux-headers # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/ChangeLog,v 1.36 2003/12/11 21:15:24 plasmaroo Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/ChangeLog,v 1.37 2003/12/24 12:09:59 plasmaroo Exp $ + +*linux-headers-2.6.0 (24 Dec 2003) + + 24 Dec 2003; linux-headers-2.6.0.ebuild, + linux-headers-2.6.0_beta11.ebuild, + files/linux-headers-2.6.0-appCompat.patch: + Version bump - this version has been patched to support some applications + which did not compile on 2.6. Please report any bugs to http://bugs.gentoo.org + or plasmaroo@gentoo.org 11 Dec 2003; files/linux-headers-strict-ansi-fix.patch: diff --git a/sys-kernel/linux-headers/Manifest b/sys-kernel/linux-headers/Manifest index 5b2b7013b558..bac2243a7e29 100644 --- a/sys-kernel/linux-headers/Manifest +++ b/sys-kernel/linux-headers/Manifest @@ -1,4 +1,4 @@ -MD5 ff6655cf7f0f9757a1c1293ee39ca830 ChangeLog 8617 +MD5 5edd7e3ab141ba8d286c0360a37c814a ChangeLog 8617 MD5 d6b0bfcaa29c53a2a4c2dc25217b29f6 linux-headers-2.2.20.ebuild 3921 MD5 c6a2e4e73e3abeb46863357f5ba192ed linux-headers-2.4.17-r5.ebuild 4251 MD5 d1e1405c1644214541150d85c3471d62 linux-headers-2.4.23.ebuild 3396 @@ -9,7 +9,7 @@ MD5 5c17aece95a57713fa9ea390d5f48647 linux-headers-2.4.21-r1.ebuild 3888 MD5 22bc91e645c0b6309611f1a4d12e0412 linux-headers-2.4.16-r1.ebuild 5049 MD5 732a9212e5a370154579a03d5838dfcb linux-headers-2.4.22.ebuild 3863 MD5 0da559c76fd274ce325b786e101ab03a linux-headers-2.4.19-r1.ebuild 4800 -MD5 fdd2c6abd0dd3c3ff33d635c15f6d170 linux-headers-2.6.0.ebuild 3791 +MD5 f8f274321fbb00ab80f7fc85994f553e linux-headers-2.6.0.ebuild 3788 MD5 e92a42061f868f9d2be14edaad669e63 linux-headers-2.4.18.ebuild 3173 MD5 40b1a0224290f63ee44609d113442479 linux-headers-2.4.21.ebuild 3594 MD5 5b8b9d5469f190029664ede84a51c68b linux-headers-2.4.16-r3.ebuild 6100 @@ -24,7 +24,7 @@ MD5 6ef3887ee4018c06c18e8726767189c7 files/digest-linux-headers-2.4.22 67 MD5 b1f0fb91c6c3d60ac2f1f1d6893e145a files/digest-linux-headers-2.4.18-r2 67 MD5 9854e47afccae85e887bcb970fc68890 files/digest-linux-headers-2.4.21-r1 67 MD5 0d7bb77bc61a34b15bef6328c9279cb2 files/digest-linux-headers-2.4.19-r1 67 -MD5 55c15636c670aabd4eca632d04f7e788 files/linux-headers-2.6.0-appCompat.patch 7044 +MD5 4a847d42d42c9f278e6b70151fca335a files/linux-headers-2.6.0-appCompat.patch 7572 MD5 b1f0fb91c6c3d60ac2f1f1d6893e145a files/digest-linux-headers-2.4.18 67 MD5 9854e47afccae85e887bcb970fc68890 files/digest-linux-headers-2.4.21 67 MD5 eb4cae8b5b8fddbb2c950fdb70fbedb3 files/digest-linux-headers-2.4.17-r5 145 diff --git a/sys-kernel/linux-headers/files/digest-linux-headers-2.6.0 b/sys-kernel/linux-headers/files/digest-linux-headers-2.6.0 new file mode 100644 index 000000000000..7c2469b8a392 --- /dev/null +++ b/sys-kernel/linux-headers/files/digest-linux-headers-2.6.0 @@ -0,0 +1 @@ +MD5 c9e73737002521a347d2e6617beb56cc linux-2.6.0.tar.bz2 33255278 diff --git a/sys-kernel/linux-headers/files/digest-linux-headers-2.6.0_beta11 b/sys-kernel/linux-headers/files/digest-linux-headers-2.6.0_beta11 deleted file mode 100644 index 373464497a51..000000000000 --- a/sys-kernel/linux-headers/files/digest-linux-headers-2.6.0_beta11 +++ /dev/null @@ -1 +0,0 @@ -MD5 06ba5a7eeb924036633a7b33689b2c4f linux-2.6.0-test11.tar.bz2 33243689 diff --git a/sys-kernel/linux-headers/files/linux-headers-2.6.0-appCompat.patch b/sys-kernel/linux-headers/files/linux-headers-2.6.0-appCompat.patch new file mode 100644 index 000000000000..faf7d4b3c2d6 --- /dev/null +++ b/sys-kernel/linux-headers/files/linux-headers-2.6.0-appCompat.patch @@ -0,0 +1,230 @@ +diff -Naur linux-2.6.0/include/linux/blockgroup_lock.h linux-2.6.0/include/linux.plasmaroo/blockgroup_lock.h +--- linux-2.6.0/include/linux/blockgroup_lock.h 2003-12-18 02:58:16.000000000 +0000 ++++ linux-2.6.0/include/linux.plasmaroo/blockgroup_lock.h 2003-12-24 11:54:58.000000000 +0000 +@@ -5,7 +5,7 @@ + */ + + #include +-#include ++#include + #include + + #ifdef CONFIG_SMP +diff -Naur linux-2.6.0/include/linux/ext2_fs_sb.h linux-2.6.0/include/linux.plasmaroo/ext2_fs_sb.h +--- linux-2.6.0/include/linux/ext2_fs_sb.h 2003-12-18 02:59:35.000000000 +0000 ++++ linux-2.6.0/include/linux.plasmaroo/ext2_fs_sb.h 2003-12-24 11:55:01.000000000 +0000 +@@ -18,6 +18,7 @@ + + #include + #include ++#include + + /* + * second extended-fs super-block data in memory +diff -Naur linux-2.6.0/include/linux/fb.h linux-2.6.0/include/linux.plasmaroo/fb.h +--- linux-2.6.0/include/linux/fb.h 2003-12-18 02:58:39.000000000 +0000 ++++ linux-2.6.0/include/linux.plasmaroo/fb.h 2003-12-24 11:55:01.000000000 +0000 +@@ -2,9 +2,7 @@ + #define _LINUX_FB_H + + #include +-#include + #include +-#include + + /* Definitions of frame buffers */ + +@@ -331,6 +329,8 @@ + #define FB_PIXMAP_IO 4 /* memory is iomapped */ + #define FB_PIXMAP_SYNC 256 /* set if GPU can DMA */ + ++#ifdef __KERNEL__ ++ + struct fb_pixmap { + __u8 *addr; /* pointer to memory */ + __u32 size; /* size of buffer in bytes */ +@@ -344,7 +344,9 @@ + spinlock_t lock; /* spinlock */ + atomic_t count; + }; +-#ifdef __KERNEL__ ++ ++#include ++#include + + #include + #include +diff -Naur linux-2.6.0/include/linux/fs.h linux-2.6.0/include/linux.plasmaroo/fs.h +--- linux-2.6.0/include/linux/fs.h 2003-12-18 02:58:29.000000000 +0000 ++++ linux-2.6.0/include/linux.plasmaroo/fs.h 2003-12-24 11:54:58.000000000 +0000 +@@ -17,7 +17,15 @@ + #include + #include + #include +-#include ++ ++/* This should fix any ``sys-fs'' items getting spinlocks. ++ $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/files/linux-headers-2.6.0-appCompat.patch,v 1.1 2003/12/24 12:09:59 plasmaroo Exp $ ++*/ ++ ++#ifdef __KERNEL__ ++ #include ++#endif ++ + #include + #include + +diff -Naur linux-2.6.0/include/linux/isdn.h linux-2.6.0/include/linux.plasmaroo/isdn.h +--- linux-2.6.0/include/linux/isdn.h 2003-12-18 02:59:58.000000000 +0000 ++++ linux-2.6.0/include/linux.plasmaroo/isdn.h 2003-12-24 11:55:00.000000000 +0000 +@@ -14,7 +14,13 @@ + #define __ISDN_H__ + + #include +-#include ++ ++/* This should sort out ``ligtop'' from getting spinlocks. ++ $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/files/linux-headers-2.6.0-appCompat.patch,v 1.1 2003/12/24 12:09:59 plasmaroo Exp $ ++*/ ++#ifdef __KERNEL__ ++ #include ++#endif + + #ifdef CONFIG_COBALT_MICRO_SERVER + /* Save memory */ +diff -Naur linux-2.6.0/include/linux/msdos_fs.h linux-2.6.0/include/linux.plasmaroo/msdos_fs.h +--- linux-2.6.0/include/linux/msdos_fs.h 2003-12-18 02:59:18.000000000 +0000 ++++ linux-2.6.0/include/linux.plasmaroo/msdos_fs.h 2003-12-24 11:55:00.000000000 +0000 +@@ -4,7 +4,14 @@ + /* + * The MS-DOS filesystem constants/structures + */ +-#include ++ ++/* This should sort out any problems with ``dosfstools''. ++ $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/files/linux-headers-2.6.0-appCompat.patch,v 1.1 2003/12/24 12:09:59 plasmaroo Exp $ ++*/ ++#ifdef __KERNEL ++ #include ++#endif ++ + #include + #include + +diff -Naur linux-2.6.0/include/linux/percpu_counter.h linux-2.6.0/include/linux.plasmaroo/percpu_counter.h +--- linux-2.6.0/include/linux/percpu_counter.h 2003-12-18 02:58:56.000000000 +0000 ++++ linux-2.6.0/include/linux.plasmaroo/percpu_counter.h 2003-12-24 11:55:00.000000000 +0000 +@@ -5,10 +5,13 @@ + */ + + #include +-#include +-#include ++#include + #include + ++/* was removed as it brought in spinlocks and other ++ bad things - no functionality is lost as all the necessary ++ SMP data is still available. */ ++ + #ifdef CONFIG_SMP + + struct __percpu_counter { +diff -Naur linux-2.6.0/include/linux/redefine_types.h linux-2.6.0/include/linux.plasmaroo/redefine_types.h +--- linux-2.6.0/include/linux/redefine_types.h 1970-01-01 01:00:00.000000000 +0100 ++++ linux-2.6.0/include/linux.plasmaroo/redefine_types.h 2003-12-24 11:55:01.000000000 +0000 +@@ -0,0 +1,46 @@ ++/* This is a short macro to redefine any types which weren't included ++ further down the tree as __KERNEL__ might have been unset. ++ ++ $> find $path -name types.h -maxdepth 2 | xargs cat | grep \#ifndef | grep \ ++ TYPES | sed 's/ifndef/undef/' ++ ++ plasmaroo@gentoo.org - This is an "as-is" Public Domain Item with ++ no warranty of any kind */ ++ ++#ifndef __KERNEL__ ++ #define __KERNEL__ ++ #define __KERNEL_WAS_DEFINED__ ++#endif ++ ++#undef __ASSEMBLY__ ++#undef _ALPHA_TYPES_H ++#undef __ASM_ARM_TYPES_H ++#undef _ASM_TYPES_H ++#undef __UM_TYPES_H ++#undef _LINUX_TYPES_H ++#undef __BIT_TYPES_DEFINED__ ++#undef _ASM_IA64_TYPES_H ++#undef _S390_TYPES_H ++#undef _PPC_TYPES_H ++#undef __ASM_SH_TYPES_H ++#undef _SPARC64_TYPES_H ++#undef _ASM_TYPES_H ++#undef _SPARC_TYPES_H ++#undef _LINUX_RXRPC_TYPES_H ++#undef _PARISC_TYPES_H ++#undef __ASM_ARM_TYPES_H ++#undef _X86_64_TYPES_H ++#undef _ALPHA_TYPES_H ++#undef _M68K_TYPES_H ++#undef __V850_TYPES_H__ ++#undef _ETRAX_TYPES_H ++#undef _M68K_TYPES_H ++#undef _I386_TYPES_H ++#undef _H8300_TYPES_H ++#undef _PPC64_TYPES_H ++ ++#include ++ ++#ifdef __KERNEL_WAS_DEFINED__ ++ #undef __KERNEL__ ++#endif +diff -Naur linux-2.6.0/include/linux/spinlock_wrapper.h linux-2.6.0/include/linux.plasmaroo/spinlock_wrapper.h +--- linux-2.6.0/include/linux/spinlock_wrapper.h 1970-01-01 01:00:00.000000000 +0100 ++++ linux-2.6.0/include/linux.plasmaroo/spinlock_wrapper.h 2003-12-24 11:54:57.000000000 +0000 +@@ -0,0 +1,26 @@ ++#ifndef __LINUX_SPINLOCK_H_WRAPPER ++#define __LINUX_SPINLOCK_H_WRAPPER ++ ++#include ++ ++#define SPINLOCK_MAGIC 0x1D244B3C ++typedef struct { ++ unsigned long magic; ++ volatile unsigned long lock; ++ volatile unsigned int babble; ++ const char *module; ++ char *owner; ++ int oline; ++} spinlock_t; ++ ++#define spin_lock_init(x) \ ++ do { \ ++ (x)->magic = SPINLOCK_MAGIC; \ ++ (x)->lock = 0; \ ++ (x)->babble = 5; \ ++ (x)->module = __FILE__; \ ++ (x)->owner = NULL; \ ++ (x)->oline = 0; \ ++ } while (0) ++ ++#endif +diff -Naur linux-2.6.0/include/linux/videodev.h linux-2.6.0/include/linux.plasmaroo/videodev.h +--- linux-2.6.0/include/linux/videodev.h 2003-12-18 03:00:03.000000000 +0000 ++++ linux-2.6.0/include/linux.plasmaroo/videodev.h 2003-12-24 11:54:59.000000000 +0000 +@@ -3,7 +3,13 @@ + + #include + #include +-#include ++ ++/* Should sort out ``DirectFB''. ++ $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/files/linux-headers-2.6.0-appCompat.patch,v 1.1 2003/12/24 12:09:59 plasmaroo Exp $ ++*/ ++#ifdef __KERNEL__ ++ #include ++#endif + + #define HAVE_V4L2 1 + #include diff --git a/sys-kernel/linux-headers/linux-headers-2.6.0.ebuild b/sys-kernel/linux-headers/linux-headers-2.6.0.ebuild new file mode 100644 index 000000000000..4e55d4a163de --- /dev/null +++ b/sys-kernel/linux-headers/linux-headers-2.6.0.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.6.0.ebuild,v 1.1 2003/12/24 12:09:59 plasmaroo Exp $ + +ETYPE="headers" +inherit kernel + +OKV="${PV/_/-}" +KV="${OKV}" +S=${WORKDIR}/linux-${OKV} +EXTRAVERSION="" + +# What's in this kernel? + +# INCLUDED: +# 1) linux sources from kernel.org + +DESCRIPTION="Linux ${OKV} headers from kernel.org" +SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${OKV}.tar.bz2" +HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" +LICENSE="GPL-2" +SLOT="0" +PROVIDE="virtual/kernel virtual/os-headers" +KEYWORDS="-*" + +# Figure out what architecture we are, and set ARCH appropriately +ARCH="$(uname -m)" +ARCH=`echo $ARCH | sed -e s/[i].86/i386/ -e s/x86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/amd64/x86_64/` +[ "$ARCH" == "sparc" -a "$PROFILE_ARCH" == "sparc64" ] && ARCH=sparc64 + +# Archs which have their own separate header packages, add a check here +# and redirect the user to them +if [ "${ARCH}" = "mips" ] || [ "${ARCH}" = "mips64" ]; then + eerror "These headers are not appropriate for your architecture." + eerror "Please use sys-kernel/${ARCH/64/}-headers instead." + die +fi + +src_unpack() { + unpack ${A} + cd ${S} + + # Do Stuff + kernel_universal_unpack +} + +src_compile() { + + # Do normal src_compile stuff + kernel_src_compile + + # If this is sparc, then generate asm_offsets.h + if [ -n "`use sparc`" ]; then + make ARCH=${ARCH} dep || die "Failed to run 'make dep'" + fi + + # User-space patches for various things + epatch ${FILESDIR}/${P}-appCompat.patch + +} + +src_install() { + + # XXX Bug in Kernel.eclass requires this fix for now. + # XXX Remove when kernel.eclass is fixed. + # XXX 2.4 kernels symlink 'asm' to 'asm-${ARCH}' in include/ + # XXX 2.6 kernels don't, however. So we fix this here so kernel.eclass can find the include/asm folder + if [ "`KV_to_int ${OKV}`" -ge "`KV_to_int 2.6.0`" ]; then + ln -sf ${S}/include/asm-${ARCH} ${S}/include/asm + fi + + + # Do normal src_install stuff + kernel_src_install + + # If this is sparc, then we need to place asm_offsets.h in the proper location(s) + if [ -n "`use sparc`" ]; then + + # We don't need /usr/include/asm, generate-asm-sparc will take care of this + rm -Rf ${D}/usr/include/asm + + # We do need empty directories, though... + dodir /usr/include/asm + dodir /usr/include/asm-sparc + + # Copy asm-sparc + cp -ax ${S}/include/asm-sparc/* ${D}/usr/include/asm-sparc + + # If this is sparc64, then we need asm-sparc64 stuff too + if [ "${PROFILE_ARCH}" = "sparc64" ]; then + dodir /usr/include/asm-sparc64 + cp -ax ${S}/include/asm-sparc64/* ${D}/usr/include/asm-sparc64 + fi + + # Check if generate-asm-sparc exists + if [ -a "${FILESDIR}/generate-asm-sparc" ]; then + + # Just incase generate-asm-sparc isn't executable, make it so + if [ ! -x "${FILESDIR}/generate-asm-sparc" ]; then + chmod +x ${FILESDIR}/generate-asm-sparc + fi + + # Generate /usr/include/asm for sparc systems + ${FILESDIR}/generate-asm-sparc ${D}/usr/include + else + eerror "${FILESDIR}/generate-asm-sparc doesn't exist!" + die + fi + fi + + # If this is 2.5 or 2.6 headers, then we need asm-generic too + if [ "`KV_to_int ${OKV}`" -ge "`KV_to_int 2.6.0`" ]; then + dodir /usr/include/asm-generic + cp -ax ${S}/include/asm-generic/* ${D}/usr/include/asm-generic + fi +} + +pkg_preinst() { + kernel_pkg_preinst +} + +pkg_postinst() { + kernel_pkg_postinst + + einfo "Kernel headers are usually only used when recompiling glibc, as such, following the installation" + einfo "of newer headers, it is advised that you re-merge glibc as follows:" + einfo "emerge glibc" + einfo "Failure to do so will cause glibc to not make use of newer features present in the updated kernel" + einfo "headers." +} diff --git a/sys-kernel/linux-headers/linux-headers-2.6.0_beta11.ebuild b/sys-kernel/linux-headers/linux-headers-2.6.0_beta11.ebuild deleted file mode 100644 index 3e41b343128f..000000000000 --- a/sys-kernel/linux-headers/linux-headers-2.6.0_beta11.ebuild +++ /dev/null @@ -1,132 +0,0 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/linux-headers-2.6.0_beta11.ebuild,v 1.1 2003/12/08 03:50:27 kumba Exp $ - - -ETYPE="headers" -inherit kernel - -OKV="${PV/_/-}" -OKV="${OKV/beta/test}" -KV="${OKV}" -S=${WORKDIR}/linux-${OKV} -EXTRAVERSION="" - -# What's in this kernel? - -# INCLUDED: -# 1) linux sources from kernel.org - -DESCRIPTION="Linux ${OKV} headers from kernel.org" -SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${OKV}.tar.bz2" -HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/" -LICENSE="GPL-2" -SLOT="0" -PROVIDE="virtual/kernel virtual/os-headers" -KEYWORDS="-*" - - -# Figure out what architecture we are, and set ARCH appropriately -ARCH="$(uname -m)" -ARCH=`echo $ARCH | sed -e s/[i].86/i386/ -e s/x86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/ -e s/amd64/x86_64/` -[ "$ARCH" == "sparc" -a "$PROFILE_ARCH" == "sparc64" ] && ARCH=sparc64 - - -# Archs which have their own separate header packages, add a check here -# and redirect the user to them -if [ "${ARCH}" = "mips" ] || [ "${ARCH}" = "mips64" ]; then - eerror "These headers are not appropriate for your architecture." - eerror "Please use sys-kernel/${ARCH/64/}-headers instead." - die -fi - - - -src_unpack() { - unpack ${A} - cd ${S} - - # Do Stuff - kernel_universal_unpack -} - -src_compile() { - - # Do normal src_compile stuff - kernel_src_compile - - # If this is sparc, then generate asm_offsets.h - if [ -n "`use sparc`" ]; then - make ARCH=${ARCH} dep || die "Failed to run 'make dep'" - fi -} - -src_install() { - - # XXX Bug in Kernel.eclass requires this fix for now. - # XXX Remove when kernel.eclass is fixed. - # XXX 2.4 kernels symlink 'asm' to 'asm-${ARCH}' in include/ - # XXX 2.6 kernels don't, however. So we fix this here so kernel.eclass can find the include/asm folder - if [ "`KV_to_int ${OKV}`" -ge "`KV_to_int 2.6.0`" ]; then - ln -sf ${S}/include/asm-${ARCH} ${S}/include/asm - fi - - - # Do normal src_install stuff - kernel_src_install - - # If this is sparc, then we need to place asm_offsets.h in the proper location(s) - if [ -n "`use sparc`" ]; then - - # We don't need /usr/include/asm, generate-asm-sparc will take care of this - rm -Rf ${D}/usr/include/asm - - # We do need empty directories, though... - dodir /usr/include/asm - dodir /usr/include/asm-sparc - - # Copy asm-sparc - cp -ax ${S}/include/asm-sparc/* ${D}/usr/include/asm-sparc - - # If this is sparc64, then we need asm-sparc64 stuff too - if [ "${PROFILE_ARCH}" = "sparc64" ]; then - dodir /usr/include/asm-sparc64 - cp -ax ${S}/include/asm-sparc64/* ${D}/usr/include/asm-sparc64 - fi - - # Check if generate-asm-sparc exists - if [ -a "${FILESDIR}/generate-asm-sparc" ]; then - - # Just incase generate-asm-sparc isn't executable, make it so - if [ ! -x "${FILESDIR}/generate-asm-sparc" ]; then - chmod +x ${FILESDIR}/generate-asm-sparc - fi - - # Generate /usr/include/asm for sparc systems - ${FILESDIR}/generate-asm-sparc ${D}/usr/include - else - eerror "${FILESDIR}/generate-asm-sparc doesn't exist!" - die - fi - fi - - # If this is 2.5 or 2.6 headers, then we need asm-generic too - if [ "`KV_to_int ${OKV}`" -ge "`KV_to_int 2.6.0`" ]; then - dodir /usr/include/asm-generic - cp -ax ${S}/include/asm-generic/* ${D}/usr/include/asm-generic - fi -} - -pkg_preinst() { - kernel_pkg_preinst -} - -pkg_postinst() { - kernel_pkg_postinst - - einfo "Kernel headers are usually only used when recompiling glibc, as such, following the installation" - einfo "of newer headers, it is advised that you re-merge glibc as follows:" - einfo "emerge glibc" - einfo "Failure to do so will cause glibc to not make use of newer features present in the updated kernel" - einfo "headers." -} -- cgit v1.2.3-65-gdbad