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

Condition of feature ipc_posix erroneously evaluates to FALSE

    XMLWordPrintable

Details

    • QNX
    • 828770c60 (dev), 5c9fa4ca4 (6.6), 9b5c3d310 (6.6.0)

    Description

      As described in https://lists.qt-project.org/pipermail/development/2023-September/044469.html ipc_posix is off despite the conditions are met:

       -- Performing Test HAVE_sysv_shm
       -- Performing Test HAVE_sysv_shm - Failed
       -- Performing Test HAVE_sysv_sem
       -- Performing Test HAVE_sysv_sem - Failed
       -- Performing Test HAVE_posix_shm
       -- Performing Test HAVE_posix_shm - Success
       -- Performing Test HAVE_posix_sem
       -- Performing Test HAVE_posix_sem - Success
      ...
        Defaulting legacy IPC to POSIX ......... no
      

      the feature definition is

      qt_feature("ipc_posix"
          LABEL "Defaulting legacy IPC to POSIX"
          CONDITION TEST_posix_shm AND TEST_posix_sem AND (
              FEATURE_ipc_posix OR (APPLE AND QT_FEATURE_appstore_compliant)
              OR NOT (TEST_sysv_shm AND TEST_sysv_sem)
          )
      )
      

      The following part of the condition already evaluates to FALSE:

      NOT (TEST_sysv_shm AND TEST_sysv_sem)
      

      DeMorganizing the condition resolves the issue, but there's clearly a glitch in the condition evaluator: QTBUG-117053.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-117052
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes