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

Create qt.conf file in $prefix/libexec on non-Windows platforms

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.1.0 Beta 1
    • Fix Version/s: 6.1.0
    • Component/s: Packaging & Installer
    • Labels:
      None

      Description

      With some tools being moved to libexec as per https://bugreports.qt.io/browse/QTBUG-88791 they need to be able to find the $prefix/bin folder.

      The source of truth for the prefix and bin folder is the qt.conf file, which is created in $prefix/bin, and executables that are in $prefix/bin can successfully read it.

      That's not the case for tools in $prefix/libexec.

      The only sensible solution we found is to create a qt.conf file in ./libexec as well.

      Given that the Installer creates the qt.conf file, we need it to be changed to create it also in the ./libexec dir in addition to the ./bin dir, on non-Windows platforms (because Windows doesn't have libexec).

      I think this doesn't concern cross-compiling configurations like iOS or Android, so the target_qt.conf patching should not be relevant in this case.

      Ideally we would create a hard link from ./bin/qt.conf to ./libexec/qt.conf, but a copy is probably fine too.

      We should probably do the same for our Boot2Qt builds.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              ankokko Antti Kokko
              Reporter:
              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