Bug 396018 - Circular dependency after "Use platform detection from KWorkSpace in KCMShell" (896dd55)
Summary: Circular dependency after "Use platform detection from KWorkSpace in KCMShell...
Status: RESOLVED WORKSFORME
Alias: None
Product: kde-cli-tools
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-30 11:47 UTC by Maximiliano Curia
Modified: 2022-12-26 05:21 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maximiliano Curia 2018-06-30 11:47:01 UTC
Hi,

Starting with "Use platform detection from KWorkSpace in KCMShell" (896dd55), kde-cli-tools builds depends on libkworkspace (which is part of plasma-workspace). On the other hand, plasma-workspace uses kde-cli-tools as a runtime dependency.

This generates a circular dependency that when using strict version dependencies makes the package impossible to build. These strict version dependencies are necessary because components inside plasma tend to change without indicating the versions that they need.

One possibility would be to copy the detectPlatform function into kde-cli-tools (it's only 22 lines, no interaction with the rest of the library). This has already been done in kded.

Another possibility would be to move the detectPlatform function to libkf5plasma in plasma-frameworks, and update plasma-workspace, kded, kde-cli-tools, systemsettings, and powerdevil to use that exported function.

Happy hacking,
Comment 1 Roman Gilg 2018-07-04 07:49:03 UTC
Hi Maximiliano,

we plan on removing all the platform detection stuff again for the next Plasma release: https://phabricator.kde.org/T9093

Is it fine if the problem is solved this way for 5.14 and above only?
Comment 2 Maximiliano Curia 2018-07-04 08:22:40 UTC
I guess this is fine as an eventual fix. From the Debian side, we downgraded the plasma-workspace dependency on kde-cli-tools to a recommends to avoid the circular dependencies at build time till this is fixed. I assume this isn't the only reason to bump the qt dependency to 5.11.

Is kde frameworks also planning to add a qt 5.11 dependency?

Happy hacking,
Comment 3 Aleix Pol 2018-07-04 10:20:55 UTC
No, KDE Frameworks will stay on the current current Qt minus two releases.
Comment 4 Justin Zobel 2022-11-26 00:14:00 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 5 Bug Janitor Service 2022-12-11 05:07:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Bug Janitor Service 2022-12-26 05:21:43 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!