From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JVWkE-0002q5-T2 for garchives@archives.gentoo.org; Sat, 01 Mar 2008 18:47:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 60A6DE079F; Sat, 1 Mar 2008 18:47:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1423BE079F for ; Sat, 1 Mar 2008 18:47:37 +0000 (UTC) Received: from stork.gentoo.org (stork.gentoo.org [64.127.104.133]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 0618766B35 for ; Sat, 1 Mar 2008 18:47:35 +0000 (UTC) Received: from zlin by stork.gentoo.org with local (Exim 4.68) (envelope-from ) id 1JVWkA-0003YM-85 for gentoo-commits@lists.gentoo.org; Sat, 01 Mar 2008 18:47:34 +0000 From: "Bo Oersted Andresen (zlin)" To: gentoo-commits@lists.gentoo.org Reply-To: gentoo-dev@lists.gentoo.org, zlin@gentoo.org Subject: [gentoo-commits] gentoo-x86 commit in eclass: kernel-2.eclass X-VCS-Repository: gentoo-x86 X-VCS-Files: kernel-2.eclass X-VCS-Directories: eclass X-VCS-Committer: zlin X-VCS-Committer-Name: Bo Oersted Andresen Content-Type: text/plain; charset=utf8 Message-Id: Sender: Bo Oersted Andresen Date: Sat, 01 Mar 2008 18:47:34 +0000 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 17ba3b24-023c-4aad-9f8d-e3ffb991df68 X-Archives-Hash: 4df014a9531977ed5ad19bce661f41c0 zlin 08/03/01 18:47:34 Modified: kernel-2.eclass Log: Add support for K_EXTRAELOG. Use elog instead of einfo (bug #199464). Revision Changes Path 1.208 eclass/kernel-2.eclass file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kernel-2.ec= lass?rev=3D1.208&view=3Dmarkup plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kernel-2.ec= lass?rev=3D1.208&content-type=3Dtext/plain diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/kernel-2.ec= lass?r1=3D1.207&r2=3D1.208 Index: kernel-2.eclass =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v retrieving revision 1.207 retrieving revision 1.208 diff -u -r1.207 -r1.208 --- kernel-2.eclass 17 Dec 2007 16:05:13 -0000 1.207 +++ kernel-2.eclass 1 Mar 2008 18:47:33 -0000 1.208 @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.207 2007/1= 2/17 16:05:13 dsd Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kernel-2.eclass,v 1.208 2008/0= 3/01 18:47:33 zlin Exp $ =20 # Description: kernel.eclass rewrite for a clean base regarding the 2.6 # series of kernel with back-compatibility for 2.4 @@ -33,7 +33,8 @@ # K_EXTRAEINFO - this is a new-line seperated list of einfo displays i= n # postinst and can be used to carry additional postinst # messages -# K_EXTRAEWARN - same as K_EXTRAEINFO except ewarn's instead of einfo'= s +# K_EXTRAELOG - same as K_EXTRAEINFO except using elog instead of einf= o +# K_EXTRAEWARN - same as K_EXTRAEINFO except using ewarn instead of ei= nfo # K_SYMLINK - if this is set, then forcably create symlink anyway # # K_DEFCONFIG - Allow specifying a different defconfig target. @@ -633,10 +634,10 @@ [[ ! -d ${ROOT}sys ]] && kernel_is 2 6 && mkdir ${ROOT}sys =20 echo - einfo "If you are upgrading from a previous kernel, you may be interest= ed" - einfo "in the following documents:" - einfo " - General upgrade guide: http://www.gentoo.org/doc/en/kernel-u= pgrade.xml" - kernel_is_2_6 && einfo " - 2.4 to 2.6 migration guide: http://www.gent= oo.org/doc/en/migration-to-2.6.xml" + elog "If you are upgrading from a previous kernel, you may be intereste= d" + elog "in the following documents:" + elog " - General upgrade guide: http://www.gentoo.org/doc/en/kernel-up= grade.xml" + kernel_is_2_6 && elog " - 2.4 to 2.6 migration guide: http://www.gento= o.org/doc/en/migration-to-2.6.xml" echo =20 # if K_EXTRAEINFO is set then lets display it now @@ -645,6 +646,12 @@ while read -s ELINE; do einfo "${ELINE}"; done fi =20 + # if K_EXTRAELOG is set then lets display it now + if [[ -n ${K_EXTRAELOG} ]]; then + echo ${K_EXTRAELOG} | fmt | + while read -s ELINE; do elog "${ELINE}"; done + fi + # if K_EXTRAEWARN is set then lets display it now if [[ -n ${K_EXTRAEWARN} ]]; then echo ${K_EXTRAEWARN} | fmt | @@ -662,11 +669,11 @@ } =20 postinst_headers() { - einfo "Kernel headers are usually only used when recompiling your syste= m libc, as" - einfo "such, following the installation of newer headers, it is advised= that you" - einfo "re-merge your system libc." - einfo "Failure to do so will cause your system libc to not make use of = newer" - einfo "features present in the updated kernel headers." + elog "Kernel headers are usually only used when recompiling your system= libc, as" + elog "such, following the installation of newer headers, it is advised = that you" + elog "re-merge your system libc." + elog "Failure to do so will cause your system libc to not make use of n= ewer" + elog "features present in the updated kernel headers." } =20 # pkg_setup functions --=20 gentoo-commits@lists.gentoo.org mailing list