postinstall scriptlet (using /bin/sh): { umask 133 touch /usr/share/fonts/chinese/TrueType 2> /dev/null && { /usr/bin/ttmkfdir -d /usr/share/fonts/chinese/TrueType -o /usr/share/fonts/chinese/TrueType/fonts.scale mkfontdir /usr/share/fonts/chinese/TrueType /usr/sbin/chkfontpath -q -a /usr/share/fonts/chinese/TrueType } touch /usr/share/fonts/chinese/misc 2> /dev/null && { /usr/bin/ttmkfdir -d /usr/share/fonts/chinese/misc -o /usr/share/fonts/chinese/misc/fonts.scale mkfontdir /usr/share/fonts/chinese/TrueType /usr/sbin/chkfontpath -q -a /usr/share/fonts/chinese/misc } #Update fontconfig cache [ -x /usr/bin/fc-cache ] && /usr/bin/fc-cache 2> /dev/null } I think the second mkfontdir should be : mkfontdir /usr/share/fonts/chinese/misc
Sounds resaonable. Modified and in progress of testing.
I suggest rewriting the above as a for loop to avoid this kind of potential problem repeating.
Created attachment 135620 [details] proposed modified .spec file Modified. Proposed after feedback lines during install on test machine: + umask 133 + for tmpfontdir in /usr/share/fonts/chinese/TrueType /usr/share/fonts/chinese/misc + touch /usr/share/fonts/chinese/TrueType + /usr/bin/ttmkfdir -d /usr/share/fonts/chinese/TrueType -o /usr/share/fonts/chinese/TrueType/fonts.scale + mkfontdir /usr/share/fonts/chinese/TrueType + /usr/sbin/chkfontpath -q -a /usr/share/fonts/chinese/TrueType + for tmpfontdir in /usr/share/fonts/chinese/TrueType /usr/share/fonts/chinese/misc + touch /usr/share/fonts/chinese/misc + /usr/bin/ttmkfdir -d /usr/share/fonts/chinese/misc -o /usr/share/fonts/chinese/misc/fonts.scale + mkfontdir /usr/share/fonts/chinese/misc + /usr/sbin/chkfontpath -q -a /usr/share/fonts/chinese/misc + '[' -x /usr/bin/fc-cache ']' + /usr/bin/fc-cache
The following package has been built and pending for QC. fonts-chinese-3.02-7.fc6 After QC passed, will backport to fc5.
Fixed in fonts-chinese-3.02-7.fc6, built and pushed.