https://bugs.kde.org/show_bug.cgi?id=3D381839 Bug ID: 381839 Summary: surprise dependency on KEmoticons Product: frameworks-kdelibs4support Version: 5.35.0 Platform: Compiled Sources OS: All Status: UNCONFIRMED Severity: normal Priority: NOR Component: general Assignee: kdelibs-bugs@kde.org Reporter: rjvbertin@gmail.com Target Milestone: --- The KDELibs4support framework has developed a surprise/hidden dependency on KEmoticons which doesn't show up in the CMake summary after configuring the framework. It also doesn't show up in the CMake summary printed after configuring a dependent like kio-extras - provide KEmoticons is available. Yet, when you configure kio-extras without having the KEmoticons framework available, the following error is generated: ``` -- Found KF5I18n: /opt/local/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18nConfig.cmake (found version "5.35.0")=20 -- Found KF5KIO: /opt/local/lib/x86_64-linux-gnu/cmake/KF5KIO/KF5KIOConfig.cmake (found vers= ion "5.35.0")=20 CMake Warning at /opt/local/share/cmake-3.8/Modules/CMakeFindDependencyMacro.cmake:55 (find_package): By not providing "FindKF5Emoticons.cmake" in CMAKE_MODULE_PATH this proje= ct has asked CMake to find a package configuration file provided by "KF5Emoticons", but CMake did not find one. Could not find a package configuration file provided by "KF5Emoticons" (requested version 5.35.0) with any of the following names: KF5EmoticonsConfig.cmake kf5emoticons-config.cmake Add the installation prefix of "KF5Emoticons" to CMAKE_PREFIX_PATH or set "KF5Emoticons_DIR" to a directory containing one of the above files. If "KF5Emoticons" provides a separate development package or SDK, be sure it has been installed. Call Stack (most recent call first): =20 /opt/local/lib/x86_64-linux-gnu/cmake/KF5KDELibs4Support/KF5KDELibs4Support= Config.cmake:40 (find_dependency) /opt/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package) CMakeLists.txt:26 (find_package) CMake Warning at /opt/local/share/ECM/find-modules/FindKF5.cmake:74 (find_package): Found package configuration file: =20=20=20 /opt/local/lib/x86_64-linux-gnu/cmake/KF5KDELibs4Support/KF5KDELibs4Support= Config.cmake but it set KF5KDELibs4Support_FOUND to FALSE so package "KF5KDELibs4Support" is considered to be NOT FOUND. Reason given by package: KF5KDELibs4Support could not be found because dependency KF5Emoticons cou= ld not be found. Call Stack (most recent call first): CMakeLists.txt:26 (find_package) -- Could NOT find KF5KDELibs4Support (found version "5.35.0"), checked the following files: =20=20=20 /opt/local/lib/x86_64-linux-gnu/cmake/KF5KDELibs4Support/KF5KDELibs4Support= Config.cmake (version 5.35.0) Reason given by package: KF5KDELibs4Support could not be found because dependency KF5Emoticons could not be found. -- Found KF5Solid: /opt/local/lib/x86_64-linux-gnu/cmake/KF5Solid/KF5SolidConfig.cmake (found version "5.35.0")=20 -- Found KF5Bookmarks: /opt/local/lib/x86_64-linux-gnu/cmake/KF5Bookmarks/KF5BookmarksConfig.cmake (found version "5.35.0")=20 -- Found KF5GuiAddons: /opt/local/lib/x86_64-linux-gnu/cmake/KF5GuiAddons/KF5GuiAddonsConfig.cmake (found version "5.35.0")=20 CMake Error at /opt/local/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find KF5 (missing: KDELibs4Support) (found suitable version "5.35.0", minimum required is "5.3.0") Call Stack (most recent call first): /opt/local/share/cmake-3.8/Modules/FindPackageHandleStandardArgs.cmake:377 (_FPHSA_FAILURE_MESSAGE) /opt/local/share/ECM/find-modules/FindKF5.cmake:110 (find_package_handle_standard_args) CMakeLists.txt:26 (find_package) -- Configuring incomplete, errors occurred! ``` I haven't checked when this hidden dependency was introduced. It will proba= bly not affect most users who simply install all existing frameworks, but it can lead to surprises to packagers (who probably also have all frameworks installed). Build systems that print summaries like is custom for KF5 should ideally al= so check for runtime and equivalent dependencies and report even if they're satisfied. --=20 You are receiving this mail because: You are watching all bug changes.=