http://qa.mandrakesoft.com/show_bug.cgi?id=6367

           Summary: package installation fails to update cache file
           Product: XFree86-100dpi-fonts
           Version: 4.3-9mdk
          Platform: PC
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: packaging
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The postinstall script only updates the fonts.cache.1 file in the 100dpi
directory; the file /usr/X11R6/lib/X11/fonts/fonts.cache.1 doesn't get updated
when the package is installed.  As a result, programs using Qt (and probably
others) can't access the 100dpi fonts.  There is a sample progam in the
Qt documentation for QFontDatabase; it lists the fonts available on a system.
When the entry in /usr/X11R6/lib/X11/fonts/fonts.cache.1 for the 100dpi directory
doesn't exist, Qt isn't able to find the fonts, e.g. Lucidatypewriter.

This behavior can be demonstrated with the following sequence of operations:

==================> first, remove the font package entirely:

[EMAIL PROTECTED] tmp]# rpm -e --nodeps XFree86-100dpi-fonts-4.3-24mdk
[EMAIL PROTECTED] tmp]# rm -rf /usr/X11R6/lib/X11/fonts/100dpi 
[EMAIL PROTECTED] tmp]# cat /usr/X11R6/lib/X11/fonts/fonts.cache-1
"encodings" 0 ".dir"
"Speedo" 0 ".dir"
"TTF" 0 ".dir"
"Type1" 0 ".dir"
"mdk" 0 ".dir"
"misc" 0 ".dir"
"75dpi" 0 ".dir"
"MathML" 0 ".dir"
"100dpi" 0 ".dir"

[EMAIL PROTECTED] tmp]# fc-cache
[EMAIL PROTECTED] tmp]# cat /usr/X11R6/lib/X11/fonts/fonts.cache-1
"encodings" 0 ".dir"
"Speedo" 0 ".dir"
"TTF" 0 ".dir"
"Type1" 0 ".dir"
"mdk" 0 ".dir"
"misc" 0 ".dir"
"75dpi" 0 ".dir"
"MathML" 0 ".dir"

==================> then, install the font package:

[EMAIL PROTECTED] tmp]# rpm -i XFree86-100dpi-fonts-4.3-24mdk.i586.rpm 
[EMAIL PROTECTED] tmp]# cat /usr/X11R6/lib/X11/fonts/fonts.cache-1
"encodings" 0 ".dir"
"Speedo" 0 ".dir"
"TTF" 0 ".dir"
"Type1" 0 ".dir"
"mdk" 0 ".dir"
"misc" 0 ".dir"
"75dpi" 0 ".dir"
"MathML" 0 ".dir"

==================> But this fixes it:

[EMAIL PROTECTED] tmp]# fc-cache
[EMAIL PROTECTED] tmp]# cat /usr/X11R6/lib/X11/fonts/fonts.cache-1
"encodings" 0 ".dir"
"Speedo" 0 ".dir"
"TTF" 0 ".dir"
"Type1" 0 ".dir"
"mdk" 0 ".dir"
"misc" 0 ".dir"
"75dpi" 0 ".dir"
"MathML" 0 ".dir"
"100dpi" 0 ".dir"

--------------------------------------------------------------
The postinstall script for the package is:

[EMAIL PROTECTED] glenn]$ rpm -qp --scripts XFree86-100dpi-fonts-4.3-24mdk.i586.rpm 
postinstall scriptlet (through /bin/sh):
umask 133
cd /usr/X11R6/lib/X11/fonts/100dpi
mkfontdir || :
/usr/bin/fc-cache . || :
/usr/sbin/chkfontpath -q -a /usr/X11R6/lib/X11/fonts/100dpi:unscaled

so, in addition to calling 'fc-cache' for the current directory, it should
also (perhaps only??) be called without a directory argument.

The same problem exists for the 75dpi font package, and, perhaps, others.

-- 
Configure bugmail: http://qa.mandrakesoft.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to