commit: 2b408f077fda8a6cd9f335afb3b523a7ec0610c8 Author: Benda Xu <heroxbd <AT> gentoo <DOT> org> AuthorDate: Mon Dec 21 04:32:07 2015 +0000 Commit: Benda XU <heroxbd <AT> gentoo <DOT> org> CommitDate: Mon Dec 21 04:32:07 2015 +0000 URL: https://gitweb.gentoo.org/dev/heroxbd.git/commit/?id=2b408f07
sys-kernel/linux-headers: trace some old kernels. sys-kernel/linux-headers/Manifest | 6 +++ .../files/linux-2.6.28.10-unifdef-getline.patch | 56 ++++++++++++++++++++++ .../linux-headers/linux-headers-2.6.19.2-r2.ebuild | 30 ++++++++++++ .../linux-headers/linux-headers-2.6.26.ebuild | 15 ++++++ 4 files changed, 107 insertions(+) diff --git a/sys-kernel/linux-headers/Manifest b/sys-kernel/linux-headers/Manifest new file mode 100644 index 0000000..f319be2 --- /dev/null +++ b/sys-kernel/linux-headers/Manifest @@ -0,0 +1,6 @@ +AUX linux-2.6.28.10-unifdef-getline.patch 1770 SHA256 5a3c4f030e401dc344dee977e3afa7c19d325520b1e0111d2cba6b992d0e764b SHA512 034a8d8296697385a021ddc6d7c7faf465cda49dad9da62ab7121ecd44948de7354bb196a1fc50f7c53a1ed3df40fe2c0759d94660c392590813bcf81de4b46d WHIRLPOOL e5fb904958bea5c8dd0c2fd3b52956ee7d5fde9369c658ef936b7642849677a9bf7492e095175ddc160e59a5040f70abb00d8ae2c99bf1adabf99175ff5e0087 +DIST gentoo-headers-2.6.19.2-4.tar.bz2 8552 SHA256 62f3c00a384551e4bcdb0795dc512780e631aa2df3e9bd284a16ab95a7afac78 SHA512 f22eaed6237f1ab1cecffe516c5e042623c79e1d536b0ed897ccf50893de26a20c8f3f56102ed3e7c3864ca730974785e6dbf1050c7802ed2a4daff251acae7e WHIRLPOOL 41daf208c274b6da8dab42d77c16a72302e9ddfaad648db02ccdafcd43a5be4afe03e2983b9371e6c5d564c3aa2a5e10ff7ec55a5d88cf8dab059186f2a19137 +DIST gentoo-headers-base-2.6.19.2.tar.bz2 4324444 SHA256 c9e33b13e061fb063117ae6c690e90e4d0975d6c649dc214542bd78c31e2088e SHA512 72928ab8633dc2ef685faaa47ace246d2f59c411afcd723912cd6f0599c4fae7cbe86a1dfdf1119c053f79a4c90fc82d113b2a4d0e1b0b1150b7747994c2dd8d WHIRLPOOL ed0e957122b26a6a78f5c71f51a843869bfed20296d43c96f46bf0d07e7e8a91404aadff2bb93f80dc9baf5eeddfba714928eb6a8f1b18a4f926a65cd5716bbb +DIST linux-2.6.26.tar.xz 40704768 SHA256 c6f94b0c35c5e6e6a4fe031f9279661816e84e77f072c356867926e3dd354a81 SHA512 068356c1414de9228e8a677bf2d22fcab4f31408ff2e7ff0a53eca4ff3a47536570766a594cf6ed96ce1d1e78faae56ae0ef0909928ba3738657b3598358bc69 WHIRLPOOL b5c10fcda4c322140f7cafa4950416171111356595b1ae34e71d86b272dfd2f19e3e06c991872f1c7688a9da243fe5ff373ade1611ed9bffe146a63fee05f1f6 +EBUILD linux-headers-2.6.19.2-r2.ebuild 967 SHA256 8bff5751010778da8f2d559e0c21cea334cdd41f3344e790f424c00c961fcbe3 SHA512 2ab8cd98cc87acd5dab91abf3849675682736ac3f19a7b04443dd7075963318af38f692e9768b9600a822ddaaf964ae59651cc7628a55f14042b34b5580b1d23 WHIRLPOOL 647bb2450bb5f93fe0c32db2942d9e20503fa1766055cbe9710edcca064165dbf3cf27c3ab108697aaf8c60f1251b0d10d5f0c488733a4054514fc6bcfecf9af +EBUILD linux-headers-2.6.26.ebuild 466 SHA256 77c1b6654fd45757720e81d77040c794b2f85460528355a023f18149c2cf70bf SHA512 cc4ee96ce604f587a13b23a37065af7b06b1d30511eb7ce0f875b049eda01bae0e8f3e0f1b809205655adf2e2be81a051d54bdb09ebe0be721779a7734554c20 WHIRLPOOL 4b85b3addb866e301e9670bfc8dc498ffe5388f31de19e34109b81adb9afa799b4cb1593fd1037f41fc2cc3d1635c9760d5d526c2585f4c52a1743eb13dda8b3 diff --git a/sys-kernel/linux-headers/files/linux-2.6.28.10-unifdef-getline.patch b/sys-kernel/linux-headers/files/linux-2.6.28.10-unifdef-getline.patch new file mode 100644 index 0000000..f4a4820 --- /dev/null +++ b/sys-kernel/linux-headers/files/linux-2.6.28.10-unifdef-getline.patch @@ -0,0 +1,56 @@ +From d15bd1067b1fcb2b7250d22bc0c7c7fea0b759f7 Mon Sep 17 00:00:00 2001 +From: Justin P. Mattock <justinmatt...@gmail.com> +Date: Sat, 7 Mar 2009 13:31:29 +0100 +Subject: [PATCH] kbuild: fix C libary confusion in unifdef.c due to getline() + +This fixes an error when compiling the kernel. + + CHK include/linux/version.h + HOSTCC scripts/unifdef +scripts/unifdef.c:209: error: conflicting types for 'getline' +/usr/include/stdio.h:651: note: previous declaration of 'getline' was here +make[1]: *** [scripts/unifdef] Error 1 +make: *** [__headers] Error 2 + +Signed-off-by: Justin P. Mattock <justinmatt...@gmail.com> +Cc: Frederic Weisbecker <fweis...@gmail.com> +Signed-off-by: Andrew Morton <a...@linux-foundation.org> +Signed-off-by: Sam Ravnborg <s...@ravnborg.org> +--- + scripts/unifdef.c | 6 +++--- + 1 files changed, 3 insertions(+), 3 deletions(-) + +diff --git a/scripts/unifdef.c b/scripts/unifdef.c +index 552025e..05a31a6 100644 +--- a/scripts/unifdef.c ++++ b/scripts/unifdef.c +@@ -206,7 +206,7 @@ static void done(void); + static void error(const char *); + static int findsym(const char *); + static void flushline(bool); +-static Linetype getline(void); ++static Linetype get_line(void); + static Linetype ifeval(const char **); + static void ignoreoff(void); + static void ignoreon(void); +@@ -512,7 +512,7 @@ process(void) + + for (;;) { + linenum++; +- lineval = getline(); ++ lineval = get_line(); + trans_table[ifstate[depth]][lineval](); + debug("process %s -> %s depth %d", + linetype_name[lineval], +@@ -526,7 +526,7 @@ process(void) + * help from skipcomment(). + */ + static Linetype +-getline(void) ++get_line(void) + { + const char *cp; + int cursym; +-- +1.6.3.3 + diff --git a/sys-kernel/linux-headers/linux-headers-2.6.19.2-r2.ebuild b/sys-kernel/linux-headers/linux-headers-2.6.19.2-r2.ebuild new file mode 100644 index 0000000..be74e46 --- /dev/null +++ b/sys-kernel/linux-headers/linux-headers-2.6.19.2-r2.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/Attic/linux-headers-2.6.19.2-r2.ebuild,v 1.7 2007/12/31 05:53:04 vapier dead $ + +ETYPE="headers" +H_SUPPORTEDARCH="alpha amd64 arm cris hppa m68k mips ia64 ppc ppc64 s390 sh sparc x86" +inherit kernel-2 +detect_version + +PATCH_VER="4" +SRC_URI="mirror://gentoo/gentoo-headers-base-${PV}.tar.bz2" +[[ -n ${PATCH_VER} ]] && SRC_URI="${SRC_URI} mirror://gentoo/gentoo-headers-${PV}-${PATCH_VER}.tar.bz2" + +KEYWORDS="-* -alpha ~amd64 arm ~hppa ~ia64 m68k mips ~ppc ~ppc64 s390 sh sparc ~x86" + +DEPEND="dev-util/unifdef" +RDEPEND="" + +S=${WORKDIR}/gentoo-headers-base-${PV} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/linux-2.6.28.10-unifdef-getline.patch" + [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/${PV} +} + +src_test() { + make ARCH=$(tc-arch-kernel) headers_check || die +} diff --git a/sys-kernel/linux-headers/linux-headers-2.6.26.ebuild b/sys-kernel/linux-headers/linux-headers-2.6.26.ebuild new file mode 100644 index 0000000..768bdca --- /dev/null +++ b/sys-kernel/linux-headers/linux-headers-2.6.26.ebuild @@ -0,0 +1,15 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/linux-headers/Attic/linux-headers-2.6.18.ebuild,v 1.1 2006/10/08 20:02:13 vapier Exp $ + +EAPI=5 +ETYPE="headers" +H_SUPPORTEDARCH="alpha amd64 arm hppa m68k ia64 ppc ppc64 s390 sh sparc x86" +inherit eutils multilib kernel-2 +detect_version + +SRC_URI="${KERNEL_URI}" +KEYWORDS="-*" + +DEPEND="dev-util/unifdef" +RDEPEND=""