[Fedora-packaging] Suggested ScriptletSnippets (icon cache) changes
ville.skytta at iki.fi
Wed Jan 28 16:46:40 UTC 2009
On Wednesday 28 January 2009, Bruno Wolff III wrote:
> On Wed, Jan 28, 2009 at 01:36:36 +0200,
> Ville Skyttä <ville.skytta at iki.fi> wrote:
> > 2) Append " &>/dev/null" to the "touch" line in %postun. If "touch" is
> > not available when the package is removed, I find it more than likely
> > that GTK+ or KDE are not there to benefit from icon cache updates any
> > longer either. /usr/share may also be mounted read only with
> > %_netsharedpath.
> The right way to do things is to make sure touch is available by
> having an approiate script dependency on the package that provides touch.
> Something like:
> Requires(pre): coreutils
The point of the suggestion I posted is to avoid *unnecessary* dependencies
like this one as well as unnecessary calls to touch and
gtk-update-icon-cache. The part of my original message you quoted above
explains why I think it doesn't matter if touch is available at %postun time
or not (my assumption is that coreutils can't be removed while gtk2 or
kdelibs is installed). If I'm correct and it doesn't
matter, "Requires(postun): coreutils" is just unnecessary bloat in repodata,
rpmdb and spec files.
More information about the Fedora-packaging