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

qmake2cmake cannot be installed system-wide

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.5.0 Beta3
    • Build System: CMake
    • None
    • Linux/X11
    • 13b910394 (dev)

    Description

      A user tried to install qmake2cmake system-wide on Linux - by packaging it for Arch.
      At runtime, qmake2cmake fails with the following error:

      > Exception ignored in atexit callback: <function simplify_condition_memoize.<locals>.update_cache_file at 0x7f70da62b880>
      > Traceback (most recent call last):
      >   File "/usr/lib/python3.10/site-packages/qmake2cmake/condition_simplifier_cache.py", line 112, in update_cache_file
      >     os.makedirs(os.path.dirname(cache_path), exist_ok=True)
      >   File "/usr/lib/python3.10/os.py", line 225, in makedirs
      >     mkdir(name, mode)
      > PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.10/site-packages/qmake2cmake/.pro2cmake_cache' 
      

      It looks like qmake2cmake tries to create its cache directory relative to the script's location, which is not writable.

      The cache directory should be created somewhere user-writable.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              jbornema Joerg Bornemann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes