diff options
author | Markos Chandras <hwoarang@gentoo.org> | 2012-01-23 21:02:05 +0000 |
---|---|---|
committer | Markos Chandras <hwoarang@gentoo.org> | 2012-01-23 21:02:05 +0000 |
commit | db1b95c8c8df09a479deb7387b7fcb7c585378e1 (patch) | |
tree | 19a7e313d340704bd87e00b0df97de50e1b77ca4 /sys-kernel/pf-sources | |
parent | Use snapshot in order to resolve some compability issues with the dependencies. (diff) | |
download | gentoo-2-db1b95c8c8df09a479deb7387b7fcb7c585378e1.tar.gz gentoo-2-db1b95c8c8df09a479deb7387b7fcb7c585378e1.tar.bz2 gentoo-2-db1b95c8c8df09a479deb7387b7fcb7c585378e1.zip |
Apply fix from gentoo-sources for CVE-2012-0056 in 3.1 and 3.2 kernel series
(Portage version: 2.2.0_alpha84/cvs/Linux x86_64)
Diffstat (limited to 'sys-kernel/pf-sources')
-rw-r--r-- | sys-kernel/pf-sources/ChangeLog | 12 | ||||
-rw-r--r-- | sys-kernel/pf-sources/files/2100_proc-mem-handling-fix.patch | 288 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-3.1.1.ebuild | 62 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-3.1.3.ebuild | 62 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-3.1.4.ebuild | 62 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-3.1.5.ebuild | 62 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-3.1.6-r1.ebuild (renamed from sys-kernel/pf-sources/pf-sources-3.2.1.ebuild) | 8 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-3.1.6.ebuild | 62 | ||||
-rw-r--r-- | sys-kernel/pf-sources/pf-sources-3.2.1-r1.ebuild (renamed from sys-kernel/pf-sources/pf-sources-3.1.2.ebuild) | 10 |
9 files changed, 304 insertions, 324 deletions
diff --git a/sys-kernel/pf-sources/ChangeLog b/sys-kernel/pf-sources/ChangeLog index c9d8c3f0f5cc..3ae3d9fefd1f 100644 --- a/sys-kernel/pf-sources/ChangeLog +++ b/sys-kernel/pf-sources/ChangeLog @@ -1,6 +1,16 @@ # ChangeLog for sys-kernel/pf-sources # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/ChangeLog,v 1.46 2012/01/17 12:23:35 wired Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/ChangeLog,v 1.47 2012/01/23 21:02:04 hwoarang Exp $ + +*pf-sources-3.1.6-r1 (23 Jan 2012) +*pf-sources-3.2.1-r1 (23 Jan 2012) + + 23 Jan 2012; Markos Chandras <hwoarang@gentoo.org> + +files/2100_proc-mem-handling-fix.patch, +pf-sources-3.1.6-r1.ebuild, + +pf-sources-3.2.1-r1.ebuild, -pf-sources-3.1.1.ebuild, + -pf-sources-3.1.2.ebuild, -pf-sources-3.1.3.ebuild, -pf-sources-3.1.4.ebuild, + -pf-sources-3.1.5.ebuild, -pf-sources-3.1.6.ebuild, -pf-sources-3.2.1.ebuild: + Apply fix from gentoo-sources for CVE-2012-0056 in 3.1 and 3.2 kernel series *pf-sources-3.2.1 (17 Jan 2012) diff --git a/sys-kernel/pf-sources/files/2100_proc-mem-handling-fix.patch b/sys-kernel/pf-sources/files/2100_proc-mem-handling-fix.patch new file mode 100644 index 000000000000..3b54402d2079 --- /dev/null +++ b/sys-kernel/pf-sources/files/2100_proc-mem-handling-fix.patch @@ -0,0 +1,288 @@ +From bd3d50227ece7d8234cdc5b3d3486ff90e92d545 Mon Sep 17 00:00:00 2001 +From: Greg Kroah-Hartman <gregkh@suse.de> +Date: Fri, 20 Jan 2012 11:25:40 -0500 +Subject: [PATCH] 3.2-stable patches + +added patches: + proc-clean-up-and-fix-proc-pid-mem-handling.patch +--- + ...oc-clean-up-and-fix-proc-pid-mem-handling.patch | 269 ++++++++++++++++++++ + queue-3.2/series | 1 + + 2 files changed, 270 insertions(+), 0 deletions(-) + create mode 100644 queue-3.2/proc-clean-up-and-fix-proc-pid-mem-handling.patch + +diff --git a/queue-3.2/proc-clean-up-and-fix-proc-pid-mem-handling.patch b/queue-3.2/proc-clean-up-and-fix-proc-pid-mem-handling.patch +new file mode 100644 +index 0000000..2acee07 +--- /dev/null ++++ b/queue-3.2/proc-clean-up-and-fix-proc-pid-mem-handling.patch +@@ -0,0 +1,269 @@ ++From e268337dfe26dfc7efd422a804dbb27977a3cccc Mon Sep 17 00:00:00 2001 ++From: Linus Torvalds <torvalds@linux-foundation.org> ++Date: Tue, 17 Jan 2012 15:21:19 -0800 ++Subject: proc: clean up and fix /proc/<pid>/mem handling ++MIME-Version: 1.0 ++Content-Type: text/plain; charset=UTF-8 ++Content-Transfer-Encoding: 8bit ++ ++From: Linus Torvalds <torvalds@linux-foundation.org> ++ ++commit e268337dfe26dfc7efd422a804dbb27977a3cccc upstream. ++ ++Jüri Aedla reported that the /proc/<pid>/mem handling really isn't very ++robust, and it also doesn't match the permission checking of any of the ++other related files. ++ ++This changes it to do the permission checks at open time, and instead of ++tracking the process, it tracks the VM at the time of the open. That ++simplifies the code a lot, but does mean that if you hold the file ++descriptor open over an execve(), you'll continue to read from the _old_ ++VM. ++ ++That is different from our previous behavior, but much simpler. If ++somebody actually finds a load where this matters, we'll need to revert ++this commit. ++ ++I suspect that nobody will ever notice - because the process mapping ++addresses will also have changed as part of the execve. So you cannot ++actually usefully access the fd across a VM change simply because all ++the offsets for IO would have changed too. ++ ++Reported-by: Jüri Aedla <asd@ut.ee> ++Cc: Al Viro <viro@zeniv.linux.org.uk> ++Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> ++Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> ++ ++--- ++ fs/proc/base.c | 145 +++++++++++++++------------------------------------------ ++ 1 file changed, 39 insertions(+), 106 deletions(-) ++ ++--- a/fs/proc/base.c +++++ b/fs/proc/base.c ++@@ -194,65 +194,7 @@ static int proc_root_link(struct inode * ++ return result; ++ } ++ ++-static struct mm_struct *__check_mem_permission(struct task_struct *task) ++-{ ++- struct mm_struct *mm; ++- ++- mm = get_task_mm(task); ++- if (!mm) ++- return ERR_PTR(-EINVAL); ++- ++- /* ++- * A task can always look at itself, in case it chooses ++- * to use system calls instead of load instructions. ++- */ ++- if (task == current) ++- return mm; ++- ++- /* ++- * If current is actively ptrace'ing, and would also be ++- * permitted to freshly attach with ptrace now, permit it. ++- */ ++- if (task_is_stopped_or_traced(task)) { ++- int match; ++- rcu_read_lock(); ++- match = (ptrace_parent(task) == current); ++- rcu_read_unlock(); ++- if (match && ptrace_may_access(task, PTRACE_MODE_ATTACH)) ++- return mm; ++- } ++- ++- /* ++- * No one else is allowed. ++- */ ++- mmput(mm); ++- return ERR_PTR(-EPERM); ++-} ++- ++-/* ++- * If current may access user memory in @task return a reference to the ++- * corresponding mm, otherwise ERR_PTR. ++- */ ++-static struct mm_struct *check_mem_permission(struct task_struct *task) ++-{ ++- struct mm_struct *mm; ++- int err; ++- ++- /* ++- * Avoid racing if task exec's as we might get a new mm but validate ++- * against old credentials. ++- */ ++- err = mutex_lock_killable(&task->signal->cred_guard_mutex); ++- if (err) ++- return ERR_PTR(err); ++- ++- mm = __check_mem_permission(task); ++- mutex_unlock(&task->signal->cred_guard_mutex); ++- ++- return mm; ++-} ++- ++-struct mm_struct *mm_for_maps(struct task_struct *task) +++static struct mm_struct *mm_access(struct task_struct *task, unsigned int mode) ++ { ++ struct mm_struct *mm; ++ int err; ++@@ -263,7 +205,7 @@ struct mm_struct *mm_for_maps(struct tas ++ ++ mm = get_task_mm(task); ++ if (mm && mm != current->mm && ++- !ptrace_may_access(task, PTRACE_MODE_READ)) { +++ !ptrace_may_access(task, mode)) { ++ mmput(mm); ++ mm = ERR_PTR(-EACCES); ++ } ++@@ -272,6 +214,11 @@ struct mm_struct *mm_for_maps(struct tas ++ return mm; ++ } ++ +++struct mm_struct *mm_for_maps(struct task_struct *task) +++{ +++ return mm_access(task, PTRACE_MODE_READ); +++} +++ ++ static int proc_pid_cmdline(struct task_struct *task, char * buffer) ++ { ++ int res = 0; ++@@ -816,38 +763,39 @@ static const struct file_operations proc ++ ++ static int mem_open(struct inode* inode, struct file* file) ++ { ++- file->private_data = (void*)((long)current->self_exec_id); +++ struct task_struct *task = get_proc_task(file->f_path.dentry->d_inode); +++ struct mm_struct *mm; +++ +++ if (!task) +++ return -ESRCH; +++ +++ mm = mm_access(task, PTRACE_MODE_ATTACH); +++ put_task_struct(task); +++ +++ if (IS_ERR(mm)) +++ return PTR_ERR(mm); +++ ++ /* OK to pass negative loff_t, we can catch out-of-range */ ++ file->f_mode |= FMODE_UNSIGNED_OFFSET; +++ file->private_data = mm; +++ ++ return 0; ++ } ++ ++ static ssize_t mem_read(struct file * file, char __user * buf, ++ size_t count, loff_t *ppos) ++ { ++- struct task_struct *task = get_proc_task(file->f_path.dentry->d_inode); +++ int ret; ++ char *page; ++ unsigned long src = *ppos; ++- int ret = -ESRCH; ++- struct mm_struct *mm; +++ struct mm_struct *mm = file->private_data; ++ ++- if (!task) ++- goto out_no_task; +++ if (!mm) +++ return 0; ++ ++- ret = -ENOMEM; ++ page = (char *)__get_free_page(GFP_TEMPORARY); ++ if (!page) ++- goto out; ++- ++- mm = check_mem_permission(task); ++- ret = PTR_ERR(mm); ++- if (IS_ERR(mm)) ++- goto out_free; ++- ++- ret = -EIO; ++- ++- if (file->private_data != (void*)((long)current->self_exec_id)) ++- goto out_put; +++ return -ENOMEM; ++ ++ ret = 0; ++ ++@@ -874,13 +822,7 @@ static ssize_t mem_read(struct file * fi ++ } ++ *ppos = src; ++ ++-out_put: ++- mmput(mm); ++-out_free: ++ free_page((unsigned long) page); ++-out: ++- put_task_struct(task); ++-out_no_task: ++ return ret; ++ } ++ ++@@ -889,27 +831,15 @@ static ssize_t mem_write(struct file * f ++ { ++ int copied; ++ char *page; ++- struct task_struct *task = get_proc_task(file->f_path.dentry->d_inode); ++ unsigned long dst = *ppos; ++- struct mm_struct *mm; +++ struct mm_struct *mm = file->private_data; ++ ++- copied = -ESRCH; ++- if (!task) ++- goto out_no_task; +++ if (!mm) +++ return 0; ++ ++- copied = -ENOMEM; ++ page = (char *)__get_free_page(GFP_TEMPORARY); ++ if (!page) ++- goto out_task; ++- ++- mm = check_mem_permission(task); ++- copied = PTR_ERR(mm); ++- if (IS_ERR(mm)) ++- goto out_free; ++- ++- copied = -EIO; ++- if (file->private_data != (void *)((long)current->self_exec_id)) ++- goto out_mm; +++ return -ENOMEM; ++ ++ copied = 0; ++ while (count > 0) { ++@@ -933,13 +863,7 @@ static ssize_t mem_write(struct file * f ++ } ++ *ppos = dst; ++ ++-out_mm: ++- mmput(mm); ++-out_free: ++ free_page((unsigned long) page); ++-out_task: ++- put_task_struct(task); ++-out_no_task: ++ return copied; ++ } ++ ++@@ -959,11 +883,20 @@ loff_t mem_lseek(struct file *file, loff ++ return file->f_pos; ++ } ++ +++static int mem_release(struct inode *inode, struct file *file) +++{ +++ struct mm_struct *mm = file->private_data; +++ +++ mmput(mm); +++ return 0; +++} +++ ++ static const struct file_operations proc_mem_operations = { ++ .llseek = mem_lseek, ++ .read = mem_read, ++ .write = mem_write, ++ .open = mem_open, +++ .release = mem_release, ++ }; ++ ++ static ssize_t environ_read(struct file *file, char __user *buf, diff --git a/sys-kernel/pf-sources/pf-sources-3.1.1.ebuild b/sys-kernel/pf-sources/pf-sources-3.1.1.ebuild deleted file mode 100644 index 8d213a0d7a05..000000000000 --- a/sys-kernel/pf-sources/pf-sources-3.1.1.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.1.1.ebuild,v 1.1 2011/11/12 10:58:41 hwoarang Exp $ - -EAPI="2" - -inherit versionator - -COMPRESSTYPE=".bz2" -K_USEPV="yes" -UNIPATCH_STRICTORDER="yes" -K_SECURITY_UNSUPPORTED="1" - -CKV="$(get_version_component_range 1-2)" -ETYPE="sources" -inherit kernel-2 -detect_version -K_NOSETEXTRAVERSION="don't_set_it" - -DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and LinuxIMQ" -HOMEPAGE="http://pf.natalenko.name/" - -PF_FILE="patch-${PV}-pf${COMPRESSTYPE}" -PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}" -EXPERIMENTAL_PATCHES=( - # http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html - # http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch -) -EXPERIMENTAL_URI=" - experimental? ( - ${EXPERIMENTAL_PATCHES[@]} - ) -" -SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI} - -KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86" -IUSE="" # experimental - -KV_FULL="${PVR}-pf" -S="${WORKDIR}"/linux-"${KV_FULL}" - -pkg_setup(){ - ewarn - ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." - ewarn "If you need support, please contact the pf developers directly." - ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" - ewarn "the ebuilds. Thank you." - ewarn - kernel-2_pkg_setup -} - -src_prepare(){ - epatch "${DISTDIR}"/"${PF_FILE}" - #if use experimental; then - #for patch in ${EXPERIMENTAL_PATCHES[@]}; do - #epatch "${DISTDIR}"/"${patch/*\/}" - #done - #fi -} - -K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, see: \ -${HOMEPAGE}." diff --git a/sys-kernel/pf-sources/pf-sources-3.1.3.ebuild b/sys-kernel/pf-sources/pf-sources-3.1.3.ebuild deleted file mode 100644 index d1a96256250c..000000000000 --- a/sys-kernel/pf-sources/pf-sources-3.1.3.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.1.3.ebuild,v 1.1 2011/11/28 08:21:36 wired Exp $ - -EAPI="2" - -inherit versionator - -COMPRESSTYPE=".bz2" -K_USEPV="yes" -UNIPATCH_STRICTORDER="yes" -K_SECURITY_UNSUPPORTED="1" - -CKV="$(get_version_component_range 1-2)" -ETYPE="sources" -inherit kernel-2 -detect_version -K_NOSETEXTRAVERSION="don't_set_it" - -DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and LinuxIMQ" -HOMEPAGE="http://pf.natalenko.name/" - -PF_FILE="patch-${PV}-pf${COMPRESSTYPE}" -PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}" -EXPERIMENTAL_PATCHES=( - # http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html - # http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch -) -EXPERIMENTAL_URI=" - experimental? ( - ${EXPERIMENTAL_PATCHES[@]} - ) -" -SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI} - -KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86" -IUSE="" # experimental - -KV_FULL="${PVR}-pf" -S="${WORKDIR}"/linux-"${KV_FULL}" - -pkg_setup(){ - ewarn - ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." - ewarn "If you need support, please contact the pf developers directly." - ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" - ewarn "the ebuilds. Thank you." - ewarn - kernel-2_pkg_setup -} - -src_prepare(){ - epatch "${DISTDIR}"/"${PF_FILE}" - #if use experimental; then - #for patch in ${EXPERIMENTAL_PATCHES[@]}; do - #epatch "${DISTDIR}"/"${patch/*\/}" - #done - #fi -} - -K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, see: \ -${HOMEPAGE}." diff --git a/sys-kernel/pf-sources/pf-sources-3.1.4.ebuild b/sys-kernel/pf-sources/pf-sources-3.1.4.ebuild deleted file mode 100644 index ff7ac3f0ca13..000000000000 --- a/sys-kernel/pf-sources/pf-sources-3.1.4.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.1.4.ebuild,v 1.1 2011/12/05 19:40:29 wired Exp $ - -EAPI="2" - -inherit versionator - -COMPRESSTYPE=".bz2" -K_USEPV="yes" -UNIPATCH_STRICTORDER="yes" -K_SECURITY_UNSUPPORTED="1" - -CKV="$(get_version_component_range 1-2)" -ETYPE="sources" -inherit kernel-2 -detect_version -K_NOSETEXTRAVERSION="don't_set_it" - -DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and LinuxIMQ" -HOMEPAGE="http://pf.natalenko.name/" - -PF_FILE="patch-${PV}-pf${COMPRESSTYPE}" -PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}" -EXPERIMENTAL_PATCHES=( - # http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html - # http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch -) -EXPERIMENTAL_URI=" - experimental? ( - ${EXPERIMENTAL_PATCHES[@]} - ) -" -SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI} - -KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86" -IUSE="" # experimental - -KV_FULL="${PVR}-pf" -S="${WORKDIR}"/linux-"${KV_FULL}" - -pkg_setup(){ - ewarn - ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." - ewarn "If you need support, please contact the pf developers directly." - ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" - ewarn "the ebuilds. Thank you." - ewarn - kernel-2_pkg_setup -} - -src_prepare(){ - epatch "${DISTDIR}"/"${PF_FILE}" - #if use experimental; then - #for patch in ${EXPERIMENTAL_PATCHES[@]}; do - #epatch "${DISTDIR}"/"${patch/*\/}" - #done - #fi -} - -K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, see: \ -${HOMEPAGE}." diff --git a/sys-kernel/pf-sources/pf-sources-3.1.5.ebuild b/sys-kernel/pf-sources/pf-sources-3.1.5.ebuild deleted file mode 100644 index 4795cec8e6f9..000000000000 --- a/sys-kernel/pf-sources/pf-sources-3.1.5.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.1.5.ebuild,v 1.1 2011/12/10 18:16:38 wired Exp $ - -EAPI="2" - -inherit versionator - -COMPRESSTYPE=".bz2" -K_USEPV="yes" -UNIPATCH_STRICTORDER="yes" -K_SECURITY_UNSUPPORTED="1" - -CKV="$(get_version_component_range 1-2)" -ETYPE="sources" -inherit kernel-2 -detect_version -K_NOSETEXTRAVERSION="don't_set_it" - -DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and LinuxIMQ" -HOMEPAGE="http://pf.natalenko.name/" - -PF_FILE="patch-${PV}-pf${COMPRESSTYPE}" -PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}" -EXPERIMENTAL_PATCHES=( - # http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html - # http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch -) -EXPERIMENTAL_URI=" - experimental? ( - ${EXPERIMENTAL_PATCHES[@]} - ) -" -SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI} - -KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86" -IUSE="" # experimental - -KV_FULL="${PVR}-pf" -S="${WORKDIR}"/linux-"${KV_FULL}" - -pkg_setup(){ - ewarn - ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." - ewarn "If you need support, please contact the pf developers directly." - ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" - ewarn "the ebuilds. Thank you." - ewarn - kernel-2_pkg_setup -} - -src_prepare(){ - epatch "${DISTDIR}"/"${PF_FILE}" - #if use experimental; then - #for patch in ${EXPERIMENTAL_PATCHES[@]}; do - #epatch "${DISTDIR}"/"${patch/*\/}" - #done - #fi -} - -K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, see: \ -${HOMEPAGE}." diff --git a/sys-kernel/pf-sources/pf-sources-3.2.1.ebuild b/sys-kernel/pf-sources/pf-sources-3.1.6-r1.ebuild index 817618b3c2fe..5912356ffff3 100644 --- a/sys-kernel/pf-sources/pf-sources-3.2.1.ebuild +++ b/sys-kernel/pf-sources/pf-sources-3.1.6-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.2.1.ebuild,v 1.1 2012/01/17 12:23:35 wired Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.1.6-r1.ebuild,v 1.1 2012/01/23 21:02:04 hwoarang Exp $ EAPI="2" @@ -51,11 +51,7 @@ pkg_setup(){ src_prepare(){ epatch "${DISTDIR}"/"${PF_FILE}" - #if use experimental; then - #for patch in ${EXPERIMENTAL_PATCHES[@]}; do - #epatch "${DISTDIR}"/"${patch/*\/}" - #done - #fi + epatch "${FILESDIR}"/2100_proc-mem-handling-fix.patch } K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, see: \ diff --git a/sys-kernel/pf-sources/pf-sources-3.1.6.ebuild b/sys-kernel/pf-sources/pf-sources-3.1.6.ebuild deleted file mode 100644 index 4ebf828a2bc0..000000000000 --- a/sys-kernel/pf-sources/pf-sources-3.1.6.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2011 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.1.6.ebuild,v 1.1 2011/12/23 14:44:33 wired Exp $ - -EAPI="2" - -inherit versionator - -COMPRESSTYPE=".bz2" -K_USEPV="yes" -UNIPATCH_STRICTORDER="yes" -K_SECURITY_UNSUPPORTED="1" - -CKV="$(get_version_component_range 1-2)" -ETYPE="sources" -inherit kernel-2 -detect_version -K_NOSETEXTRAVERSION="don't_set_it" - -DESCRIPTION="Linux kernel fork with new features, including the -ck patchset (BFS), BFQ, TuxOnIce and LinuxIMQ" -HOMEPAGE="http://pf.natalenko.name/" - -PF_FILE="patch-${PV}-pf${COMPRESSTYPE}" -PF_URI="http://pf.natalenko.name/sources/$(get_version_component_range 1-2)/${PF_FILE}" -EXPERIMENTAL_PATCHES=( - # http://ck-hack.blogspot.com/2010/11/create-task-groups-by-tty-comment.html - # http://ck.kolivas.org/patches/bfs/bfs357-penalise_fork_depth_account_threads.patch -) -EXPERIMENTAL_URI=" - experimental? ( - ${EXPERIMENTAL_PATCHES[@]} - ) -" -SRC_URI="${KERNEL_URI} ${PF_URI}" # \${EXPERIMENTAL_URI} - -KEYWORDS="-* ~amd64 ~ppc ~ppc64 ~x86" -IUSE="" # experimental - -KV_FULL="${PVR}-pf" -S="${WORKDIR}"/linux-"${KV_FULL}" - -pkg_setup(){ - ewarn - ewarn "${PN} is *not* supported by the Gentoo Kernel Project in any way." - ewarn "If you need support, please contact the pf developers directly." - ewarn "Do *not* open bugs in Gentoo's bugzilla unless you have issues with" - ewarn "the ebuilds. Thank you." - ewarn - kernel-2_pkg_setup -} - -src_prepare(){ - epatch "${DISTDIR}"/"${PF_FILE}" - #if use experimental; then - #for patch in ${EXPERIMENTAL_PATCHES[@]}; do - #epatch "${DISTDIR}"/"${patch/*\/}" - #done - #fi -} - -K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, see: \ -${HOMEPAGE}." diff --git a/sys-kernel/pf-sources/pf-sources-3.1.2.ebuild b/sys-kernel/pf-sources/pf-sources-3.2.1-r1.ebuild index 78556f1da9c3..24c3dbd7cee6 100644 --- a/sys-kernel/pf-sources/pf-sources-3.1.2.ebuild +++ b/sys-kernel/pf-sources/pf-sources-3.2.1-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.1.2.ebuild,v 1.1 2011/11/24 19:07:12 wired Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-kernel/pf-sources/pf-sources-3.2.1-r1.ebuild,v 1.1 2012/01/23 21:02:04 hwoarang Exp $ EAPI="2" @@ -51,11 +51,7 @@ pkg_setup(){ src_prepare(){ epatch "${DISTDIR}"/"${PF_FILE}" - #if use experimental; then - #for patch in ${EXPERIMENTAL_PATCHES[@]}; do - #epatch "${DISTDIR}"/"${patch/*\/}" - #done - #fi + epatch "${FILESDIR}"/2100_proc-mem-handling-fix.patch } K_EXTRAEINFO="For more info on pf-sources and details on how to report problems, see: \ |