Bug 652909

Summary: use %gconf_schema_prepare macro
Product: [Fedora] Fedora Reporter: Andre Robatino <robatino>
Component: ibus-chewingAssignee: Ding-Yi Chen <dchen>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dchen, i18n-bugs, shawn.p.huang
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ibus-chewing-1.3.9.2-1.fc13 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-12-17 08:39:04 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 Andre Robatino 2010-11-13 13:17:16 UTC
Description of problem:

Due to the following, it's impossible to update ibus-chewing.

[root@localhost ~]# yum update ibus-chewing
Loaded plugins: langpacks, presto, refresh-packagekit, security
Adding en_US to language list
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package ibus-chewing.x86_64 0:1.3.7.20100910-1.fc15 will be updated
---> Package ibus-chewing.x86_64 0:1.3.8-1.fc15 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package              Arch           Version              Repository       Size
================================================================================
Updating:
 ibus-chewing         x86_64         1.3.8-1.fc15         rawhide          65 k

Transaction Summary
================================================================================
Upgrade       1 Package(s)

Total size: 65 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Error in PREIN scriptlet in rpm package ibus-chewing-1.3.8-1.fc15.x86_64
error: %pre(ibus-chewing-1.3.8-1.fc15.x86_64) scriptlet failed, exit status 1
error:   install: %pre scriptlet failed (2), skipping ibus-chewing-1.3.8-1.fc15
ibus-chewing-1.3.7.20100910-1.fc15.x86_64 was supposed to be removed but is not!

Failed:
  ibus-chewing.x86_64 0:1.3.8-1.fc15                                            

Complete!
[root@localhost ~]#

Version-Release number of selected component (if applicable):
1.3.8-1.fc15

How reproducible:
always

Comment 1 Jens Petersen 2010-11-17 09:43:11 UTC
Erm, why remove all the protection from the scriptlets?

http://pkgs.fedoraproject.org/gitweb/?p=ibus-chewing.git;a=commitdiff;h=cf591d0c12771f966715c40eee6fcf8662c23329

Comment 2 Jens Petersen 2010-11-17 09:45:28 UTC
Any if you want to do that you should probably change "[ ... ] &&" to
"if" statements.  That is a common error with using && in rpm scripts.
Anyway either way works I think.

Comment 3 Mamoru TASAKA 2010-11-17 12:04:46 UTC
And anyway now it is better to use %gconf_schema_prepare or so
now provided by GConf2:

https://fedoraproject.org/wiki/Packaging/ScriptletSnippets#GConf

Comment 4 Jens Petersen 2010-11-18 05:18:00 UTC
Nils fixed the immediate problem in ibus-chewing-1.3.8-2.fc15.

But leaving open to get comment 3 addressed.

Comment 5 Ding-Yi Chen 2010-11-19 00:43:11 UTC
(In reply to comment #3)
> And anyway now it is better to use %gconf_schema_prepare or so
> now provided by GConf2:
> 
> https://fedoraproject.org/wiki/Packaging/ScriptletSnippets#GConf

Thanks, but those scripts are not available in RHEL6, thus I won't be able to update myself with my RHEL boxes.

Comment 6 Fedora Update System 2010-11-19 03:32:23 UTC
ibus-chewing-1.3.9.2-1.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/ibus-chewing-1.3.9.2-1.fc14

Comment 7 Fedora Update System 2010-11-19 03:32:36 UTC
ibus-chewing-1.3.9.2-1.fc13 has been submitted as an update for Fedora 13.
https://admin.fedoraproject.org/updates/ibus-chewing-1.3.9.2-1.fc13

Comment 8 Fedora Update System 2010-11-19 22:29:43 UTC
ibus-chewing-1.3.9.2-1.fc13 has been pushed to the Fedora 13 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update ibus-chewing'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/ibus-chewing-1.3.9.2-1.fc13

Comment 9 Fedora Update System 2010-12-17 08:38:59 UTC
ibus-chewing-1.3.9.2-1.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 10 Fedora Update System 2011-01-13 23:36:55 UTC
ibus-chewing-1.3.9.2-1.fc13 has been pushed to the Fedora 13 stable repository.  If problems still persist, please make note of it in this bug report.