-
Notifications
You must be signed in to change notification settings - Fork 99
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
Rename dnf5-makecache timer to dnf-makecache when dnf5_obsoletes_dnf #2092
base: main
Are you sure you want to change the base?
Rename dnf5-makecache timer to dnf-makecache when dnf5_obsoletes_dnf #2092
Conversation
This version renames the unit only in the spec file, similar to the creation of the "yum" and "dnf" bindir symlinks.
|
I'm not sure it's a good idea to change this now. Won't this mean that users who have enabled |
As far as I can tell from testing:
The If there is a symlink in |
127cb98
to
389b112
Compare
This is not hard for us to do. In fact, enabling the |
Every solution involves a number of compromises, and I am simply listing them. I don't think any description is "invalid" unless it's incorrect. Having said that, I can't tell from your feedback if you are in favor of this change, against this change, or what solution you would consider acceptable. |
My core issue is that we can't really pretend dnf5 is like dnf4 or yum. There are tons of breaking changes and behavioral differences, even if we ignore the not-yet-reimplemented features. I get people want to do this, but we decided as a project to explicitly not do this because it creates mismatched expectations for people. |
I think that's a misunderstanding of how the users view this. From a user's POV, yum/dnf/dnf5 are the thing that you call to install/update/remove/list/query packages. And those commands operate on rpms and repositories in the same way and actually even use the same repo config data. The internal architecture may be quite different, but as a user, I really really don't care about this. If it's faster and slightly more reliable, then I'm happy. If the option was renamed without providing backwards compat (why ever do that?!), then I'm a bit annoyed. If some feature is gone, I might delay upgrade… But it's still the same tool, and I won't install or use two in parallel, because it just doesn't make sense to have two separate views of the installed package set. I think that for some reason you're concentrating on developers, who would care about the APIs and architecture and all that, but the name of the main binary is for users. Our goal when creating the distro is to have a smooth experience where you don't need to figure out things and solve problems after every upgrade. Every time a program gets renamed, or options are changed incompatibly, or users need to reconfigure things after an update, we move further from this goal. Sometimes we don't have a choice, but let's agree that this is not a good thing. Or in other words: yes, I understand that the libraries and code are quite different, and many things changed with dnf5, and some features changed incompatibly. Let's describe those in the docs and have users adjust, but let's not make any additional incompatible changes. |
Some maintainers of Fedora presets would prefer that the dnf-makecache timer use the unversioned name so that the presets (and Ansible playbooks, etc) do not need to be updated to account for renaming it. This change would create a file conflict between the "dnf" and "dnf5" packages in Fedora, but it's already impossible to install them simultaneously because dnf5 "obsoletes" the old dnf package.
This PR will use the unit name "dnf-makecache" when "dnf5_obsoletes_dnf", and "dnf5-makecache" when it does not obsolete dnf.
@keszybz @Conan-Kudo