Bug ID 1059030
Summary [fonts-config & fontconfig] outdated scripts, cache failure, deprecated settings, bad sysconfig parsing
Classification openSUSE
Product openSUSE Tumbleweed
Version Current
Hardware All
OS SUSE Other
Status NEW
Severity Normal
Priority P5 - None
Component Other
Assignee bnc-team-screening@forge.provo.novell.com
Reporter leetminiwheat@gmail.com
QA Contact qa-bugs@suse.de
Found By ---
Blocker ---

(raw paste here if formatting is unreadable:
http://susepaste.org/view/raw/38713353 )

Package(s): fonts-config (20160921-1.2)
         Affected versions: All
SubPackage(s): fontconfig (20160921-1.2), fontconfig-32bit (2.12.4-1.1)
         Affected versions: All

Brief description(s):
 ���Cache generation failure 
  -Deprecated name of fc-cache64 is used.
 ���Incorrect sysconfig parsing
  -Unsetting most options results in invalid 10-rendering-options.conf file
 ���Deprecated usage of "assign" rather than "append"
  -"append" should be global default, override with "assign" on per-family
basis.
 ���Missing option to set default "append"s in sysconfig/fonts-config

Detailed description(s):
1. /usr/sbin/fonts-config:
  Multiple issues: cache generation, config parsing, deprecated usages, missing
options.
  1a.)
      script fails to find `/usr/bin/fc-cache64` which was renamed to simply
`fc-cache`
       -(attempts to run both `/usr/bin/fc-cache32` and `/usr/bin/fc-cache64`)
  1b.)
      Script incorrectly parses sysconfig/fonts-config if most options
      are null,commented, resulting in invalid entries of "0' or "False"
      in 10-rendering-options.conf
  1c.)
      Script uses "assign" and not "append" with no way to unset the
"assign"ments
  1d.)
      No option to set a default "append" (see 2a below).

2. /etc/sysconfig/fonts-config:
  Multiple issues: deprecated usages, missing options, options incorrectly
parsed.
  2a.)
      No option to "append" rather than "assign".
       -Append is preferred upstream and should only "assign" if FORCE_* is set
        (which means we need a DEFAULT_* for "append")
  2b.)
      Default usage of "assign" could cause later font appends/assigns to fail.
  2c.)
      Null or commented entries cause unexpected behavior and invalid options.
       -"0" or "False" are invalid options in 10-rendering-options.conf
        and cause fontconfig to fail to parse.


Problems/Bugs:
      ���Failed cache generation due to `fc-cache64` being renamed.
      ���Invalid entries in 10-rendering-options.conf if most sysconfig options
are
       Null or commented.
      ���Early "assign"ments in /etc/fonts could override or cause incorrect or
       unexpected fontconfig behavior on files parsed afterwards.

Proposed solutions:
    /usr/sbin/fonts-config: 
      ���Add statement to check for `fc-cache` if `fc-cache64` not found,
       or create symlink of fc-cache to fc-cache64
      ���Don't generate invalid entries in 10-rendering-options.conf when 
       some sysconfig options are commented. 
       Or change "none" to make no entry unless forced.
   /etc/sysconfig/fonts-config:
      ���Add new DEFAULT_* options (such as DEFAULT_HINTSTYLE) to set "append",
       Existing FORCE_* can optionally set "assign" (to override append).
      ���Default to "append" rather than "assign", 
       FORCE_* can still override the append if present after the "append".


You are receiving this mail because: