1 |
zlin 08/03/01 18:47:34 |
2 |
|
3 |
Modified: kernel-2.eclass |
4 |
Log: |
5 |
Add support for K_EXTRAELOG. Use elog instead of einfo (bug #199464). |
6 |
|
7 |
Revision Changes Path |
8 |
1.208 eclass/kernel-2.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kernel-2.eclass?rev=1.208&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kernel-2.eclass?rev=1.208&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kernel-2.eclass?r1=1.207&r2=1.208 |
13 |
|
14 |
Index: kernel-2.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v |
17 |
retrieving revision 1.207 |
18 |
retrieving revision 1.208 |
19 |
diff -u -r1.207 -r1.208 |
20 |
--- kernel-2.eclass 17 Dec 2007 16:05:13 -0000 1.207 |
21 |
+++ kernel-2.eclass 1 Mar 2008 18:47:33 -0000 1.208 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2005 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.207 2007/12/17 16:05:13 dsd Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.208 2008/03/01 18:47:33 zlin Exp $ |
27 |
|
28 |
# Description: kernel.eclass rewrite for a clean base regarding the 2.6 |
29 |
# series of kernel with back-compatibility for 2.4 |
30 |
@@ -33,7 +33,8 @@ |
31 |
# K_EXTRAEINFO - this is a new-line seperated list of einfo displays in |
32 |
# postinst and can be used to carry additional postinst |
33 |
# messages |
34 |
-# K_EXTRAEWARN - same as K_EXTRAEINFO except ewarn's instead of einfo's |
35 |
+# K_EXTRAELOG - same as K_EXTRAEINFO except using elog instead of einfo |
36 |
+# K_EXTRAEWARN - same as K_EXTRAEINFO except using ewarn instead of einfo |
37 |
# K_SYMLINK - if this is set, then forcably create symlink anyway |
38 |
# |
39 |
# K_DEFCONFIG - Allow specifying a different defconfig target. |
40 |
@@ -633,10 +634,10 @@ |
41 |
[[ ! -d ${ROOT}sys ]] && kernel_is 2 6 && mkdir ${ROOT}sys |
42 |
|
43 |
echo |
44 |
- einfo "If you are upgrading from a previous kernel, you may be interested" |
45 |
- einfo "in the following documents:" |
46 |
- einfo " - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml" |
47 |
- kernel_is_2_6 && einfo " - 2.4 to 2.6 migration guide: http://www.gentoo.org/doc/en/migration-to-2.6.xml" |
48 |
+ elog "If you are upgrading from a previous kernel, you may be interested" |
49 |
+ elog "in the following documents:" |
50 |
+ elog " - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml" |
51 |
+ kernel_is_2_6 && elog " - 2.4 to 2.6 migration guide: http://www.gentoo.org/doc/en/migration-to-2.6.xml" |
52 |
echo |
53 |
|
54 |
# if K_EXTRAEINFO is set then lets display it now |
55 |
@@ -645,6 +646,12 @@ |
56 |
while read -s ELINE; do einfo "${ELINE}"; done |
57 |
fi |
58 |
|
59 |
+ # if K_EXTRAELOG is set then lets display it now |
60 |
+ if [[ -n ${K_EXTRAELOG} ]]; then |
61 |
+ echo ${K_EXTRAELOG} | fmt | |
62 |
+ while read -s ELINE; do elog "${ELINE}"; done |
63 |
+ fi |
64 |
+ |
65 |
# if K_EXTRAEWARN is set then lets display it now |
66 |
if [[ -n ${K_EXTRAEWARN} ]]; then |
67 |
echo ${K_EXTRAEWARN} | fmt | |
68 |
@@ -662,11 +669,11 @@ |
69 |
} |
70 |
|
71 |
postinst_headers() { |
72 |
- einfo "Kernel headers are usually only used when recompiling your system libc, as" |
73 |
- einfo "such, following the installation of newer headers, it is advised that you" |
74 |
- einfo "re-merge your system libc." |
75 |
- einfo "Failure to do so will cause your system libc to not make use of newer" |
76 |
- einfo "features present in the updated kernel headers." |
77 |
+ elog "Kernel headers are usually only used when recompiling your system libc, as" |
78 |
+ elog "such, following the installation of newer headers, it is advised that you" |
79 |
+ elog "re-merge your system libc." |
80 |
+ elog "Failure to do so will cause your system libc to not make use of newer" |
81 |
+ elog "features present in the updated kernel headers." |
82 |
} |
83 |
|
84 |
# pkg_setup functions |
85 |
|
86 |
|
87 |
|
88 |
-- |
89 |
gentoo-commits@l.g.o mailing list |