1 |
mpagano 15/06/27 15:36:07 |
2 |
|
3 |
Modified: ChangeLog kernel-2.eclass |
4 |
Log: |
5 |
Add the kdbus use flag and eclass variable to the kernel-2.eclass for optional kdbus inclusion. |
6 |
|
7 |
Revision Changes Path |
8 |
1.1688 eclass/ChangeLog |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1688&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?rev=1.1688&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/ChangeLog?r1=1.1687&r2=1.1688 |
13 |
|
14 |
Index: ChangeLog |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v |
17 |
retrieving revision 1.1687 |
18 |
retrieving revision 1.1688 |
19 |
diff -u -r1.1687 -r1.1688 |
20 |
--- ChangeLog 27 Jun 2015 00:50:55 -0000 1.1687 |
21 |
+++ ChangeLog 27 Jun 2015 15:36:06 -0000 1.1688 |
22 |
@@ -1,6 +1,10 @@ |
23 |
# ChangeLog for eclass directory |
24 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1687 2015/06/27 00:50:55 mpagano Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1688 2015/06/27 15:36:06 mpagano Exp $ |
27 |
+ |
28 |
+ 27 Jun 2015; Mike Pagano <mpagano@g.o> kernel-2.eclass: |
29 |
+ Add the kdbus use flag and eclass variable to the kernel-2.eclass for |
30 |
+ optional kdbus inclusion. |
31 |
|
32 |
27 Jun 2015; Mike Pagano <mpagano@g.o> kernel-2.eclass: |
33 |
Reverting kdbus changes in eclass. Caused invalid iuse for other ebuilds. |
34 |
|
35 |
|
36 |
|
37 |
1.308 eclass/kernel-2.eclass |
38 |
|
39 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kernel-2.eclass?rev=1.308&view=markup |
40 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kernel-2.eclass?rev=1.308&content-type=text/plain |
41 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/kernel-2.eclass?r1=1.307&r2=1.308 |
42 |
|
43 |
Index: kernel-2.eclass |
44 |
=================================================================== |
45 |
RCS file: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v |
46 |
retrieving revision 1.307 |
47 |
retrieving revision 1.308 |
48 |
diff -u -r1.307 -r1.308 |
49 |
--- kernel-2.eclass 27 Jun 2015 00:50:55 -0000 1.307 |
50 |
+++ kernel-2.eclass 27 Jun 2015 15:36:06 -0000 1.308 |
51 |
@@ -1,6 +1,6 @@ |
52 |
# Copyright 1999-2015 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.307 2015/06/27 00:50:55 mpagano Exp $ |
55 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.308 2015/06/27 15:36:06 mpagano Exp $ |
56 |
|
57 |
# Description: kernel.eclass rewrite for a clean base regarding the 2.6 |
58 |
# series of kernel with back-compatibility for 2.4 |
59 |
@@ -65,6 +65,9 @@ |
60 |
# K_LONGTERM - If set, the eclass will search for the kernel source |
61 |
# in the long term directories on the upstream servers |
62 |
# as the location has been changed by upstream |
63 |
+# K_KDBUS_AVAILABLE - If set, the ebuild contains the option of installing the |
64 |
+# kdbus patch. This patch is not installed without the 'kdbus' |
65 |
+# and 'experimental' use flags. |
66 |
# H_SUPPORTEDARCH - this should be a space separated list of ARCH's which |
67 |
# can be supported by the headers ebuild |
68 |
|
69 |
@@ -451,6 +454,10 @@ |
70 |
DESCRIPTION="Sources based on the Linux Kernel." |
71 |
IUSE="symlink build" |
72 |
|
73 |
+ if [[ -n K_KDBUS_AVAILABLE ]]; then |
74 |
+ IUSE="${IUSE} kdbus" |
75 |
+ fi |
76 |
+ |
77 |
# Bug #266157, deblob for libre support |
78 |
if [[ -z ${K_PREDEBLOBBED} ]] ; then |
79 |
# Bug #359865, force a call to detect_version if needed |
80 |
@@ -1013,6 +1020,11 @@ |
81 |
UNIPATCH_DROP+=" 5000_enable-additional-cpu-optimizations-for-gcc.patch" |
82 |
fi |
83 |
fi |
84 |
+ |
85 |
+ # if kdbus use flag is not set, drop the kdbus patch |
86 |
+ if [[ $UNIPATCH_DROP != *"5015_kdbus*.patch"* ]] && ! use kdbus; then |
87 |
+ UNIPATCH_DROP="${UNIPATCH_DROP} 5015_kdbus*.patch" |
88 |
+ fi |
89 |
fi |
90 |
done |