Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Tail command causes versioncheck to fail in setup (shell) | ||
---|---|---|---|
Product: | Installation | Reporter: | jaapbril <jaap> |
Component: | code | Assignee: | AOO issues mailing list <issues> |
Status: | CONFIRMED --- | QA Contact: | |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | OOo 2.4.0 | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- |
Description
jaapbril
2008-06-04 16:45:38 UTC
@ is: Please have a look. Trying to look for it in OOo 3.0 timeframe (cws native161) is -> jaapbril: which java do you use? what is the output of "java -version"? Setting target 3.x. US$ java -version java version "1.6.0_04" Java(TM) SE Runtime Environment (build 1.6.0_04-b12) Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode) !!! NB I upgraded java (it used to be 1.4)!!! <SETUP> java_versions_supported="1.4 1.5 1.6" sunjavahotspot="HotSpot" check_jre_version() { # check version of an installed JRE javaoutput=`$java_runtime -version 2>&1 | tail ${tail_args} -1` hotspot=`echo $javaoutput | grep $sunjavahotspot` if [ ! -z "$hotspot" ]; then for i in $java_versions_supported; do versionmatch=`echo $javaoutput | grep $i` if [ ! -z "$versionmatch" ]; then java_runtime_sufficient="yes" break fi done fi } It seems, you have a pretty old version of the setup script. Today we have a new version of check_jre_version() . Can you please check this? check_jre_version() { # check version of an installed JRE javaoutput=`$java_runtime -version 2>&1 | tail ${tail_args} -1` hotspot=`echo $javaoutput | grep $sunjavahotspot` if [ ! -z "$hotspot" ]; then for i in $java_versions_supported; do versionmatch=`echo $javaoutput | grep $i` if [ ! -z "$versionmatch" ]; then java_runtime_sufficient="yes" break fi done # check new version format, where version number is not part of line 3 (1.6) if [ ! "$java_runtime_sufficient" = "yes" ]; then javaoutput=`$java_runtime -version 2>&1 | head ${tail_args} -3` for i in $java_versions_supported; do versionmatch=`echo $javaoutput | grep $i` if [ ! -z "$versionmatch" ]; then java_runtime_sufficient="yes" break fi done fi fi } Reset assignee on issues not touched by assignee in more than 1000 days. |