Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19601 - openoffice 1.0.3 startup shell script has syntax error
Summary: openoffice 1.0.3 startup shell script has syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Seth Chandler
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-19 06:20 UTC by leon j. breedt
Modified: 2003-04-19 14:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description leon j. breedt 2003-04-19 06:20:38 UTC
when trying to run oofice, oowriter, etc, the following output is displayed:

( ljb@jeddah ) $ ooffice
Gnome session manager detected - session management disabled
running openoffice.org setup...
Setup complete.  Running openoffice.org...
/usr/bin/ooffice: line 206: syntax error near unexpected token `)'
/usr/bin/ooffice: line 206: `   oopadmin) exec "$OOHOME/spadmin"'

this seems to be because of missing ';;' in the case statements. also, there is
a missing esac in the shell script. fixing these errors allows openoffice to
start up without a problem.

the problematic code:

case `basename $0` in
    oosetup) exec "$OOHOME/setup"
    oopadmin) exec "$OOHOME/spadmin"
    *) exec "$OOHOME/soffice" "$@"

the working code:

case `basename $0` in
    oosetup) exec "$OOHOME/setup"
    ;;
    oopadmin) exec "$OOHOME/spadmin"
    ;;
    *) exec "$OOHOME/soffice" "$@"
    ;;
esac

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Seth Chandler 2003-04-19 14:27:23 UTC
aight this is fixed...copy the oowrapper-1.3 script to /usr/bin/ooffice 
and replace the 1.0.3 with the current version, and the <pv> with the current version =)