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

mixture of MODULE_VERSION=5.9.1 and 5.9.2 in 5.9 branches break CMake

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.9.1
    • Core: Other
    • None

    Description

      I'm on Gentoo Linux and I am running their 5.9 packaging of Qt. Due to technical limitations, the packaging system cannot look up the exact git refs from qt5.git, but instead it relies on the tip of the 5.9 branch of each module.

      Right now, qtbase is on d0c5e294323c69ef16c44466c3cff8decf4face5 and the .qmake.conf says that MODULE_VERSION = 5.9.1. However, there are modules such as QtTools (currently at
      2ca27f265cc46e0409e9af873f600644e9c042d3) which is marked as MODULE_VERSION = 5.9.2. This is wrong and it fails when using CMake to compile external code:

      >>> Working in BUILD_DIR: "/var/tmp/portage/kde-frameworks/kjsembed-9999/work/kjsembed-9999_build"
      cmake -C /var/tmp/portage/kde-frameworks/kjsembed-9999/work/kjsembed-9999_build/gentoo_common_config.cmake -G Unix Makefiles -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DBUILD_QCH=ON -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/kde-frameworks/kjsembed-9999/work/kjsembed-9999_build/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/kde-frameworks/kjsembed-9999/work/kjsembed-9999_build/gentoo_toolchain.cmake  /var/tmp/portage/kde-frameworks/kjsembed-9999/work/kjsembed-9999
      loading initial cache file /var/tmp/portage/kde-frameworks/kjsembed-9999/work/kjsembed-9999_build/gentoo_common_config.cmake
      -- The C compiler identification is GNU 4.9.3
      -- The CXX compiler identification is GNU 4.9.3
      -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
      -- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
      -- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
      -- Detecting CXX compiler ABI info
      -- Detecting CXX compiler ABI info - done
      -- Detecting CXX compile features
      -- Detecting CXX compile features - done
      -- 
      
      CMake Error at /usr/lib64/cmake/Qt5UiTools/Qt5UiToolsConfig.cmake:100 (find_package):
        Could not find a configuration file for package "Qt5Widgets" that is
        compatible with requested version "5.9.2".
      
        The following configuration files were considered but not accepted:
      
          /usr/lib64/cmake/Qt5Widgets/Qt5WidgetsConfig.cmake, version: 5.9.1
      
      Call Stack (most recent call first):
        /usr/lib64/cmake/Qt5/Qt5Config.cmake:28 (find_package)
        CMakeLists.txt:15 (find_package)
      

      Can you please ensure that you update the .qmake.conf files so that the dependencies always have their versions bumped first?

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jkt Jan Kundrát
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes