Uploaded image for project: 'Qt Quality Assurance Infrastructure'
  1. Qt Quality Assurance Infrastructure
  2. QTQAINFRA-3997

Broken FontConfig configuration in QEMU provisioning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 2014q1
    • Fix Version/s: 6.1
    • Labels:
      None
    • Platform/s:
      Linux/Other display system
    • Sprint:
      2021wk04

      Description

      As observed in e.g. https://testresults.qt.io/coin/api/results/qt/qtbase/1fb8d3ab1abac801548b02bc77d9f7886a0382ad/LinuxUbuntu_20_04x86_64LinuxQEMUarm64GCCqtci-linux-Ubuntu-20.04-x86_64-50-cc16ecInsignificant_Sccache/4476d861b36a267b17b375146361ba46a8460467/test_1603891852/log.txt.gz the tst_qfont::defaultFamily() (and probably others) test is failing on QEMU arm setup.

      As can be seen from the log, the following errors are emitted from the test:

      agent:2020/10/28 13:52:50 build.go:379: 303: Fontconfig warning: "/home/qt/qemu_fonts/fonts.qemu.conf", line 5: unknown element "its:rules"
      agent:2020/10/28 13:52:50 build.go:379: 303: Fontconfig warning: "/home/qt/qemu_fonts/fonts.qemu.conf", line 6: unknown element "its:translateRule"
      agent:2020/10/28 13:52:50 build.go:379: 303: Fontconfig error: "/home/qt/qemu_fonts/fonts.qemu.conf", line 6: invalid attribute 'translate'
      agent:2020/10/28 13:52:50 build.go:379: 303: Fontconfig error: "/home/qt/qemu_fonts/fonts.qemu.conf", line 6: invalid attribute 'selector'
      agent:2020/10/28 13:52:50 build.go:379: 303: Fontconfig error: "/home/qt/qemu_fonts/fonts.qemu.conf", line 7: invalid attribute 'xmlns:its'
      agent:2020/10/28 13:52:50 build.go:379: 303: Fontconfig error: "/home/qt/qemu_fonts/fonts.qemu.conf", line 7: invalid attribute 'version'
      agent:2020/10/28 13:52:50 build.go:379: 303: Fontconfig warning: "/home/qt/qemu_fonts/fonts.qemu.conf", line 9: unknown element "description"
      ...
      

      Looking at the fonts.qemu.conf file in the given location, it seems to have been copied from the host. But on the host, the FontConfig version is 2.13, whereas the one in the sysroot is 2.12, as can be seen here: https://testresults.qt.io/coin/api/results/qt/qtbase/1fb8d3ab1abac801548b02bc77d9f7886a0382ad/LinuxUbuntu_20_04x86_64LinuxQEMUarm64GCCqtci-linux-Ubuntu-20.04-x86_64-50-cc16ecInsignificant_Sccache/4476d861b36a267b17b375146361ba46a8460467/build_1603451763/log.txt.gz

      agent:2020/10/23 13:52:56 build.go:379: -- Found Fontconfig: /opt/yocto-arm64/sysroots/aarch64-poky-linux/usr/lib/libfontconfig.so (found version "2.12.6") 
      

      This mismatch is the likely reason for the failures.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              sapiippo Samuli Piippo
              Reporter:
              esabraha Eskil Abrahamsen Blomfeldt
              PM Owner:
              Santtu Ahonen Santtu Ahonen
              RnD Owner:
              Rami Potinkara Rami Potinkara
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes