[Fedora-packaging] Packaging/ScriptletSnippets, fonts section: no "|| :" at the end of the fc-cache call?

Parag N(पराग़) panemade at gmail.com
Fri Aug 31 04:06:44 UTC 2007


Hi,
On 8/29/07, Thorsten Leemhuis <fedora at leemhuis.info> wrote:
> Hi all,
>
> the Fonts section on
> http://fedoraproject.org/wiki/Packaging/ScriptletSnippets
> contains this:
>
> > Use this when your package installs new fonts.
> >
> > {{{
> > %post
> > if [ -x %{_bindir}/fc-cache ]; then
> >   %{_bindir}/fc-cache %{_datadir}/fonts
> > fi
> > %postun
> > if [ "$1" = "0" ]; then
> >   if [ -x %{_bindir}/fc-cache ]; then
> >     %{_bindir}/fc-cache %{_datadir}/fonts
> >   fi
> > fi
> > }}}
>
> Is there a specific reason why there is no "|| :" at the end of
> "%{_bindir}/fc-cache %{_datadir}/fonts"? I think there should be one, as
> this happened to me during a F-7 -> rawhide update (that's still in
> progress while I'm writing this mail, so more errors might show up):
>
> >   Updating  : bitstream-vera-fonts         ################### [ 383/1850]
> > /usr/share/fonts/default/Type1: failed to write cache
> > /usr/share/fonts/default/ghostscript: failed to write cache
> > error: %post(bitstream-vera-fonts-1.10-8.noarch) scriptlet failed, exit status 2
> [...]
> >   Updating  : fontconfig                   ################### [ 416/1850]
> > /usr/share/fonts/default/Type1: failed to write cache
> > /usr/share/fonts/default/ghostscript: failed to write cache
> > /usr/share/X11/fonts/Type1: failed to write cache
> > error: %post(fontconfig-2.4.2-5.fc8.x86_64) scriptlet failed, exit status 3
> [...]
> >   Updating  : dejavu-lgc-fonts             ################### [ 548/1850]
> > /usr/share/fonts/default/ghostscript: failed to write cache
> > error: %post(dejavu-lgc-fonts-2.19-1.noarch) scriptlet failed, exit status 1
> >   Updating  : liberation-fonts             ################### [ 549/1850]
> > /usr/share/fonts/default/ghostscript: failed to write cache
> > error: %post(liberation-fonts-0.2-1.fc8.noarch) scriptlet failed, exit status 1

  This is because of timestamp problem on your machine. check " man
FcDirCacheValid" to know more why FcDirCacheValid call produced output
as " failed to write cache".

Regards,
Parag.




More information about the Fedora-packaging mailing list