font autoprovides are not working for filenames with spaces
+++ This bug was initially created as a clone of Bug #491510 +++
The new font autoprovides are working well for some font formats but are not processing others:
1. ttc files: http://koji.fedoraproject.org/koji/rpminfo?rpmID=1026593
2. pfa files: http://koji.fedoraproject.org/koji/rpminfo?rpmID=1126190
3. compressed pcf fonts: http://koji.fedoraproject.org/koji/rpminfo?rpmID=1054305
(and probably plain pcf fonts though I could not locate a pcf package that was properly converted yet)
--- Additional comment from email@example.com on 2009-03-22 08:52:40 EDT ---
Also, it seems to fail even for plain ttf files, when they have a space in their name: http://koji.fedoraproject.org/koji/rpminfo?rpmID=1055798
--- Additional comment from firstname.lastname@example.org on 2009-03-23 02:28:14 EDT ---
The problem with .ttc and .pfa is that neither is seen as font data by libmagic:
[pmatilai@localhost cjkuni-ukai-fonts-0.2.20080216.1]$ file ukai.ttc
[pmatilai@localhost culmus-0.102]$ file YehudaCLM-Bold.pfa
YehudaCLM-Bold.pfa: PostScript document text
These should be treated filed against "file" (libmagic), rpm will recognize them as fonts as soon as libmagic does.
Compressed files aren't currently being looked into. I initially enabled it when enabling the font provide stuff but it blew up at least openoffice.org build due to leaking file descriptors someplace (probably libmagic but haven't had a chance to look at it).
Spaces in filenames causing issues is likely to be something entirely different, lets not pile things up.
--- Additional comment from email@example.com on 2009-03-23 04:31:25 EDT ---
Ok, let's split this
Heh, didn't notice you already split this up so changelog refers to wrong bug... anyway the whitespace in filenames is now fixed in rpm-4.7.0-0.beta1.5.fc11