https://bugzilla.redhat.com/show_bug.cgi?id=1013989
Bug ID: 1013989 Summary: ibus-rawcode needs to have ibus write-cache --system in %post and %postun Product: Fedora Version: 20 Component: ibus-rawcode Assignee: psatpute@redhat.com Reporter: tfujiwar@redhat.com QA Contact: extras-qa@fedoraproject.org CC: i18n-bugs@lists.fedoraproject.org, psatpute@redhat.com, shawn.p.huang@gmail.com
ibus 1.5.3 or later supports the system cache besides the user cache and the system cache can reduce the launching time of ibus-daemon when the users log into the desktop session initially.
I'd ask the engines to have 'ibus write-cache --system' in their %post and %postun if the engines are installed by default comps.
Please refer the %post and %postun in ibus-anthy: http://pkgs.fedoraproject.org/cgit/ibus-anthy.git/tree/ibus-anthy.spec#n105
https://bugzilla.redhat.com/show_bug.cgi?id=1013989
Pravin Satpute psatpute@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |tfujiwar@redhat.com Flags| |needinfo?(tfujiwar@redhat.c | |om)
--- Comment #1 from Pravin Satpute psatpute@redhat.com --- Sure. Below patch is sufficient, right?
******************* %post /sbin/ldconfig # recreate icon cache touch --no-create %{_datadir}/icons/hicolor || : [ -x %{_bindir}/gtk-update-icon-cache ] && \ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : [ -x %{_bindir}/ibus ] && \ %{_bindir}/ibus write-cache --system &>/dev/null || :
%postun /sbin/ldconfig # recreate icon cache touch --no-create %{_datadir}/icons/hicolor || : [ -x %{_bindir}/gtk-update-icon-cache ] && \ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || : [ -x %{_bindir}/ibus ] && \ %{_bindir}/ibus write-cache --system &>/dev/null || : ************************
https://bugzilla.redhat.com/show_bug.cgi?id=1013989
fujiwara tfujiwar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(tfujiwar@redhat.c | |om) |
--- Comment #2 from fujiwara tfujiwar@redhat.com --- (In reply to Pravin Satpute from comment #1)
%post /sbin/ldconfig # recreate icon cache touch --no-create %{_datadir}/icons/hicolor || : [ -x %{_bindir}/gtk-update-icon-cache ] && \ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
I think ibus-rawcode does not have to run gtk-update-icon-cache because ibus-rawcode.png exists in /usr/share/ibus-rawcode/icons but not /usr/share/icons .
[ -x %{_bindir}/ibus ] && \ %{_bindir}/ibus write-cache --system &>/dev/null || :
Yes, I'd ask this line only.
%postun /sbin/ldconfig # recreate icon cache touch --no-create %{_datadir}/icons/hicolor || : [ -x %{_bindir}/gtk-update-icon-cache ] && \ %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
I think ibus-rawcode does not have to run gtk-update-icon-cache because ibus-rawcode.png exists in /usr/share/ibus-rawcode/icons but not /usr/share/icons .
[ -x %{_bindir}/ibus ] && \ %{_bindir}/ibus write-cache --system &>/dev/null || :
Yes, I'd ask this line only.
Also please add 'Require: ibus >= 1.5.3' in ibus-rawcode.spec for 'ibus write-cache'.
https://bugzilla.redhat.com/show_bug.cgi?id=1013989
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |MODIFIED
https://bugzilla.redhat.com/show_bug.cgi?id=1013989
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- ibus-rawcode-1.3.2-3.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/ibus-rawcode-1.3.2-3.fc20
https://bugzilla.redhat.com/show_bug.cgi?id=1013989
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- Package ibus-rawcode-1.3.2-3.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ibus-rawcode-1.3.2-3.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-18472/ibus-rawcode-1.3.2... then log in and leave karma (feedback).
https://bugzilla.redhat.com/show_bug.cgi?id=1013989
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version| |ibus-rawcode-1.3.2-3.fc20 Resolution|--- |ERRATA Last Closed| |2013-11-10 01:41:25
--- Comment #5 from Fedora Update System updates@fedoraproject.org --- ibus-rawcode-1.3.2-3.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
i18n-bugs@lists.fedoraproject.org