1 |
flameeyes 11/03/29 19:57:51 |
2 |
|
3 |
Modified: linux-info.eclass |
4 |
Log: |
5 |
Fix build with stable release kernels when sources are not available. |
6 |
|
7 |
Without this change, it will keep the '.y' value appended to KV_PATCH causing kernel_is function to fail. |
8 |
Closes bug #293395. |
9 |
|
10 |
Revision Changes Path |
11 |
1.88 eclass/linux-info.eclass |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-info.eclass?rev=1.88&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-info.eclass?rev=1.88&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/linux-info.eclass?r1=1.87&r2=1.88 |
16 |
|
17 |
Index: linux-info.eclass |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v |
20 |
retrieving revision 1.87 |
21 |
retrieving revision 1.88 |
22 |
diff -u -r1.87 -r1.88 |
23 |
--- linux-info.eclass 4 Jan 2011 17:53:13 -0000 1.87 |
24 |
+++ linux-info.eclass 29 Mar 2011 19:57:51 -0000 1.88 |
25 |
@@ -1,6 +1,6 @@ |
26 |
# Copyright 1999-2006 Gentoo Foundation |
27 |
# Distributed under the terms of the GNU General Public License v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.87 2011/01/04 17:53:13 cardoe Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/linux-info.eclass,v 1.88 2011/03/29 19:57:51 flameeyes Exp $ |
30 |
# |
31 |
# Original author: John Mylchreest <johnm@g.o> |
32 |
# Maintainer: kernel-misc@g.o |
33 |
@@ -598,10 +598,9 @@ |
34 |
else |
35 |
KV_MAJOR=$(get_version_component_range 1 ${KV_FULL}) |
36 |
KV_MINOR=$(get_version_component_range 2 ${KV_FULL}) |
37 |
- KV_PATCH=$(get_version_component_range 3- ${KV_FULL}) |
38 |
+ KV_PATCH=$(get_version_component_range 3 ${KV_FULL}) |
39 |
KV_PATCH=${KV_PATCH//-*} |
40 |
- [[ -n ${KV_FULL#*-} ]] && [[ -n ${KV_FULL//${KV_FULL#*-}} ]] \ |
41 |
- && KV_EXTRA="-${KV_FULL#*-}" |
42 |
+ KV_EXTRA="${KV_FULL#${KV_MAJOR}.${KV_MINOR}.${KV_PATCH}}" |
43 |
fi |
44 |
return 0 |
45 |
} |