summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2004-04-22 17:11:01 +0000
committerJoshua Kinard <kumba@gentoo.org>2004-04-22 17:11:01 +0000
commitcecc2f3cb40daa384fc69d435f54672e92fd64c4 (patch)
treea5c33ba862b13f58ad77a65048a9a0b1471e7f65 /sys-kernel
parentchanging src_uri. (diff)
downloadhistorical-cecc2f3cb40daa384fc69d435f54672e92fd64c4.tar.gz
historical-cecc2f3cb40daa384fc69d435f54672e92fd64c4.tar.bz2
historical-cecc2f3cb40daa384fc69d435f54672e92fd64c4.zip
Version Bump.
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/linux-headers/ChangeLog7
-rw-r--r--sys-kernel/linux-headers/Manifest4
-rw-r--r--sys-kernel/linux-headers/files/digest-linux-headers-2.4.261
-rw-r--r--sys-kernel/linux-headers/linux-headers-2.4.26.ebuild124
4 files changed, 134 insertions, 2 deletions
diff --git a/sys-kernel/linux-headers/ChangeLog b/sys-kernel/linux-headers/ChangeLog
index 216ab91e3cd5..dc2b3df9464f 100644
--- a/sys-kernel/linux-headers/ChangeLog
+++ b/sys-kernel/linux-headers/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-kernel/linux-headers
# Copyright 2002-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/ChangeLog,v 1.69 2004/04/14 22:03:14 kumba Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/ChangeLog,v 1.70 2004/04/22 17:11:01 kumba Exp $
+
+*linux-headers-2.4.26 (22 Apr 2004)
+
+ 22 Apr 2004; Joshua Kinard <kumba@gentoo.org> +linux-headers-2.4.26.ebuild:
+ Version Bump.
14 Apr 2004; Joshua Kinard <kumba@gentoo.org>
linux-headers-2.4.21-r1.ebuild, linux-headers-2.4.21.ebuild,
diff --git a/sys-kernel/linux-headers/Manifest b/sys-kernel/linux-headers/Manifest
index 1793ad1fbc26..10308a94c98f 100644
--- a/sys-kernel/linux-headers/Manifest
+++ b/sys-kernel/linux-headers/Manifest
@@ -1,4 +1,5 @@
-MD5 76013b7a23521dc0aaadea3911cf8317 ChangeLog 16226
+MD5 5ee92f67e3a685637e84c6ef9acfca12 ChangeLog 16358
+MD5 56f27bfed019cea0d651c6a80795c3c0 linux-headers-2.4.26.ebuild 3406
MD5 3a3f44f6dbe62879c57b15a6a06f13c5 linux-headers-2.4.23.ebuild 3439
MD5 039460785234a6ab4fac673260b24fcb linux-headers-2.4.21-r1.ebuild 3912
MD5 3f9120b3eae2755600a708a0928ce8da linux-headers-2.4.21.ebuild 3698
@@ -13,6 +14,7 @@ MD5 8a6645e983461e0063420dea2d31d067 linux-headers-2.2.26.ebuild 2495
MD5 809c408ee5bef5f61c54835a26cecf30 linux-headers-2.0.40.ebuild 1790
MD5 e300a3e148a7dcc38a0e099494fb6cb3 files/bigendian-byteorder-fix.patch 1557
MD5 aa9ba92e8479bdb5f69b03b5c72be866 files/linux-headers-2.6.4-unistd-nptl-fix.patch 362
+MD5 2574d3f1b776f2df365737f456bfe435 files/digest-linux-headers-2.4.26 67
MD5 9854e47afccae85e887bcb970fc68890 files/digest-linux-headers-2.4.21 67
MD5 9854e47afccae85e887bcb970fc68890 files/digest-linux-headers-2.4.21-r1 67
MD5 6ef3887ee4018c06c18e8726767189c7 files/digest-linux-headers-2.4.22 67
diff --git a/sys-kernel/linux-headers/files/digest-linux-headers-2.4.26 b/sys-kernel/linux-headers/files/digest-linux-headers-2.4.26
new file mode 100644
index 000000000000..b3a3b9bad206
--- /dev/null
+++ b/sys-kernel/linux-headers/files/digest-linux-headers-2.4.26
@@ -0,0 +1 @@
+MD5 88d7aefa03c92739cb70298a0b486e2c linux-2.4.26.tar.bz2 30772389
diff --git a/sys-kernel/linux-headers/linux-headers-2.4.26.ebuild b/sys-kernel/linux-headers/linux-headers-2.4.26.ebuild
new file mode 100644
index 000000000000..087c93050e1d
--- /dev/null
+++ b/sys-kernel/linux-headers/linux-headers-2.4.26.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2004 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.4.26.ebuild,v 1.1 2004/04/22 17:11:01 kumba 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.4/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="-*"
+
+
+pkg_setup() {
+ # Figure out what architecture we are, and set ARCH appropriately
+ ARCH="$(uname -m)"
+ ARCH="$(echo ${ARCH} | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ -e s/arm.*/arm/ -e s/sa110/arm/)"
+ [ "$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
+ case "${ARCH}" in
+ mips|mips64|hppa)
+ eerror "These headers are not appropriate for your architecture."
+ eerror "Please use sys-kernel/${ARCH/64/}-headers instead."
+ die
+ ;;
+ esac
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ # This patch fixes an issue involving the use of gcc's -ansi flag and the __u64 datatype.
+ # It only patches asm-i386, so we only apply it if x86. Unknown if this is needed for other archs.
+ # Closes Bug #32246
+ if [ -n "`use x86`" ]; then
+ epatch ${FILESDIR}/${PN}-strict-ansi-fix.patch
+ fi
+
+
+ # 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() {
+
+ # 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 [ "${PROFILE_ARCH}" = "sparc64" ]; 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
+ dodir /usr/include/asm-sparc64
+
+ # Copy asm-sparc and asm-sparc64
+ cp -ax ${S}/include/asm-sparc/* ${D}/usr/include/asm-sparc
+ cp -ax ${S}/include/asm-sparc64/* ${D}/usr/include/asm-sparc64
+
+ # Check if generate-asm-sparc exists
+ if [ -a "${FILESDIR}/generate-asm-sparc" ]; then
+
+ # Copy generate-asm-sparc into the sandox
+ cp ${FILESDIR}/generate-asm-sparc ${WORKDIR}/generate-asm-sparc
+
+ # Just in case generate-asm-sparc isn't executable, make it so
+ if [ ! -x "${WORKDIR}/generate-asm-sparc" ]; then
+ chmod +x ${WORKDIR}/generate-asm-sparc
+ fi
+
+ # Generate /usr/include/asm for sparc systems
+ ${WORKDIR}/generate-asm-sparc ${D}/usr/include
+ else
+ eerror "${FILESDIR}/generate-asm-sparc doesn't exist!"
+ die
+ fi
+ 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."
+}