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

Checking to install a package does not update already installed dependencies

    XMLWordPrintable

Details

    Description

      I was having issues with macos 6.3.0 debug symbols from online installer not being used when debugging an app in Creator.

      After going through a rabbit hole, I realised what happened:

      I had pre-release 6.3.0 libraries installed, I opened maintenance tool, i checked a checkbox to install debug symbols (weren't installed previously), the tool then installed the latest debug symbols for the latest 6.3.0 libraries it knows about (but not debug symbols for the pre-release libraries i had), so actual libraries were not updated -> debug symbols were not loaded, because of the mismatch.

      Doing a clean install of libs+symbols into a separate dir ensures debugging works.

      It sounds like debug info packages are not strictly tied to an exact lib package version.

      Here was my components.xml for the 2 different installations.

      mixed non-working case

      <Package>
              <Name>qt.qt6.630.clang_64</Name>
              <Title>macOS</Title>
              <Description>Qt 6.3.0 Prebuilt Components for macOS (Universal, x86_64/arm64)</Description>
              <TreeName moveChildren="false"></TreeName>
              <Version>6.3.0-0-202203242307</Version>
              <LastUpdateDate></LastUpdateDate>
              <InstallDate>2022-03-29</InstallDate>
              <Size>922308843</Size>
              <Dependencies>qt.tools.qtcreator,qt.qt6.630.doc,qt.qt6.630.examples</Dependencies>
              <Checkable>true</Checkable>
          </Package>
          <Package>
              <Name>qt.qt6.630.debug_info</Name>
              <Title>Qt Debug Information Files</Title>
              <Description>Qt 6.3.0 debug information files. Requires selection of target binary like gcc or MSVC.</Description>
              <TreeName moveChildren="false"></TreeName>
              <Version>6.3.0-0-202204061911</Version>
              <LastUpdateDate></LastUpdateDate>
              <InstallDate>2022-05-24</InstallDate>
              <Size>0</Size>
              <Checkable>true</Checkable>
          </Package>
          <Package>
              <Name>qt.qt6.630.debug_info.clang_64</Name>
              <Title>Desktop Clang 64-bit Debug Information Files</Title>
              <Description>Qt 6.3.0 Desktop Clang 64-bit Debug Information Files</Description>
              <TreeName moveChildren="false"></TreeName>
              <Version>6.3.0-0-202204061911</Version>
              <LastUpdateDate></LastUpdateDate>
              <InstallDate>2022-05-24</InstallDate>
              <Size>6174796944</Size>
              <Dependencies>qt.qt6.630.clang_64</Dependencies>
              <AutoDependOn>qt.qt6.630.debug_info,qt.qt6.630.clang_64</AutoDependOn>
              <Virtual>true</Virtual>
              <Checkable>true</Checkable>
          </Package>
      

      clean working case

      <Package>
              <Name>qt.qt6.630.clang_64</Name>
              <Title>macOS</Title>
              <Description>Qt 6.3.0 Prebuilt Components for macOS (Universal, x86_64/arm64)</Description>
              <TreeName moveChildren="false"></TreeName>
              <Version>6.3.0-0-202204061911</Version>
              <LastUpdateDate></LastUpdateDate>
              <InstallDate>2022-05-24</InstallDate>
              <Size>922367381</Size>
              <Dependencies>qt.tools.qtcreator,qt.qt6.630.doc,qt.qt6.630.examples</Dependencies>
              <Checkable>true</Checkable>
          </Package>
          <Package>
              <Name>qt.qt6.630.debug_info</Name>
              <Title>Qt Debug Information Files</Title>
              <Description>Qt 6.3.0 debug information files. Requires selection of target binary like gcc or MSVC.</Description>
              <TreeName moveChildren="false"></TreeName>
              <Version>6.3.0-0-202204061911</Version>
              <LastUpdateDate></LastUpdateDate>
              <InstallDate>2022-05-24</InstallDate>
              <Size>0</Size>
              <Checkable>true</Checkable>
          </Package>
          <Package>
              <Name>qt.qt6.630.debug_info.clang_64</Name>
              <Title>Desktop Clang 64-bit Debug Information Files</Title>
              <Description>Qt 6.3.0 Desktop Clang 64-bit Debug Information Files</Description>
              <TreeName moveChildren="false"></TreeName>
              <Version>6.3.0-0-202204061911</Version>
              <LastUpdateDate></LastUpdateDate>
              <InstallDate>2022-05-24</InstallDate>
              <Size>6174796944</Size>
              <Dependencies>qt.qt6.630.clang_64</Dependencies>
              <AutoDependOn>qt.qt6.630.debug_info,qt.qt6.630.clang_64</AutoDependOn>
              <Virtual>true</Virtual>
              <Checkable>true</Checkable>
          </Package>
      

      The installer should either install debug symbols appropriate for the already installed libraries, or force an update of the libraries. Or some dialog telling you about the situation so you can decide yourself what to do.

      Attachments

        Issue Links

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

          Activity

            People

              releaseteam Qt Release Team
              alexandru.croitor Alexandru Croitor
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes