Closed avsm closed 11 years ago
We had the same problem with Core 109.15, and we tried many combinations of opam install <thing>.<version>
and opam pin <thing> <version>
.
Especially with <thing> = core
and <version> = 109.14.01
.
And we also ended up triggering "brute force" errors and wrong downgrades (so it's a more general problem than os: [ "linux"]
).
BTW, my solution was more aggressive :)
rm -fr packages/*.109.15.*
(https://github.com/smondet/opam-repository/commit/6775e7e5a44f9e7fe93a5ae5fe4053cf47e82e12)
Another observation is that a subsequent upgrade after the "mass downgrade" due to the brute force solver works pretty well:
$ opam upgrade
. brute-force exploration timed-out [931 states, 5s].
You might need to add explicit version constraints to your request to get a better answer.
The following actions will be performed:
- install core.109.14.01 [required by async, core_extended]
- downgrade typerex.1.99.4-beta to 1.99.0-beta
- upgrade lwt.2.4.1 to 2.4.3 [required by eliom, utop]
- downgrade re.1.2.0 to 1.0 [required by cow, uri]
- install async_core.109.14.00 [required by async]
- install core_extended.109.14.00
- downgrade ocp-build.1.99.4-beta to 1.99-beta
- downgrade js_of_ocaml.1.3.2 to 1.2 [required by eliom]
- upgrade lambda-term.1.2 to 1.4 [required by utop]
- recompile ocsigenserver.2.2.0 [use lwt]
- downgrade cow.0.5.3 to 0.4.0
- downgrade uri.1.3.6 to 1.3.0
- install async_unix.109.14.00 [required by async]
- recompile wget.0.1.0 [use typerex]
- downgrade utop.1.4.0 to 1.2.1
- downgrade eliom.3.0.1 to 2.2.2
- install async_extra.109.14.00 [required by async]
- install async.109.14.00
6 to install | 2 to reinstall | 2 to upgrade | 8 to downgrade | 0 to remove
Does it make sense to run the solution calculated for an upgrade through another upgrade? It should always end up with a fixed point solution right?
I have a patch in my local branch who should fix this, but I don't know what's the best way to test it before releasing it in the wild ...
Could you please try with the latest version of OPAM to see if this issue is solved ?
I'll revert my opam repository to the broken one later this evening and try this out.
On 29 Mar 2013, at 15:31, Thomas Gazagnaire notifications@github.com wrote:
Could you please try with the latest version of OPAM to see if this issue is solved ?
— Reply to this email directly or view it on GitHub.
The latest Core 109.15.00 is broken on non-Linux (see janestreet/core#12). I added an
os: ["linux"]
constraint in my local opam repository, but this triggered a brute force search that would downgrade all my packages to some non-optimal versions.However, manually removing
type_conv
no longer works:So I have no choice but to upgrade. Notice the non-optimal solution below where other packages go straight to the lowest versions instead of the high: