Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-3210

Broken paths in cmake config files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.10.0
    • Build System
    • None
    • Arch Linux x86_64
    • Linux/Wayland

      Compiling with cmake with:

        cmake -B build -S pyside-setup -G Ninja \
          -DCMAKE_INSTALL_PREFIX=/usr \
          -DCMAKE_BUILD_TYPE=None \
          -DSHIBOKEN_PYTHON_LIBRARIES=`pkgconf python3-embed --libs` \
          -DBUILD_TESTS=OFF \
          -DFORCE_LIMITED_API=no \
          -DNO_QT_TOOLS=yes
        cmake --build build

      Produces a broken cmake config file that contains the wrong paths

      set_and_check(PYSIDE_PYTHONPATH "${PACKAGE_PREFIX_DIR}/")
      set_and_check(PYSIDE_TYPESYSTEMS "${PACKAGE_PREFIX_DIR}/typesystems")
      set_and_check(PYSIDE_GLUE "${PACKAGE_PREFIX_DIR}/glue") 

      while the dirs are actually installed in ${PACKAGE_PREFIX_DIR}/share/PySide6, breaking build of consumers.

      "PySide6: Cleanup CMake configuration files" 05e328476f2d6ef8a0f3f44aca1e5b1cdb7499fc https://codereview.qt-project.org/c/pyside/pyside-setup/+/648713 looks like the likely culprit

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

            shpremna Shyamnath Premnadh
            arojas Antonio Rojas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes