Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is uksmd still a necessary dependency for cachyos-settings? #203

Closed
allergicapple opened this issue May 11, 2024 · 7 comments
Closed

Is uksmd still a necessary dependency for cachyos-settings? #203

allergicapple opened this issue May 11, 2024 · 7 comments

Comments

@allergicapple
Copy link

allergicapple commented May 11, 2024

Uninstalling uksmd-git aka uksmd is currently not possible because cachyos-settings has a dependency on it:

$ sudo pacman -R uksmd-git 
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing uksmd-git breaks dependency 'uksmd' required by cachyos-settings

Seeking through the repo of cachyos-settings I however found no reference to uksmd so I wonder if there actually is no depencendy on it.

To be able to remove the package uksmd-git without uninstalling cachyos-settings, latter must not be dependent on former anymore.

As I found no need for this dependency, maybe it could be removed from this PKGBUILD.

References:
https://github.com/CachyOS/CachyOS-Settings
https://github.com/CachyOS/uksmd

@ptr1337
Copy link
Member

ptr1337 commented May 12, 2024

Hi,
yes it is. But you can do following to avoid enabled uksmd, when cachyos-settings packages gets a update.

sudo systemctl disable --now uksmd.service
# Dont enable at cachyos-settings update
sudo systemctl mask uksmd.service

This will block uksmd from updating/loading or equal.

@ptr1337
Copy link
Member

ptr1337 commented May 12, 2024

As I found no need for this dependency, maybe it could be removed from this PKGBUILD

No, we can not do that, since otherwise users won't get this at the installation. This is thought for our users - and if there problems with the settings, you can simply mask it as above.
Same counts for zram config for example - you can create locally just a higher zram.conf, which will overwrite the existing one.

@allergicapple
Copy link
Author

As I found no need for this dependency, maybe it could be removed from this PKGBUILD

No, we can not do that, since otherwise users won't get this at the installation. This is thought for our users - and if there problems with the settings, you can simply mask it as above. Same counts for zram config for example - you can create locally just a higher zram.conf, which will overwrite the existing one.

I understand uksmd is considered a default component for an installation on CachyOS - just like several cachyos-* packages are.

Making it a dependency of cachyos-settings however has the effect uksmd cannot be removed from the system.

If it is considered a base block of CachyOS, why not install it on the installation time and just mark it manually installed, so it can be uninstalled but by default it is installed on new systems.

I think I don't understand the reasoning of making a full blown service a dependency of a "settings" package in the first place.

@ptr1337
Copy link
Member

ptr1337 commented May 12, 2024

Dirk, the uksmd packages has in size 55 KiB.
This is really not something, which really bloat your system in any way. The dependecies, which uksmd needs are anyways installed anyways.

Splitting it would make it for our installation very problematic and also can not be just done "ondemand".

@ptr1337
Copy link
Member

ptr1337 commented May 24, 2024

Ill close here. Masking the service will do it.

@ptr1337
Copy link
Member

ptr1337 commented Jun 18, 2024

uksmd wont be required with upcoming cachyos-settings release.

@allergicapple
Copy link
Author

Thank you, the change looks reasonable to me.

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

No branches or pull requests

2 participants