Comments (9)
But isn't that already what libsolv does? It tries to install all recommended packages, unless it's not possible. And there's already a flag to turn this off (SOLVER_FLAG_IGNORE_RECOMMENDED).
from libsolv.
Actually it doesn't.
The following test fails:
repo system 0 testtags <inline>
#>=Pkg: A 1 0 all
#>=Pkg: C 1 0 all
#>=Pkg: Z 1 0 all
#>=Rec: A = 1-0
#>=Rec: C = 1-0
repo test 0 testtags <inline>
#>=Pkg: A 2 0 all
#>=Pkg: B 1 1 all
#>=Pkg: C 2 0 all
#>=Pkg: Z 2 0 all
#>=Rec: A = 2-0
#>=Rec: B = 1-1
#>=Rec: C = 2-0
system i686 deb system
job install name Z [orupdate]
result transaction,problems <inline>
#>install B-1-1.all@test
#>upgrade A-1-0.all@system A-2-0.all@test
#>upgrade C-1-0.all@system C-2-0.all@test
#>upgrade Z-1-0.all@system Z-2-0.all@test
with the result:
Results differ:
-upgrade A-1-0.all@system A-2-0.all@test
-upgrade C-1-0.all@system C-2-0.all@test
from libsolv.
Yes, that's true. It solves your example that way because it currently has a focus on doing minimal changes to your system, and thus it prefers not updating A and C and breaking the recommends dependency over the update. Is this some real issue that needs fixing?
from libsolv.
I can add a solver flag that makes it add weak rules for the recommends, this will make the solver try hard to fulfill all recommends.
from libsolv.
Good idea.
from libsolv.
The libsolv backend of opkg has the same problem, it's a regression from when the internal solver is used. A flag that will allow opkg to keep the same behavior across backends would be fantastic!
https://bugzilla.yoctoproject.org/show_bug.cgi?id=9939
from libsolv.
Now done: the SOLVER_FLAG_STRONG_RECOMMENDS makes the solver create rules for recommends dependencies. Pretty much untested, though...
from libsolv.
While testing SOLVER_FLAG_STRONG_RECOMMENDS, I found a potential issue. In a repo that has the following (pseudo code form opkg ATS):
o.add(Package="x")
o.add(Package="a", Recommends="b")
o.add(Package="b", Recommends="c")
o.add(Package="c", Conflicts="x")
And package 'x' is installed, when an 'install a' operation is run, only 'a' is installed. Seems to me like a better solution would be to install 'a' AND 'b', which is what you get without SOLVER_FLAG_STRONG_RECOMMENDS. Would it make sense to have SOLVER_FLAG_STRONG_RECOMMENDS follow that behavior? I can open an issue, if you think this suggestion makes sense.
from libsolv.
from libsolv.
Related Issues (20)
- Obsoletes is not honored while solving HOT 4
- Using old version to satisfy dependency HOT 3
- Unable to find size of unsigned char string returned by solvable_lookup_bin_checksum HOT 2
- solvable_lookup_bin_checksum() returning only sha256 HOT 1
- Using `focusbest` with `ignorerecommended` installs recommend anyway HOT 1
- Setting a limit on concurrently installed installonly packages HOT 3
- What about release of 0.7.25 HOT 3
- segfault from libsolv during dependency checking for reposync from source with large metadata file. HOT 6
- RFE: is it possible to start making github releases?🤔 HOT 5
- solv.so Ruby binding should depend on libruby HOT 1
- Prefer latest versions of newly pulled in dependencies over smaller transaction
- Non consistent behavior of installonly packages HOT 2
- dumpsolv -j hangs when executed in container with allocated tty HOT 1
- Extend unneeded packages by weak dependencies HOT 4
- lua bindings? HOT 6
- testsolv json output
- libzypp and code using it can't be built with a C++20 compiler HOT 1
- testsolv -W hangs for some packages HOT 2
- Add support for parsing `repodata.json` file with `repodata_version` 2 HOT 1
- Python binding for repodata.add_solv returns False when should return True HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libsolv.