Skip to content

package-hw: remove kfocus-main dependency, kfocus-common is what is needed and is already a pre-depends. - #30

Open
eeickmeyer wants to merge 2 commits into
kfocus:RR-2026-Q3from
eeickmeyer:RR-2026-Q3
Open

package-hw: remove kfocus-main dependency, kfocus-common is what is needed and is already a pre-depends.#30
eeickmeyer wants to merge 2 commits into
kfocus:RR-2026-Q3from
eeickmeyer:RR-2026-Q3

Conversation

@eeickmeyer

@eeickmeyer eeickmeyer commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

This is a redo of #29 but with a better solution.

Justification: This has an unwanted side-effect for Ubuntu Studio users in that, if someone installs kfocus-hw on an Ubuntu Studio installation, it will, via dependency resolution, remove ubuntustudio-desktop, ubuntustudio-default-settings, and other packages, essentially converting it into a Kubuntu desktop.

Additionally, if one were to want hardware support on an Edubuntu system (for instance), it would install all of Kubuntu, including KDE Plasma. For a GNOME system, this would be undesirable.

This is of particular importance for fan control as kfocus-power-fan requires kfocus-hw requires kfocus-settings requires kubuntu-settings requires kubuntu-desktop. kfocus-hw is required for the profile db.

Uupon investigation, I found that it's best, in this case, to demote kfocus-main in the kfocus-hw package from Depends to Recommends. as kfocus-hw is already a dependency of kfocus-main, this solves the problem and makes it so that, in order to install on non-Kubuntu flavors, that all one has to do is sudo apt install --no-install-recommends kfocus-keyboard kfocus-hw kfocus-power-fan and Kubuntu, nor the other Kfocus items, will be installed. This enables an hardware-only support method.

However, @mmikowski pointed out that it is far more accurate to change the depends to kfocus-common since the sourcing of the common2.source file is what is actually needed here. With that in mind, this now changes the dependency in question from kfocus-main to kfocus-common, but since kfocus-common is already a Pre-Depends, this removes the kfocus-main dependency line entirely as changing it is redundant. This relieves the need to use --no-install-recommends meaning the single hardware support command for non-Kubuntu systems becomes sudo apt install kfocus-keyboard kfocus-hw kfocus-power-fan.

We had talked in the past about an Ubuntu Studio partnership, and this issue is a barrier; not on a relationship level, but on a functionality level. If this PR is accepted, that makes it easier to move forward.

@eeickmeyer eeickmeyer changed the title demote kfocus-main to recommends to prevent circular dependency package-hw: demote kfocus-main to recommends to prevent circular dependency Aug 9, 2026
@eeickmeyer eeickmeyer changed the title package-hw: demote kfocus-main to recommends to prevent circular dependency package-hw: change from kfocus-main to kfocus-common to more accurately get necessary dependency Aug 9, 2026
@eeickmeyer
eeickmeyer force-pushed the RR-2026-Q3 branch 2 times, most recently from 769b118 to eb47425 Compare August 10, 2026 00:00
@eeickmeyer eeickmeyer changed the title package-hw: change from kfocus-main to kfocus-common to more accurately get necessary dependency package-hw: remove kfocus-main dependency, kfocus-common is what is needed and is already a pre-depends. Aug 10, 2026
@eeickmeyer

Copy link
Copy Markdown
Contributor Author

Ping?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant