Bug 5133 - upgrade fontconfig
Summary: upgrade fontconfig
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.10.0
Assignee: Pierre Ossman
URL:
Keywords: ossman_tester, prosaic
Depends on:
Blocks:
 
Reported: 2014-05-12 10:32 CEST by Pierre Ossman
Modified: 2019-01-10 13:13 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2014-05-12 10:32:07 CEST
We're a bit behind when it comes to fontconfig versions. That means we won't load the system provided cache files on startup and will have to spend a lot of time generating our own. We should look at upgrading to something more recent.
Comment 1 Pierre Ossman cendio 2014-05-12 16:50:03 CEST
Hopefully it will also get rid of this noise from tlclient:

Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
Comment 2 Henrik Andersson cendio 2018-12-07 08:19:47 CET
ThinLinc builds against fontconfig 2.10.1 which was release 2012-07-27
latest version is 2.13.1 release 2018-08-30 and there has been 24 stable
releases in between.
Comment 3 Henrik Andersson cendio 2019-01-07 12:47:30 CET
(In reply to comment #2)
> ThinLinc builds against fontconfig 2.10.1 which was release 2012-07-27
> latest version is 2.13.1 release 2018-08-30 and there has been 24 stable
> releases in between.
>

I tested to upgraded fontconfig to version 2.13.1 in our build system and
rebuilt the client and server.

Running the client, the 55 rows of Fontconfig warnings in the logfile has disappear and the system fontconfig cache version 7 is used instead of
generating a new one.


- RHEL 6 uses fontconfig v2.8.0, cache version 3
- Ubunru 16.04 uses fontconfig v2.11.94, cache version 6
- RHEL 7, Fedora 28 uses fontconfig v2.13.0, cache version 7
Comment 4 Henrik Andersson cendio 2019-01-07 12:50:43 CET
(In reply to comment #3)
> (In reply to comment #2)
> 
> Running the client, the 55 rows of Fontconfig warnings in the logfile has
> disappear and the system fontconfig cache version 7 is used instead of
> generating a new one.
> 

The sames goes for the server build, fontconfig warnings are gone from xinit.log.
Comment 5 Henrik Andersson cendio 2019-01-07 13:37:39 CET
(In reply to comment #3)
> I tested to upgraded fontconfig to version 2.13.1 in our build system and
> rebuilt the client and server.
> 
> Running the client, the 55 rows of Fontconfig warnings in the logfile has
> disappear and the system fontconfig cache version 7 is used instead of
> generating a new one.
> 

Testing on RHEL 6 shows following errors:

  Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 23: Having multiple <family> in <alias> isn't supported and may not work as expected

the format is:

  <alias>
    <family></family>
    <family></family>
    .
    .
  </alias>

The new format looks like this:

  <alias>
    <family></family>
  </alias>

  <alias>
    <family></family>
  </alias>


This suggests that aliases would be restricted into one alias when running
on an old fontconfig system. Theoretically this would mean if we some were
uses a font alias it could faild. However it looks all good with components that links statically against our fontconfig; openbox, tlclient etc.


have.
Comment 14 Henrik Andersson cendio 2019-01-08 09:59:02 CET
Commit r33948 fixes CBLINK static libraries for vnc-shadow-notify
Comment 17 Pierre Ossman cendio 2019-01-10 13:13:12 CET
Tested 32-bit and 64-bit tlclient and vncviewer on Fedora 28 and RHEL 6.
Tested 64-bit tlclient and vncviewer on Ubuntu 18.04.
Tested 64-bit pdf2ps on Fedora 28 (not sure when it uses fontconfig though)
Tested tlclient and vncviewer on the ARM terminal.

No issues found except some expected warnings to stderr on RHEL 6 and the ARM machine.

Tested openbox and vnc-shadow-notify on Ubuntu 18.04, RHEL 6 and Fedora Rawhide.

Note You need to log in before you can comment on or make changes to this bug.