Bug 2042808
Summary: | weakdeps not working on rawhide system | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Parag Nemade <pnemade> | ||||
Component: | dnf | Assignee: | Jaroslav Mracek <jmracek> | ||||
Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | rawhide | CC: | daniel.mach, hujq, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, petersen, pkratoch, rpm-software-management, vmukhame, zbyszek | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2022-02-07 20:03:27 UTC | Type: | Bug | ||||
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: | 2013327 | ||||||
Attachments: |
|
Description
Parag Nemade
2022-01-20 07:58:56 UTC
Created attachment 1852107 [details]
debugdata testcase.t file
The change behavior is related to https://fedoraproject.org/wiki/Changes/ExcludeFromWeakAutodetect. The feature can be easilly switched off in /etc/dnf/dnf.conf using `exclude_from_weak_autodetect=false` or for particular command `sudo dnf install --debugsolver langpacks-fr --setopt=`exclude_from_weak_autodetect=false`. Do you suggest any other step? It seems to me that this Change should only affect upgrades not installs, no? I think that config option is not good for end users. It is an unnecessary step for them to learn now. You may want to understand history of langpacks 1) When we were using Yum, yum-langpacks plugin helped to install language support on user's desktop system. 2) Then comes dnf so we tried to convert yum-langpacks to use same transactional hooks and created dnf-langpacks project 3) But there comes some limitation due to DNF architecture which failed to re-resolve the transaction 4) New proposal comes using weakdeps to help end users to get all the related language support packages using langpacks-<lang> packages Now https://fedoraproject.org/wiki/Changes/ExcludeFromWeakAutodetect totally removed this functionality for end users automatically. I am sure Fedora Linux users will find it difficult for them to install language support on their system. https://fedoraproject.org/wiki/Changes/ExcludeFromWeakAutodetect broke our i18n langpacks testcase https://fedoraproject.org/wiki/QA:Testcase_langpacks_packages to install language support There remain no meaning now for https://fedoraproject.org/wiki/Packaging:Langpacks guidelines if we need to manually configure dnf I request to revert that F36 Change or find some easy way for end users. You can check the DNF and Langpacks development history https://fedoraproject.org/wiki/I18N/Langpacks I think if langpacks-<lang> will not pull all the weakdeps then our gnome-software feature also got broken now. See more about it https://sundeep.co.in/blog/2019/07/31/langpacks-autoinstall/ The gnome-software also provide langpacks installation. Just search langpacks in gnome-software. After this dnf F36 Change, users will not get language support packages which includes glibc-langpacks-*, hunspell-*, libreoffice-langpacks-* packages etc. Jaroslav, Any update here please? We want langpacks to be working similar as they are in Fedora 35. It looks like that the feature made a user case with langpacks broken. See additional reports: Bug 2048394 - dnf should pull weak dependencies in install transaction Bug 2033130 - exclude_from_weak_autodetect=true effectively renders rich weak dependencies useless The feature was requested: Bug 2005305 - dnf should not pull (already unmet) weak dependencies on updates Bug 1699672 - RFE: dnf should not pull (already broken) weak dependencies on updates Firs of all I need to clarify that the feature cannot be implemented only on upgrades - because there are technical reasons for that - 1. DNF creates one transaction for all operations (install, upgrades are performed together). 2.a Install operation or commands (not only install) also triggers update. (example - I have already installed foo-1-1.noarch. Then I will install bar-2-2.noarch that requires foo-2. It means the install command will trigger upgrade that dnf cannot detect in advance. And if foo recommends something, it will be installed) 2.b Install operation with --best (default in RHEL) triggers always upgrade when package is already installed but in lower version. Be honest I do not know what to do. Basically I see only 3 option with one additional: 1. Keep it like it is 2. Disable autodetection 3. Start to ignore rich dependencies for autodetection of unmet weak dependencies. Rich dependencies 4. In theory the auto-detection can be only triggered by upgrade command but it will create an inconsistency in DNF behavior when upgrade operation is triggered by the another command (install, buildeps, downgrade, ...) - not preferable, see above. *** This bug has been marked as a duplicate of bug 2033130 *** |