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
CU knurd
Hi, On 8/29/07, Thorsten Leemhuis fedora@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.
On 31.08.2007 06:06, Parag N(पराग़) wrote:
On 8/29/07, Thorsten Leemhuis fedora@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
Le Ven 31 août 2007 06:45, Thorsten Leemhuis a écrit :
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
If this is a one-off or a very unusual failure, I don't see what for.
We only ignore harmless common errors.
On Friday 31 August 2007, Nicolas Mailhot wrote:
Le Ven 31 août 2007 06:45, Thorsten Leemhuis a écrit :
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
If this is a one-off or a very unusual failure, I don't see what for.
We only ignore harmless common errors.
No, we only accept non-zero scriptlet exit statuses *very* rarely, if ever. See the last two paragraphs of the Syntax chapter of http://fedoraproject.org/wiki/Packaging/ScriptletSnippets
Thorsten Leemhuis さんは書きました:
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
I agree.
packaging@lists.fedoraproject.org