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

Thorsten Leemhuis fedora at leemhuis.info
Fri Aug 31 04:45:28 UTC 2007


On 31.08.2007 06:06, Parag N(पराग़) wrote:
> On 8/29/07, Thorsten Leemhuis <fedora at leemhuis.info> wrote:
>> 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".

I noticed in between that is was something stupid on my side, but that
doesn't matter much IMHO. The ScriptletSnippets IMHO and AFAIK should be
adjusted to make sure the script for this or similar errors don't end
with a errorlevel != 0

CU
thl




More information about the Fedora-packaging mailing list