1 |
commit: af63456cfad8b5d3b1581c00bd82651ecdd51485 |
2 |
Author: kuzetsa <kuzetsa <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Dec 5 18:28:22 2017 +0000 |
4 |
Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 6 12:31:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af63456c |
7 |
|
8 |
sys-kernel/ck-sources: experimental USE handling / 4.13 EOL |
9 |
|
10 |
user-facing einfo message for genpatches-related USE |
11 |
update metadata.xml (with URL) for experimental USE |
12 |
removal of legacy K_EXP_* (workaround) behavior |
13 |
converted to IUSE experimental (via kernel-2.eclass) |
14 |
|
15 |
user-facing ewarn message advising users of EOL |
16 |
|
17 |
Closes: https://github.com/gentoo/gentoo/pull/6428 |
18 |
Package-Manager: Portage-2.3.13, Repoman-2.3.3 |
19 |
|
20 |
sys-kernel/ck-sources/ck-sources-4.13.16-r1.ebuild | 64 ++++++++++++++++++++++ |
21 |
sys-kernel/ck-sources/metadata.xml | 1 + |
22 |
2 files changed, 65 insertions(+) |
23 |
|
24 |
diff --git a/sys-kernel/ck-sources/ck-sources-4.13.16-r1.ebuild b/sys-kernel/ck-sources/ck-sources-4.13.16-r1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..a754ac4a5a1 |
27 |
--- /dev/null |
28 |
+++ b/sys-kernel/ck-sources/ck-sources-4.13.16-r1.ebuild |
29 |
@@ -0,0 +1,64 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI="6" |
34 |
+ETYPE="sources" |
35 |
+KEYWORDS="~amd64 ~x86" |
36 |
+ |
37 |
+HOMEPAGE="https://dev.gentoo.org/~mpagano/genpatches/ |
38 |
+ http://kernel.kolivas.org/" |
39 |
+ |
40 |
+IUSE="experimental" |
41 |
+ |
42 |
+K_WANT_GENPATCHES="base extras experimental" |
43 |
+K_GENPATCHES_VER="19" |
44 |
+K_SECURITY_UNSUPPORTED="1" |
45 |
+K_DEBLOB_AVAILABLE="1" |
46 |
+ |
47 |
+PYTHON_COMPAT=( python2_7 ) |
48 |
+inherit python-any-r1 kernel-2 |
49 |
+detect_version |
50 |
+detect_arch |
51 |
+ |
52 |
+DEPEND="deblob? ( ${PYTHON_DEPS} )" |
53 |
+ |
54 |
+K_BRANCH_ID="${KV_MAJOR}.${KV_MINOR}" |
55 |
+ |
56 |
+DESCRIPTION="Con Kolivas' high performance patchset and Gentoo's genpatches for Linux ${K_BRANCH_ID}" |
57 |
+ |
58 |
+CK_VERSION="1" |
59 |
+ |
60 |
+CK_FILE="patch-${K_BRANCH_ID}-ck${CK_VERSION}.xz" |
61 |
+ |
62 |
+CK_BASE_URL="http://ck.kolivas.org/patches/4.0" |
63 |
+CK_LVER_URL="${CK_BASE_URL}/${K_BRANCH_ID}/${K_BRANCH_ID}-ck${CK_VERSION}" |
64 |
+CK_URI="${CK_LVER_URL}/${CK_FILE}" |
65 |
+ |
66 |
+SRC_URI="${KERNEL_URI} ${GENPATCHES_URI} ${ARCH_URI} ${CK_URI}" |
67 |
+ |
68 |
+UNIPATCH_LIST="${DISTDIR}/${CK_FILE}" |
69 |
+UNIPATCH_STRICTORDER="yes" |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ use deblob && python-any-r1_pkg_setup |
73 |
+ kernel-2_pkg_setup |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ |
78 |
+#-- Comment out CK's EXTRAVERSION in Makefile --------------------------------- |
79 |
+ |
80 |
+ # linux-info eclass cannot handle recursively expanded variables in Makefile #490328 |
81 |
+ sed -i -e 's/\(^EXTRAVERSION :=.*$\)/# \1/' "${S}/Makefile" || die |
82 |
+ |
83 |
+ kernel-2_src_prepare |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() { |
87 |
+ elog "ck-sources previously enabled CPU optimizations by default." |
88 |
+ elog "USE=\"experimental\" is now required to enable this patch." |
89 |
+ elog "this can be set in /etc/portage/package.use (or make.conf)" |
90 |
+ |
91 |
+ ewarn "kernel.org marked 4.13 branch EOL (end of life)" |
92 |
+ ewarn "upgrading to a newer release is recommended." |
93 |
+} |
94 |
|
95 |
diff --git a/sys-kernel/ck-sources/metadata.xml b/sys-kernel/ck-sources/metadata.xml |
96 |
index 92ef277f18e..4eadcd1d08a 100644 |
97 |
--- a/sys-kernel/ck-sources/metadata.xml |
98 |
+++ b/sys-kernel/ck-sources/metadata.xml |
99 |
@@ -17,6 +17,7 @@ |
100 |
<flag name="deblob">Remove binary blobs from kernel sources to provide |
101 |
libre license compliance. |
102 |
</flag> |
103 |
+ <flag name="experimental">Apply experimental patches; for more information, see "https://wiki.gentoo.org/wiki/Project:Kernel/Experimental".</flag> |
104 |
</use> |
105 |
<upstream> |
106 |
<remote-id type="cpe">cpe:/o:linux:linux_kernel</remote-id> |