Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28270 - ebuild for 2.6.0-test5-mm1
Summary: ebuild for 2.6.0-test5-mm1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
: 28267 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-09 08:33 UTC by billy hyatt
Modified: 2003-09-10 09:03 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description billy hyatt 2003-09-09 08:33:42 UTC
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# sys-kernel/mm-sources/mm-sources-2.6.0_beta5-r1.ebuild,v 1.1 2003/09/09 
#OKV=original kernel version, KV=patched kernel version.  They can be the same.

ETYPE="sources"

OKV=${PV/_beta/-test}

EXTRAVERSION="`echo ${OKV}-${PR/r/mm} | \
    sed -e 's/[0-9]\+\.[0-9]\+\.[0-9]\+\(.*\)/\1/'`"

KV=${OKV}-${PR/r/mm}

inherit kernel

# What's in this kernel?

# INCLUDED:
# The development branch of the linux kernel with Andrew Morton's patch

DESCRIPTION="Full sources for the development linux kernel with Andrew Morton's
patchset"
SRC_URI="mirror://kernel/linux/kernel/v2.6/linux-${PV/_beta/-test}.tar.bz2
mirror://kernel/linux/kernel/people/akpm/patches/2.6/${PV/_beta/-test}/${KV}/${K
V}.bz2"
KEYWORDS="x86 ppc"
RDEPEND="sys-apps/module-init-tools"
SLOT=${KV}

src_unpack() {
    cd ${WORKDIR}
    unpack linux-${OKV}.tar.bz2

    mv linux-${OKV} linux-${KV}
    cd ${S}
    bzcat ${DISTDIR}/${KV}.bz2 | patch -p1 || die "mm patch failed"

    find . -iname "*~" | xargs rm 2> /dev/null

    # Gentoo Linux uses /boot, so fix 'make install' to work properly
    # also fix the EXTRAVERSION
    cd ${S}
    mv Makefile Makefile.orig
    sed -e 's:#export\tINSTALL_PATH:export\tINSTALL_PATH:' \
        -e "s:^\(EXTRAVERSION =\).*:\1 ${EXTRAVERSION}:" \
            Makefile.orig >Makefile || die # test, remove me if Makefile ok
    rm Makefile.orig

    cd  ${S}/Documentation/DocBook
    sed -e "s:db2:docbook2:g" Makefile > Makefile.new \
        && mv Makefile.new Makefile
    cd ${S}

    #This is needed on > 2.5
    MY_ARCH=${ARCH}
    unset ARCH
    #sometimes we have icky kernel symbols; this seems to get rid of them
    make mrproper || die "make mrproper died"
    ARCH=${MY_ARCH}

    # kernel_universal_unpack used to do this... changes in kconfig make
    # this die now
    #make include/linux/version.h || die "make include/linux/version.h failed"

}
pkg_postinst() {
    if [ ! -e ${ROOT}usr/src/linux-beta ]
    then
        ln -sf linux-${KV} ${ROOT}/usr/src/linux-beta
    fi

    ewarn "Please note that ptyfs support has been removed from devfs"
    ewarn "in the later 2.5.x kernels, and you have to compile it in now,"
    ewarn "or else you will get errors when trying to open a pty."
    ewarn "The option is File systems->Pseudo filesystems->/dev/pts"
    ewarn "filesystem."
    echo
    ewarn "Also, note that you must compile in support for"
    ewarn "input devices (Input device support->Input devices),"
    ewarn "the virtual terminal (Character Devices->Virtual terminal),"
    ewarn "vga_console (Graphics Support->Console...->VGA text console)"
    ewarn "and the vt_console (Character Devices->Support for console...)."
    ewarn "Otherwise, you will get the dreaded \"Uncompressing the Kernel\""
    ewarn "error."
    echo
    einfo "Consult http://www.codemonkey.org.uk/post-halloween-2.5.txt"
    einfo "for more info about the development series."
    echo
}

Reproducible: Always
Steps to Reproduce:
1. cp to mm-sources directory
2. ebuild  mm-sources-2.6.0_beta5-r1.ebuild digest
3. publish to rsync mirrors




this is the first time i have done an ebuild, so if i went about this the wrong 
way, let me know
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-09-09 10:10:46 UTC
*** Bug 28267 has been marked as a duplicate of this bug. ***
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2003-09-09 14:41:12 UTC
A) When developing ebuilds please replace "$Header: Blah blah blah" with "$Header: $ [bug #some-bug-number]" instead, not the filename.

B) When there is no change to the ebuild [like here], please don't copy and paste ebuilds and just inform us that we just need to bump the version.

I'll stick this into CVS soon...
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-09-10 09:03:41 UTC
In CVS.