Bug 475928

Summary: gtk-update-icon-cache used incorrectly in post install and uninstall scripts
Product: [Fedora] Fedora Reporter: Bruno Wolff III <bruno>
Component: powermangaAssignee: Matthias Saou <matthias>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: matthias
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.90-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-12-22 20:23:10 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 Bruno Wolff III 2008-12-11 05:35:39 UTC
Description of problem:
There are a couple of parts to the problem. One is that 'touch' is used without requiring coreutils for the postin and postun scripts. The other is that gtk-update-icon-cache is supposed to be used in a way that will work if gtk2 isn't installed. The typical idiom given to me was:
touch --no-create /usr/share/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache --quiet /usr/share/icons/hicolor || :
fi
In addition you'll want to add these requires to the spec file:
Requires(post): coreutils
Requires(postun): coreutils

Not doing the above can cause problems when doing fresh installs or build live cds. Whether or not problems show up in a specific case is somewhat random depending on the order that packages get installed.

Version-Release number of selected component (if applicable):
powermanga-0.90-3.i386

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Matthias Saou 2008-12-22 20:23:10 UTC
Fixed in devel, thanks for the report.

Comment 2 Bruno Wolff III 2009-01-04 06:03:48 UTC
Just confirming that I am no longer seeing the install problem in rawhide.