[Bug 268881] devel/kf5-extra-cmake-modules: Some KF5 modules aren't found by FindKF5.cmake

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 11 Jan 2023 07:35:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268881

            Bug ID: 268881
           Summary: devel/kf5-extra-cmake-modules: Some KF5 modules aren't
                    found by FindKF5.cmake
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: kde@FreeBSD.org
          Reporter: yuri@freebsd.org
          Assignee: kde@FreeBSD.org
             Flags: maintainer-feedback?(kde@FreeBSD.org)

The following CMakeLists.txt file fails to find KF5-ConfigWidgets, KF5-KIO,
KF5-Parts:

cmake_minimum_required(VERSION 3.24)

set(CMAKE_MODULE_PATH        /usr/local/share/ECM/find-modules)

find_package(
    KF5
    COMPONENTS ThreadWeaver
               ConfigWidgets # not found by FindKF5.cmake
               CoreAddons
               ItemViews
               ItemModels
               KIO # not found by FindKF5.cmake
               Solid
               WindowSystem
               Notifications
               IconThemes
               Parts # not found by FindKF5.cmake
    REQUIRED
)


Installed kf5-* packages:
kf5-attica-5.100.0             Open Collaboration Services API library KDE5
version
kf5-breeze-icons-5.100.0       Breeze icon theme for KDE
kf5-extra-cmake-modules-5.101.0 Extra modules and scripts for CMake
kf5-kactivities-5.100.0        KF5 runtime and library to organize work in
separate activities
kf5-karchive-5.100.0           KF5 library that provides classes for handling
archive formats
kf5-kauth-5.100.0              KF5 abstraction to system policy and
authentication features
kf5-kbookmarks-5.100.0         KF5 library for bookmarks and the XBEL format
kf5-kcmutils-5.100.0           KF5 utilities for working with KCModules
kf5-kcodecs-5.100.0            KF5 library for string manipulation
kf5-kcompletion-5.100.0        KF5 text completion helpers and widgets
kf5-kconfig-5.101.0            KF5 widgets for configuration dialogs
kf5-kconfigwidgets-5.101.0     KF5 widgets for configuration dialogs
kf5-kcoreaddons-5.100.0        KF5 addons to QtCore
kf5-kcrash-5.100.0             KF5 library to handle crash analysis and bug
report from apps
kf5-kdbusaddons-5.100.0        KF5 addons to QtDBus
kf5-kdeclarative-5.100.0       KF5 library providing integration of QML and KDE
Frameworks
kf5-kded-5.100.0               KF5 extensible daemon for providing system level
services
kf5-kdelibs4support-5.100.0    KF5 porting aid from KDELibs4
kf5-kdesignerplugin-5.100.0    KF5 integration of Frameworks widgets in Qt
Designer/Creator
kf5-kdewebkit-5.100.0          KF5 library providing integration of QtWebKit
kf5-kdoctools-5.100.0          KF5 documentation generation from docbook
kf5-kemoticons-5.100.0         KF5 library to convert emoticons
kf5-kglobalaccel-5.100.0       KF5 library to add support for global workspace
shortcuts
kf5-kguiaddons-5.100.0         KF5 addons to QtGui
kf5-khtml-5.100.0              KF5 KTHML rendering engine
kf5-ki18n-5.100.0              KF5 advanced internationalization framework
kf5-kiconthemes-5.100.0        KF5 library for handling icons in applications
kf5-kinit-5.100.0              KF5 process launcher to speed up launching KDE
applications
kf5-kio-5.101.0                KF5 resource and network access abstraction
kf5-kirigami2-5.100.0          QtQuick based components set
kf5-kitemmodels-5.100.0        KF5 models for Qt Model/View system
kf5-kitemviews-5.100.0         KF5 widget addons for Qt Model/View
kf5-kjobwidgets-5.100.0        KF5 widgets for tracking KJob instance
kf5-kjs-5.100.0                KF5 library providing an ECMAScript interpreter
kf5-knotifications-5.100.0     KF5 abstraction for system notifications
kf5-kpackage-5.100.0           KF5 library to load and install packages
kf5-kparts-5.101.0             KF5 document centric plugin system
kf5-kplotting-5.100.0          KF5 lightweight plotting framework
kf5-kpty-5.100.0               KF5 pty abstraction
kf5-kquickcharts-5.100.0       KF5 QtQuick plugin providing high-performance
charts
kf5-kservice-5.100.0           KF5 advanced plugin and service introspection
kf5-ktextwidgets-5.100.0       KF5 advanced text editing widgets
kf5-kunitconversion-5.100.0    KF5 library for unit conversion
kf5-kwallet-5.100.0            KF5 secure and unified container for user
passwords
kf5-kwidgetsaddons-5.100.0     KF5 addons to QtWidgets
kf5-kwindowsystem-5.100.0      KF5 library for access to the windowing system
kf5-kxmlgui-5.100.0            KF5 user configurable main windows
kf5-purpose-5.100.0            Offers available actions for a specific purpose
kf5-qqc2-desktop-style-5.100.0 Qt QuickControl2 style for KDE
kf5-solid-5.100.0              KF5 hardware integration and detection
kf5-sonnet-5.99.0              KF5 plugin-based spell checking library
kf5-threadweaver-5.100.0       KF5 helper for multithreaded programming
[yuri@yv /usr/ports/devel/hotspot/x]$ pkg info | grep kf5
kf5-attica-5.100.0             Open Collaboration Services API library KDE5
version
kf5-breeze-icons-5.100.0       Breeze icon theme for KDE
kf5-extra-cmake-modules-5.101.0 Extra modules and scripts for CMake
kf5-kactivities-5.100.0        KF5 runtime and library to organize work in
separate activities
kf5-karchive-5.100.0           KF5 library that provides classes for handling
archive formats
kf5-kauth-5.100.0              KF5 abstraction to system policy and
authentication features
kf5-kbookmarks-5.100.0         KF5 library for bookmarks and the XBEL format
kf5-kcmutils-5.100.0           KF5 utilities for working with KCModules
kf5-kcodecs-5.100.0            KF5 library for string manipulation
kf5-kcompletion-5.100.0        KF5 text completion helpers and widgets
kf5-kconfig-5.101.0            KF5 widgets for configuration dialogs
kf5-kconfigwidgets-5.101.0     KF5 widgets for configuration dialogs
kf5-kcoreaddons-5.100.0        KF5 addons to QtCore
kf5-kcrash-5.100.0             KF5 library to handle crash analysis and bug
report from apps
kf5-kdbusaddons-5.100.0        KF5 addons to QtDBus
kf5-kdeclarative-5.100.0       KF5 library providing integration of QML and KDE
Frameworks
kf5-kded-5.100.0               KF5 extensible daemon for providing system level
services
kf5-kdelibs4support-5.100.0    KF5 porting aid from KDELibs4
kf5-kdesignerplugin-5.100.0    KF5 integration of Frameworks widgets in Qt
Designer/Creator
kf5-kdewebkit-5.100.0          KF5 library providing integration of QtWebKit
kf5-kdoctools-5.100.0          KF5 documentation generation from docbook
kf5-kemoticons-5.100.0         KF5 library to convert emoticons
kf5-kglobalaccel-5.100.0       KF5 library to add support for global workspace
shortcuts
kf5-kguiaddons-5.100.0         KF5 addons to QtGui
kf5-khtml-5.100.0              KF5 KTHML rendering engine
kf5-ki18n-5.100.0              KF5 advanced internationalization framework
kf5-kiconthemes-5.100.0        KF5 library for handling icons in applications
kf5-kinit-5.100.0              KF5 process launcher to speed up launching KDE
applications
kf5-kio-5.101.0                KF5 resource and network access abstraction
kf5-kirigami2-5.100.0          QtQuick based components set
kf5-kitemmodels-5.100.0        KF5 models for Qt Model/View system
kf5-kitemviews-5.100.0         KF5 widget addons for Qt Model/View
kf5-kjobwidgets-5.100.0        KF5 widgets for tracking KJob instance
kf5-kjs-5.100.0                KF5 library providing an ECMAScript interpreter
kf5-knotifications-5.100.0     KF5 abstraction for system notifications
kf5-kpackage-5.100.0           KF5 library to load and install packages
kf5-kparts-5.101.0             KF5 document centric plugin system
kf5-kplotting-5.100.0          KF5 lightweight plotting framework
kf5-kpty-5.100.0               KF5 pty abstraction
kf5-kquickcharts-5.100.0       KF5 QtQuick plugin providing high-performance
charts
kf5-kservice-5.100.0           KF5 advanced plugin and service introspection
kf5-ktextwidgets-5.100.0       KF5 advanced text editing widgets
kf5-kunitconversion-5.100.0    KF5 library for unit conversion
kf5-kwallet-5.100.0            KF5 secure and unified container for user
passwords
kf5-kwidgetsaddons-5.100.0     KF5 addons to QtWidgets
kf5-kwindowsystem-5.100.0      KF5 library for access to the windowing system
kf5-kxmlgui-5.100.0            KF5 user configurable main windows
kf5-purpose-5.100.0            Offers available actions for a specific purpose
kf5-qqc2-desktop-style-5.100.0 Qt QuickControl2 style for KDE
kf5-solid-5.100.0              KF5 hardware integration and detection
kf5-sonnet-5.99.0              KF5 plugin-based spell checking library
kf5-threadweaver-5.100.0       KF5 helper for multithreaded programming




----------------error output-----------------------

$ cmake .
CMake Warning (dev) in CMakeLists.txt:
  No project() command is present.  The top-level CMakeLists.txt file must
  contain a literal, direct call to the project() command.  Add a line of
  code such as

    project(ProjectName)

  near the top of the file, but after cmake_minimum_required().

  CMake is pretending there is a "project(Project)" command on the first
  line.
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning at
/usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47
(find_package):
  Could not find a configuration file for package "KF5Auth" that is
  compatible with requested version "5.101.0".

  The following configuration files were considered but not accepted:

    /usr/local/lib/cmake/KF5Auth/KF5AuthConfig.cmake, version: 5.100.0

Call Stack (most recent call first):
  /usr/local/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake:29
(find_dependency)
  /usr/local/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
  CMakeLists.txt:5 (find_package)


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:52
(find_package):
  Found package configuration file:

    /usr/local/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake

  but it set KF5ConfigWidgets_FOUND to FALSE so package "KF5ConfigWidgets" is
  considered to be NOT FOUND.  Reason given by package:

  KF5ConfigWidgets could not be found because dependency KF5Auth could not be
  found.

Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


-- Could NOT find KF5ConfigWidgets (found version "5.101.0"), checked the
following files:
    /usr/local/lib/cmake/KF5ConfigWidgets/KF5ConfigWidgetsConfig.cmake (version
5.101.0)
    Reason given by package: KF5ConfigWidgets could not be found because
dependency KF5Auth could not be found.

CMake Warning at
/usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47
(find_package):
  Could not find a configuration file for package "KF5CoreAddons" that is
  compatible with requested version "5.101.0".

  The following configuration files were considered but not accepted:

    /usr/local/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake, version:
5.100.0

Call Stack (most recent call first):
  /usr/local/lib/cmake/KF5KIO/KF5KIOConfig.cmake:33 (find_dependency)
  /usr/local/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
  CMakeLists.txt:5 (find_package)


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:52
(find_package):
  Found package configuration file:

    /usr/local/lib/cmake/KF5KIO/KF5KIOConfig.cmake

  but it set KF5KIO_FOUND to FALSE so package "KF5KIO" is considered to be
  NOT FOUND.  Reason given by package:

  KF5KIO could not be found because dependency KF5CoreAddons could not be
  found.

Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


-- Could NOT find KF5KIO (found version "5.101.0"), checked the following
files:
    /usr/local/lib/cmake/KF5KIO/KF5KIOConfig.cmake (version 5.101.0)
    Reason given by package: KF5KIO could not be found because dependency
KF5CoreAddons could not be found.

CMake Warning at
/usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47
(find_package):
  Could not find a configuration file for package "KF5CoreAddons" that is
  compatible with requested version "5.101.0".

  The following configuration files were considered but not accepted:

    /usr/local/lib/cmake/KF5CoreAddons/KF5CoreAddonsConfig.cmake, version:
5.100.0

Call Stack (most recent call first):
  /usr/local/lib/cmake/KF5KIO/KF5KIOConfig.cmake:33 (find_dependency)
  /usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47
(find_package)
  /usr/local/lib/cmake/KF5Parts/KF5PartsConfig.cmake:28 (find_dependency)
  /usr/local/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
  CMakeLists.txt:5 (find_package)


CMake Warning at
/usr/local/share/cmake/Modules/CMakeFindDependencyMacro.cmake:47
(find_package):
  Found package configuration file:

    /usr/local/lib/cmake/KF5KIO/KF5KIOConfig.cmake

  but it set KF5KIO_FOUND to FALSE so package "KF5KIO" is considered to be
  NOT FOUND.  Reason given by package:

  KF5KIO could not be found because dependency KF5CoreAddons could not be
  found.

Call Stack (most recent call first):
  /usr/local/lib/cmake/KF5Parts/KF5PartsConfig.cmake:28 (find_dependency)
  /usr/local/share/ECM/find-modules/FindKF5.cmake:52 (find_package)
  CMakeLists.txt:5 (find_package)


CMake Warning at /usr/local/share/ECM/find-modules/FindKF5.cmake:52
(find_package):
  Found package configuration file:

    /usr/local/lib/cmake/KF5Parts/KF5PartsConfig.cmake

  but it set KF5Parts_FOUND to FALSE so package "KF5Parts" is considered to
  be NOT FOUND.  Reason given by package:

  KF5Parts could not be found because dependency KF5KIO could not be found.

Call Stack (most recent call first):
  CMakeLists.txt:5 (find_package)


-- Could NOT find KF5Parts (found version "5.101.0"), checked the following
files:
    /usr/local/lib/cmake/KF5Parts/KF5PartsConfig.cmake (version 5.101.0)
    Reason given by package: KF5Parts could not be found because dependency
KF5KIO could not be found.

CMake Error at
/usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230
(message):
  Could NOT find KF5 (missing: ConfigWidgets KIO Parts) (found version
  "5.100.0")
Call Stack (most recent call first):
  /usr/local/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594
(_FPHSA_FAILURE_MESSAGE)
  /usr/local/share/ECM/find-modules/FindKF5.cmake:93
(find_package_handle_standard_args)
  CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
See also "/usr/ports/devel/hotspot/x/CMakeFiles/CMakeOutput.log".

-- 
You are receiving this mail because:
You are the assignee for the bug.