* [gentoo-dev] UNOFFICIAL: linux-sources-2.4.18-r99
@ 2002-02-25 23:25 ian.c.smith
0 siblings, 0 replies; only message in thread
From: ian.c.smith @ 2002-02-25 23:25 UTC (permalink / raw
To: gentoo-dev, gentoo-user
[-- Attachment #1: Type: text/plain, Size: 574 bytes --]
Hi all,
Yes I realise it's irrelevant this time because Marcelo fscked up.
Basically like many people on dialup I keep 2.4.0 + patches. These
babies should be a drop-in replacement for the monolithic 23M upgrade
version (yes, again, see note above).
So far I have tested these as an ebuild only, I'm just building the
kernel now, so be aware!
Feedback sought (please try to be polite Daniel [g]).
--
----------------------------------------------------------------------------
Ian Smith
----------------------------------------------------------------------------
[-- Attachment #2: linux-sources-2.4.18-r99.ebuild --]
[-- Type: text/plain, Size: 5982 bytes --]
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Maintainer: Daniel Robbins <drobbins@gentoo.org>
# /space/gentoo/cvsroot/gentoo-x86/sys-kernel/linux-sources/linux-sources-2.4.18.ebuild,v 1.1 2002/02/25 21:55:50 drobbins Exp
#OKV=original kernel version, KV=patched kernel version. They can be the same.
#we use this next variable to avoid duplicating stuff on cvs
GFILESDIR=${PORTDIR}/sys-kernel/linux-sources/files
OKV=${PV}
KV=${PVR}
S=${WORKDIR}/linux-${KV}
S2=${WORKDIR}/linux-${KV}-extras
# What's in this kernel?
# INCLUDED:
# Andrea Archangeli's 2.4.18-ac4-aa1 patch
# http://www.kernel.org/pub/linux/kernel/people/andrea/kernels/v2.4/2.4.18rc4aa1.gz
# This patch includes recent SGI XFS code as well.
# read-latency2.patch from http://www.zipworld.com.au/~akpm/linux/2.4/2.4.18-pre9/
# (improves multiple disk read/write IO performance)
# acpi-20020214-2.4.17.diff.gz from http://sourceforge.net/projects/acpi
# This patch should close bug #689 which was sent upstream.
# bootmem fix patch that is included with Mandrake's cooker kernel: /kernel-2.4.17.20mdk-1-1mdk.src.rpm
# REMOVED:
# ide.2.4.17.02072002.patch from http://www.linuxdiskcert.org/
# (revamped IDE code; this closes bug #690; we'll add it back as soon as the
# confirmed with author completion error is fixed (probably in the next release))
# preempt-kernel-rml-2.4.17-3 from http://www.tech9.net/rml/linux/
# (preemptible kernel) -- should be a bit conservative with the many aa patches
# loopback device deadlock fixes from akpm / are these included in aa's patches?
DESCRIPTION="Full sources for the Gentoo Linux kernel"
SRC_URI="http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.0.tar.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.1.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.2.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.3.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.4.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.5.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.6.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.7.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.8.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.9.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.10.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.11.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.12.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.13.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.14.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.15.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.16.bz2 http://www.kernel.org/pub/linux/kernel/v2.4/patch-2.4.17.bz2 http://www.ibiblio.org/gentoo/distfiles/linux-gentoo-2.4.18.patch.bz2"
PROVIDE="virtual/kernel"
HOMEPAGE="http://www.kernel.org/ http://www.gentoo.org/"
XFSV=20020124
if [ $PN = "linux-sources" ] && [ -z "`use build`" ]
then
#console-tools is needed to solve the loadkeys fiasco.
#binutils version needed to avoid Athlon/PIII/SSE assembler bugs.
DEPEND=">=sys-devel/binutils-2.11.90.0.31 sys-apps/console-tools >=sys-apps/modutils-2.4.2 sys-devel/perl"
RDEPEND=">=sys-libs/ncurses-5.2 >=sys-apps/xfsprogs-${XFSV} >=sys-apps/dmapi-${XFSV} >=sys-apps/attr-${XFSV} >=sys-apps/acl-${XFSV} >=sys-apps/xfsdump-${XFSV}"
fi
[ -z "$LINUX_HOSTCFLAGS" ] && LINUX_HOSTCFLAGS="-Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I${S}/include"
src_unpack() {
mkdir ${S2}
cd ${WORKDIR}
unpack linux-2.4.0.tar.bz2
linux/scripts/patch-kernel linux /usr/portage/distfiles
mv linux linux-${KV} || die
dodir /usr/src/linux-${KV}-extras
if [ "$MOSIX" ]
then
cd ${S2}
tar -xz --no-same-owner -f ${DISTDIR}/MOSIX-${MOSV}.tar.gz MOSIX-${MOSV}/patches.${OKV}
fi
cd ${S}
cat ${DISTDIR}/linux-gentoo-${KV}.patch.bz2 | bzip2 -d | patch -p1 || die
echo "Preparing for compilation..."
#sometimes we have icky kernel symbols; this seems to get rid of them
make mrproper || die
#linux-sources needs to be fully configured, too. This is the configuration for the default kernel
cp ${S}/arch/i386/defconfig .config || die
yes "" | make oldconfig
echo "Ignore any errors from the yes command above."
#fix silly permissions in tarball
cd ${WORKDIR}
chown -R 0.0 *
chmod -R a+r-w+X,u+w *
# Gentoo Linux uses /boot, so fix 'make install' to work properly
cd ${S}
mv Makefile Makefile.orig
sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \
Makefile.orig >Makefile || die # test, remove me if Makefile ok
rm Makefile.orig
}
src_compile() {
if [ "${PN}" = "linux-headers" ]
then
cd ${S}
make include/linux/autoconf.h include/linux/version.h || die
fi
}
src_install() {
if [ "$PN" = "linux-sources" ]
then
dodir /usr/src
cd ${S}
echo ">>> Copying sources..."
mv ${WORKDIR}/* ${D}/usr/src
elif [ "$PN" = "linux-headers" ]
then
dodir /usr/include/linux
cp -ax ${S}/include/linux/* ${D}/usr/include/linux
dodir /usr/include/asm
cp -ax ${S}/include/asm-i386/* ${D}/usr/include/asm
fi
if [ -d ${D}/usr/src/linux-${KV} ]
then
cd ${D}/usr/src/linux-${KV}
if [ -e .config ]
then
mv .config .config.eg
fi
fi
}
pkg_preinst() {
if [ "$PN" = "linux-headers" ]
then
if [ -L ${ROOT}usr/include/linux ]
then
rm ${ROOT}usr/include/linux
fi
if [ -L ${ROOT}usr/include/asm ]
then
rm ${ROOT}usr/include/asm
fi
fi
}
pkg_postinst() {
[ "$PN" = "linux-headers" ] && return
rm -f ${ROOT}/usr/src/linux
ln -sf linux-${KV} ${ROOT}/usr/src/linux
#copy over our .config if one isn't already present
cd ${ROOT}/usr/src/linux-${KV}
if [ "${PN}" = "linux-sources" ] && [ -e .config.eg ] && [ ! -e .config ]
then
cp -a .config.eg .config
fi
}
[-- Attachment #3: digest-linux-sources-2.4.18-r99 --]
[-- Type: text/plain, Size: 1172 bytes --]
MD5 18278baa4c54387b1c29f0edba55ab14 linux-2.4.0.tar.bz2 19788626
MD5 c4939f92452ab1c2f3ae064802496edc patch-2.4.1.bz2 538678
MD5 46b6589242917f64693be1a970d29c61 patch-2.4.10.bz2 2098208
MD5 a3fe972e3208cf48b457178df5c7b584 patch-2.4.11.bz2 784238
MD5 43c5522a6db8e9e004b13e82efed2b5b patch-2.4.12.bz2 36846
MD5 069415a346b7288fac793b8effe677b2 patch-2.4.13.bz2 615709
MD5 3bdfcd5e75ed2412255dee8254f90472 patch-2.4.14.bz2 573667
MD5 cb291d3b4daf0f05e6df71679e8fcccf patch-2.4.15.bz2 1267539
MD5 46bebbadb58bc9e9c0ddfad953c1f01e patch-2.4.16.bz2 5782
MD5 4f84bb410cba4bf9c4199107a9e5ecb7 patch-2.4.17.bz2 397066
MD5 123ec90e74f036b63ccc68d934650d32 patch-2.4.2.bz2 1188820
MD5 b4d9eb63471c165ecb71ffa23d55d58b patch-2.4.3.bz2 1078123
MD5 0434231fb1cea1a7f58f185cc8584d6c patch-2.4.4.bz2 1808799
MD5 d3b253e80e1a6cbd5cceebb042d15d11 patch-2.4.5.bz2 883596
MD5 066b898615e650adbf2c1fc1802b3a26 patch-2.4.6.bz2 1390867
MD5 0a01b76b95d94706a50afb5033f7a9ab patch-2.4.7.bz2 982933
MD5 4e94d6e3e79f8f0e8e45fd92625e08ef patch-2.4.8.bz2 785040
MD5 8d11c39ef979f53e0c09d63f417e1d38 patch-2.4.9.bz2 607194
MD5 1a38eaadedbbdcdbb7001b8747dedbbe linux-gentoo-2.4.18.patch.bz2 2172022
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-02-25 23:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-25 23:25 [gentoo-dev] UNOFFICIAL: linux-sources-2.4.18-r99 ian.c.smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox