/[gentoo-x86]/eclass/java-utils-2.eclass
Gentoo

Diff of /eclass/java-utils-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.82 Revision 1.83
4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> 4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
5# Copyright (c) 2004-2005, Gentoo Foundation 5# Copyright (c) 2004-2005, Gentoo Foundation
6# 6#
7# Licensed under the GNU General Public License, v2 7# Licensed under the GNU General Public License, v2
8# 8#
9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.82 2007/04/29 13:13:03 caster Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.83 2007/05/04 17:20:08 caster Exp $
10 10
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
14# @eclass-shortdesc Java Utility eclass 14# @eclass-shortdesc Java Utility eclass
2205# 2205#
2206# ------------------------------------------------------------------------------ 2206# ------------------------------------------------------------------------------
2207java-pkg_setup-vm() { 2207java-pkg_setup-vm() {
2208 debug-print-function ${FUNCNAME} $* 2208 debug-print-function ${FUNCNAME} $*
2209 2209
2210 export LANG="C" LC_ALL="C"
2211
2210 local vendor="$(java-pkg_get-vm-vendor)" 2212 local vendor="$(java-pkg_get-vm-vendor)"
2211 if [[ "${vendor}" == "sun" ]] && java-pkg_is-vm-version-ge "1.5" ; then 2213 if [[ "${vendor}" == "sun" ]] && java-pkg_is-vm-version-ge "1.5" ; then
2212 addpredict "/dev/random" 2214 addpredict "/dev/random"
2213 elif [[ "${vendor}" == "ibm" ]]; then 2215 elif [[ "${vendor}" == "ibm" ]]; then
2214 addpredict "/proc/self/maps" 2216 addpredict "/proc/self/maps"
2215 addpredict "/proc/cpuinfo" 2217 addpredict "/proc/cpuinfo"
2216 export LANG="C" LC_ALL="C"
2217 elif [[ "${vendor}" == "jrockit" ]]; then 2218 elif [[ "${vendor}" == "jrockit" ]]; then
2218 addpredict "/proc/cpuinfo" 2219 addpredict "/proc/cpuinfo"
2219 fi 2220 fi
2220} 2221}
2221 2222

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83

  ViewVC Help
Powered by ViewVC 1.1.20