-
Notifications
You must be signed in to change notification settings - Fork 154
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
Prefer latest versions of newly pulled in dependencies over smaller transaction #549
Comments
Any update here? |
To clarify on the testcase from #536 For: repo @System 0 testtags <inline>
#>=Pkg: krb5-libs 1.18.2 22.el8_7 x86_64
#>=Prv: krb5-libs(x86-64) = 1.18.2-22.el8_7
repo available 0 testtags <inline>
#>=Pkg: ipa-client 4.9.11 5.el8 x86_64
#>=Req: krb5-pkinit-openssl
#>
#>=Pkg: krb5-libs 1.18.2 25.el8_8 x86_64
#>=Prv: krb5-libs(x86-64) = 1.18.2-25.el8_8
#>
#>=Pkg: krb5-pkinit 1.18.2 25.el8_8 x86_64
#>=Req: krb5-libs(x86-64) = 1.18.2-25.el8_8
#>=Prv: krb5-pkinit-openssl = 1.18.2-25.el8_8
#>
#>=Pkg: krb5-pkinit 1.18.2 22.el8_7 x86_64
#>=Req: krb5-libs(x86-64) = 1.18.2-22.el8_7
#>=Prv: krb5-pkinit-openssl = 1.18.2-22.el8_7
system x86_64 rpm @System
job install oneof ipa-client-4.9.11-5.el8.x86_64@available We would like the result (just like with result transaction,problems <inline>
#>install ipa-client-4.9.11-5.el8.x86_64@available
#>install krb5-pkinit-1.18.2-25.el8_8.x86_64@available
#>upgrade krb5-libs-1.18.2-22.el8_7.x86_64@@System krb5-libs-1.18.2-25.el8_8.x86_64@available However if the upgrade of repo @System 0 testtags <inline>
#>=Pkg: krb5-libs 1.18.2 22.el8_7 x86_64
#>=Prv: krb5-libs(x86-64) = 1.18.2-22.el8_7
repo available 0 testtags <inline>
#>=Pkg: ipa-client 4.9.11 5.el8 x86_64
#>=Req: krb5-pkinit-openssl
#>
#>=Pkg: krb5-libs 1.18.2 25.el8_8 x86_64
#>=Prv: krb5-libs(x86-64) = 1.18.2-25.el8_8
#>
#>=Pkg: krb5-pkinit 1.18.2 25.el8_8 x86_64
#>=Req: krb5-libs(x86-64)
#>=Prv: krb5-pkinit-openssl = 1.18.2-25.el8_8
#>
#>=Pkg: krb5-pkinit 1.18.2 22.el8_7 x86_64
#>=Req: krb5-libs(x86-64)
#>=Prv: krb5-pkinit-openssl = 1.18.2-22.el8_7
system x86_64 rpm @System
job install oneof ipa-client-4.9.11-5.el8.x86_64@available It should be like without result transaction,problems <inline>
#>install ipa-client-4.9.11-5.el8.x86_64@available
#>install krb5-pkinit-1.18.2-25.el8_8.x86_64@available |
Actually it's not hard to do. I just need to find a name for that mode. |
|
First resolve the given jobs, then the dependencies of the resulting packages ignoreing the ones provided by currently installed packages. After that resolve all already installed packages. This is similar to SOLVER_FLAG_FOCUS_BEST but less aggressive in updating packages. Fixes issue #549
Ok, it's SOLVER_FLAG_FOCUS_NEW unless you come up with a better name. |
That is great, thank you! |
Following the pointer from #536 we are trying the
SOLVER_FLAG_FOCUS_BEST
but it seems it is too strong for dnf.To test it out we did set it as a default for all dnf5 commands and perhaps unsurprisingly it caused issues.
I believe that the desired behavior for dnf is to: prefer latest versions of newly pulled in dependencies over smaller transaction.
Is this something libsolv is already trying to achieve and when it doesn't happen can we consider that a bug (like #514)? Or would a new flag be needed for that?
The text was updated successfully, but these errors were encountered: