Bug 164674

Summary: "unary operator expected" error in postuninstall scriptlet
Product: [Fedora] Fedora Reporter: wacheo <leealwc>
Component: scimAssignee: Ryo Dairiki <ryo-dairiki>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: extras-qa
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-08-11 11:24:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description wacheo 2005-07-29 21:10:43 UTC
Description of problem:

There is a bug in line 9 of the postuninstall scriptlet. If one of
/etc/alternatives/xinput-{ja_JP,ko_KR,zh_CN,zh_TW} does not exist, it will
output an "unary operator expected" error message.

if [ `readlink /etc/alternatives/xinput-$llcc` = "/etc/X11/xinit/xinput.d/scim" ]

should be changed to:

if [ "`readlink /etc/alternatives/xinput-$llcc`" = "/etc/X11/xinit/xinput.d/scim" ]


Version-Release number of selected component (if applicable):
- scim-1.3.3-3.fc4.i386.rpm from http://people.redhat.com/petersen/scim/
- scim-1.2.3-2.fc4.i386.rpm from FC4 Extra
- scim-1.2.3-1.fc3.i386.rpm from FC3 Extra

Comment 1 Ryo Dairiki 2005-07-30 00:06:31 UTC
Thank you.
That's a serius mistake I think.

But now we're importing scim-1.4.0 and change this section completely.
Scim-1.4.0 will not make alternatives, but scim-pinyin will make zh_*.utf8, for
example.
So this bug will be solved soon.

Comment 2 Ryo Dairiki 2005-08-01 13:45:55 UTC
We've dicided not to change this section on FC3, and FC4.
This bug will fixed in scim-1.4.0-2.4 or later.

Comment 3 Jens Petersen 2005-08-02 10:18:09 UTC
This should be fixed in scim-1.4.0-2.4.