Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60211

QtWebEngine configure fails to detect ICU support in 'libxml'.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9.0 Beta 3
    • 5.9
    • Build System, WebEngine
    • None
    • Gentoo Linux

    Description

      The commit f6c1a34972eb2d9132346ab4eb442855d3ef555e introduces the following change:

      -        packagesExist(libxml-2.0,libxslt): WEBENGINE_CONFIG += use_system_libxslt use_system_libxml2
      +        packagesExist(libxml-2.0,libxslt) {
      +            PKGCONFIG_LIBS_STATIC = $$system($$PKG_CONFIG --libs --static $$PKGCONFIG_LIB)
      +            contains(PKGCONFIG_LIBS_STATIC, icuuc) {
      +                WEBENGINE_CONFIG += use_system_libxslt use_system_libxml2
      +            } else {
      +                log("System libxml2 or libxslt not configured with ICU. Using Chromium's copies.$${EOL}")
      +            }
      +        }
      

      This doesn't quite seem to pick up the ICU support even though it is there, at least not on Gentoo Linux.

      Changing

      PKGCONFIG_LIBS_STATIC = $$system($$PKG_CONFIG --libs --static $$PKGCONFIG_LIB)
      

      to

      PKGCONFIG_LIBS_STATIC = $$system($$PKG_CONFIG --libs --static libxml-2.0 libxslt)
      

      and

      contains(PKGCONFIG_LIBS_STATIC, icuuc)
      

      to

      contains(PKGCONFIG_LIBS_STATIC, -licuuc)
      

      seems to make things better-like.

      Is 'PKGCONFIG_LIB' actually not defined anywhere, or could there be a different cause for the output from 'pkg-config' not being valid for the test?

      I have confirmed that doing

      pkg-config --libs --static libxml-2.0 libxslt
      

      prints the following:

      lxslt -lxml2 -lz -lm -ldl -lm -lxml2 -licui18n -licuuc -licudata -lz -lm
      

      Still configure throws the

      System libxml2 or libxslt not configured with ICU. Using Chromium's copies.
      

      line.

      (Thanks to [Arfrever] over at #gentoo-qt for helping with the investigative work!)

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            chiitoo chiitoo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes