Gentoo Archives: gentoo-commits

From: Austin English <wizardedit@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/ck-sources/
Date: Thu, 07 Jul 2016 19:48:33
Message-Id: 1467920820.dd81cf835a92abcd44f3e7c03419f30233b46150.wizardedit@gentoo
1 commit: dd81cf835a92abcd44f3e7c03419f30233b46150
2 Author: Austin English <wizardedit <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 7 19:28:10 2016 +0000
4 Commit: Austin English <wizardedit <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 7 19:47:00 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd81cf83
7
8 sys-kernel/ck-sources: bump to EAPI 6, add maintainer-needed
9
10 Package-Manager: portage-2.2.28
11
12 sys-kernel/ck-sources/ck-sources-4.3.6-r1.ebuild | 91 ++++++++++++++++++++++++
13 sys-kernel/ck-sources/metadata.xml | 1 +
14 2 files changed, 92 insertions(+)
15
16 diff --git a/sys-kernel/ck-sources/ck-sources-4.3.6-r1.ebuild b/sys-kernel/ck-sources/ck-sources-4.3.6-r1.ebuild
17 new file mode 100644
18 index 0000000..f0a50e5
19 --- /dev/null
20 +++ b/sys-kernel/ck-sources/ck-sources-4.3.6-r1.ebuild
21 @@ -0,0 +1,91 @@
22 +# Copyright 1999-2016 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +# $Id$
25 +
26 +EAPI="6"
27 +ETYPE="sources"
28 +KEYWORDS="~amd64 ~x86"
29 +
30 +HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches/
31 + http://users.tpg.com.au/ckolivas/kernel/"
32 +
33 +K_WANT_GENPATCHES="base extras experimental"
34 +K_EXP_GENPATCHES_PULL="1"
35 +K_EXP_GENPATCHES_NOUSE="1"
36 +K_GENPATCHES_VER="8"
37 +K_SECURITY_UNSUPPORTED="1"
38 +K_DEBLOB_AVAILABLE="1"
39 +
40 +inherit kernel-2
41 +detect_version
42 +detect_arch
43 +
44 +K_BRANCH_ID="${KV_MAJOR}.${KV_MINOR}"
45 +
46 +DESCRIPTION="Con Kolivas' high performance patchset and Gentoo's genpatches for Linux ${K_BRANCH_ID}"
47 +
48 +#-- If Gentoo-Sources don't follow then extra incremental patches are needed -
49 +
50 +XTRA_INCP_MIN=""
51 +XTRA_INCP_MAX=""
52 +
53 +#--
54 +
55 +CK_VERSION="3"
56 +
57 +CK_FILE="patch-${K_BRANCH_ID}-ck${CK_VERSION}.xz"
58 +
59 +CK_BASE_URL="http://ck.kolivas.org/patches/4.0"
60 +CK_LVER_URL="${CK_BASE_URL}/${K_BRANCH_ID}/${K_BRANCH_ID}-ck${CK_VERSION}"
61 +CK_URI="${CK_LVER_URL}/${CK_FILE}"
62 +
63 +#-- Build extra incremental patches list --------------------------------------
64 +
65 +LX_INCP_URI=""
66 +LX_INCP_LIST=""
67 +if [ -n "${XTRA_INCP_MIN}" ]; then
68 + LX_INCP_URL="${KERNEL_BASE_URI}/incr"
69 + for i in `seq ${XTRA_INCP_MIN} ${XTRA_INCP_MAX}`; do
70 + LX_INCP[i]="patch-${K_BRANCH_ID}.${i}-$(($i+1)).bz2"
71 + LX_INCP_URI="${LX_INCP_URI} ${LX_INCP_URL}/${LX_INCP[i]}"
72 + LX_INCP_LIST="${LX_INCP_LIST} ${DISTDIR}/${LX_INCP[i]}"
73 + done
74 +fi
75 +
76 +#-- CK needs sometimes to patch itself... ---------------------------
77 +
78 +CK_INCP_URI=""
79 +CK_INCP_LIST=""
80 +
81 +#-- Local patches needed for the ck-patches to apply smoothly -------
82 +
83 +PRE_CK_FIX=""
84 +POST_CK_FIX=""
85 +
86 +#--
87 +
88 +SRC_URI="${KERNEL_URI} ${LX_INCP_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CK_INCP_URI} ${CK_URI}"
89 +
90 +UNIPATCH_LIST="${LX_INCP_LIST} ${PRE_CK_FIX} ${DISTDIR}/${CK_FILE} ${CK_INCP_LIST} ${POST_CK_FIX}"
91 +UNIPATCH_STRICTORDER="yes"
92 +
93 +#-- Since experimental genpatches && we want BFQ irrespective of experimental -
94 +
95 +K_EXP_GENPATCHES_LIST="50*_*.patch*"
96 +
97 +src_prepare() {
98 + default
99 +
100 +#-- Comment out CK's EXTRAVERSION in Makefile ---------------------------------
101 +
102 + sed -i -e 's/\(^EXTRAVERSION :=.*$\)/# \1/' "${S}/Makefile"
103 +}
104 +
105 +pkg_postinst() {
106 +
107 + kernel-2_pkg_postinst
108 +
109 + elog
110 + elog "For more info on this patchset, see: https://forums.gentoo.org/viewtopic-t-941030-start-0.html"
111 + elog
112 +}
113
114 diff --git a/sys-kernel/ck-sources/metadata.xml b/sys-kernel/ck-sources/metadata.xml
115 index 3357f85..f6e6c10 100644
116 --- a/sys-kernel/ck-sources/metadata.xml
117 +++ b/sys-kernel/ck-sources/metadata.xml
118 @@ -1,6 +1,7 @@
119 <?xml version="1.0" encoding="UTF-8"?>
120 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
121 <pkgmetadata>
122 + <!-- maintainer-needed -->
123 <use>
124 <flag name="bfsonly">BFS by itself vs the full ck patchset</flag>
125 <flag name="experimental">Allow experimental code. Can break or degrade