Bug 2252128
Summary: | set "deltarpm=False" in default dnf.conf on Fedora 40+ | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Fabio Valentini <decathorpe> |
Component: | dnf | Assignee: | Jan Kolarik <jkolarik> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | daniel.mach, jkolarik, jmracek, jrohel, mblaha, packaging-team-maint, pkratoch, rpm-software-management |
Target Milestone: | --- | Keywords: | Reopened, Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | dnf-4.19.0-1.fc40 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-02-09 00:37:55 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 2245148 |
Description
Fabio Valentini
2023-11-29 17:59:52 UTC
Hi Fabio and sorry for a late response. I believe the downstream patch, adding 'deltarpm=False' to the configuration file, is the simplest solution. If you can create that pull request, it would be greatly appreciated. Otherwise, I can take care of it. Regarding dnf5, we would probably go with a distribution configuration file with 'deltarpm=False' for the planned switch dnf4 -> dnf5 in Fedora 41. I've already filed an upstream issue: https://github.com/rpm-software-management/dnf5/issues/1185. Thanks for the advice - I filed a PR that adds a patch to set "deltarpm=False" in the default config file: https://src.fedoraproject.org/rpms/dnf/pull-request/22 dnf currently doesn't build in Rawhide, but that seems to be unrelated to my changes. PR merged, will be part of the next dnf update. Sorry, reopening this. After further consideration and team discussion, also in relation to the new filelists metadata not loading by default in Fedora 40+, we believe it's more appropriate to make the change upstream and patch the former downstreams. I've realized that simply patching the configuration is insufficient, as users with modified configurations on their systems won't receive the updated configuration from the package update. I'll need to devise a different approach in the downstream patches. Additionally, in connection with this, we need to drop the 'Recommends: deltarpm' weak dependency for Fedora releases, as these are installed by default due to `install_weak_deps=True`. I create an upstream change that provide functionality https://github.com/rpm-software-management/dnf/pull/2040 https://github.com/rpm-software-management/libdnf/pull/1641 In contrary to downstream patch, it does not modify dnf.conf, but default in code and a weak dependency. The adwantage of that approach is that it unifies behavior for all users, because changes in dnf.conf are not always applied to old system and some scripts does not load dnf.conf at all. Thanks, that works for me too. I would have considered the "users who have modified their dnf.conf will not get this change on upgrade" a good trade-off. But if you can switch the default behaviour if the setting is not present, that's even better :) FEDORA-2024-5338fc94c8 (dnf-4.19.0-1.fc40, dnf-plugins-core-4.5.0-1.fc40, and 1 more) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-5338fc94c8 FEDORA-2024-5338fc94c8 (dnf-4.19.0-1.fc40, dnf-plugins-core-4.5.0-1.fc40, and 1 more) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. |