#1038693 qt6-declarative-dev: inappropriately included cmake file

Package:
qt6-declarative-dev
Source:
qt6-declarative-dev
Description:
Qt 6 declarative development files
Submitter:
Oswald Buddenhagen
Date:
2023-06-20 23:27:03 UTC
Severity:
normal
#1038693#5
Date:
2023-06-20 08:09:13 UTC
From:
To:
trying to build qt creator, i got this error message:

=======
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Qt6QmlCompilerPrivate/Qt6QmlLintQuickPluginTargets.cmake:96 (message):
  The imported target "Qt6::QmlLintQuickPlugin" references the file

     "/usr/lib/x86_64-linux-gnu/qt6/plugins/qmllint/libquicklintplugin.so"

  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/lib/x86_64-linux-gnu/cmake/Qt6QmlCompilerPrivate/Qt6QmlLintQuickPluginTargets.cmake"

  but not all the files it references.
=======

installing qt6-qmllint-plugins fixes the issue.
i suppose you might need to split off qt6-qmllint-plugins-dev.

#1038693#10
Date:
2023-06-20 10:12:15 UTC
From:
To:
I don't think we need to ship the cmake files for plugins at all. In Qt 5 they
were only creating issues, so I didn't ship them.

Nothing links against plugins, and Qt can find them without the need for cmake
files.

#1038693#15
Date:
2023-06-20 11:32:30 UTC
From:
To:
Hej,

Am Dienstag, 20. Juni 2023, 12:12:15 CEST schrieb Dmitry Shachnev:

Yes, we had a similar issue in another module I think. I'll simply
remove the corresponding cmake-files.

#1038693#20
Date:
2023-06-20 12:34:11 UTC
From:
To:
cmake files are necessary for static builds, because the "plugins"
aren't actually plugins then. at least i'm assuming that this
functionality wasn't lost during the cmake port ...

plugins may also be listed as runtime dependencies for deployment.
theoretically - whether that was actually implemented, i don't know.

neither of these are immediately relevant for a regular desktop build,
but you shouldn't be surprised when applications fail to build due to
formally missing dependencies.

#1038693#25
Date:
2023-06-20 23:21:51 UTC
From:
To:
Hi,

Exactly, and these are not expected Debian targets...

...but we already found a couple of examples on which they way the
CMake files are done you need to install them non the less. So ideally
we shouldn't ship the CMake files, but sometimes there is no way
around it :-/