| Summary: | Build is not reproducible | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Arnout Engelen <kde> |
| Component: | kcm_powerdevil | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | kde, kde, natalie_clarius |
| Priority: | NOR | ||
| Version First Reported In: | 6.5.3 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Arnout Engelen
2025-12-02 13:00:55 UTC
It seems the "org.kde.plasma.brightness" applet is missing a dependency on the "brightnesscontrolplugin" module. However, "org.kde.plasma.brightness" is defined with "plasma_add_applet" (https://invent.kde.org/plasma/powerdevil/-/blob/master/applets/brightness/CMakeLists.txt?ref_type=heads#L9), and "plasma_add_applet" does not seem to allow adding additional dependencies (https://invent.kde.org/plasma/libplasma/-/blob/master/PlasmaMacros.cmake?ref_type=heads#L104) Is that something that should be added to libplasma? Or am I on the wrong track? I saw https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/6075/diffs does link additional things into a "add_plasma_plugin", but doing that naively gets me: CMake Error at applets/brightness/CMakeLists.txt:20 (target_link_libraries): Target "brightnesscontrolplugin" of type MODULE_LIBRARY may not be linked into another target. One may link only to INTERFACE, OBJECT, STATIC or SHARED libraries, or to executables with the ENABLE_EXPORTS property set. Ah doing it via 'add_dependencies' appears to have the intended effect: https://invent.kde.org/plasma/powerdevil/-/merge_requests/595 I guess you might expect the same to be needed for batterymonitor, but I haven't observed the problem there yet, so I haven't made that change. |