Skip to content

qt6-qtdeclarative-devel: cmake Targets.cmake references missing .o build artifacts #959

Description

@woqidaideshi

Package name

qt6-qtdeclarative-devel

openRuyi version

6.10.1-9.9

Describe the bug

qt6-qtdeclarative-devel ships cmake config files for two private targets that reference compiled .o resource files from the build directory. These .o files were not included in the package, causing find_package(CONFIG) to fail:

Target Missing File
Qt6QmlTypeRegistrarPrivate .../objects-RelWithDebInfo/QmlTypeRegistrarPrivate_resources_1/.qt/rcc/qrc_jsRootMetaTypes_init.cpp.o
Qt6QuickControlsTestUtilsPrivate .../objects-RelWithDebInfo/QuickControlsTestUtilsPrivate_resources_1/.qt/rcc/qrc_qmake_Qt_test_controls_init.cpp.o

Steps to reproduce

dnf install -y qt6-qtdeclarative-devel qt6-qtdeclarative-static cmake gcc

mkdir /tmp/test

# Test Qt6QmlTypeRegistrarPrivate
cat > /tmp/test/CMakeLists.txt << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(test VERSION "0.1" LANGUAGES C CXX)
find_package(Qt6QmlTypeRegistrarPrivate REQUIRED CONFIG)
EOF
cmake -S /tmp/test -B /tmp/test/build

# Test Qt6QuickControlsTestUtilsPrivate
cat > /tmp/test/CMakeLists.txt << 'EOF'
cmake_minimum_required(VERSION 3.13.4)
project(test VERSION "0.1" LANGUAGES C CXX)
find_package(Qt6QuickControlsTestUtilsPrivate REQUIRED CONFIG)
EOF
cmake -S /tmp/test -B /tmp/test/build

Expected behaviour

All find_package(CONFIG) calls for Config.cmake targets shipped by qt6-qtdeclarative-devel should succeed when the package and its dependencies are installed.

Screenshots

No response

Relevant log output

Error info:

  1. Qt6QmlTypeRegistrarPrivate
-- The C compiler identification is GNU 16.1.0
-- The CXX compiler identification is GNU 16.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/sbin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/sbin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
CMake Error at /usr/lib64/cmake/Qt6QmlTypeRegistrarPrivate/Qt6QmlTypeRegistrarPrivateTargets.cmake:121 (message):
  The imported target "Qt6::QmlTypeRegistrarPrivate_resources_1" references
  the file

     "/usr/lib64/qt6/objects-RelWithDebInfo/QmlTypeRegistrarPrivate_resources_1/.qt/rcc/qrc_jsRootMetaTypes_init.cpp.o"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/Qt6QmlTypeRegistrarPrivate/Qt6QmlTypeRegistrarPrivateTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/Qt6QmlTypeRegistrarPrivate/Qt6QmlTypeRegistrarPrivateConfig.cmake:62 (include)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!

  1. Qt6QuickControlsTestUtilsPrivate
# cmake -S /tmp/test -B /tmp/test/build
-- Performing Test HAVE_EGL
-- Performing Test HAVE_EGL - Success
-- Found EGL: /usr/include (found version "1.5")
-- Performing Test HAVE_GLESv2
-- Performing Test HAVE_GLESv2 - Success
-- Found GLESv2: /usr/include
-- Found WrapVulkanHeaders: /usr/include
-- Found XKB: /usr/lib64/libxkbcommon.so (found suitable version "1.13.0", minimum required is "0.9.0")
CMake Error at /usr/lib64/cmake/Qt6QuickControlsTestUtilsPrivate/Qt6QuickControlsTestUtilsPrivateTargets.cmake:131 (message):
  The imported target "Qt6::QuickControlsTestUtilsPrivate_resources_1"
  references the file

     "/usr/lib64/qt6/qml/Qt/test/controls/objects-RelWithDebInfo/QuickControlsTestUtilsPrivate_resources_1/.qt/rcc/qrc_qmake_Qt_test_controls_init.cpp.o"

  but this file does not exist.  Possible reasons include:

  * The file was deleted, renamed, or moved to another location.

  * An install or uninstall procedure did not complete successfully.

  * The installation package was faulty and contained

     "/usr/lib64/cmake/Qt6QuickControlsTestUtilsPrivate/Qt6QuickControlsTestUtilsPrivateTargets.cmake"

  but not all the files it references.

Call Stack (most recent call first):
  /usr/lib64/cmake/Qt6QuickControlsTestUtilsPrivate/Qt6QuickControlsTestUtilsPrivateConfig.cmake:62 (include)
  CMakeLists.txt:3 (find_package)


-- Configuring incomplete, errors occurred!

Additional context

No response

I assert that this issue is relevant for openRuyi

  • I assert that this is a bug and not a support request.
  • I assert that this is not a duplicate of an existing issue.
  • I assert that I have read the openRuyi Code of Conduct and agree to abide by it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Target: RollingTargeting rolling/current branch.Type: BugIssues related to incorrect behavior or failures that need fixing.

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions