-
Notifications
You must be signed in to change notification settings - Fork 359
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
debian testing/ubuntu disco opam packages result in solver failure on init #3827
Comments
Shouldn't this be an opam issue? |
@diml - it is; i transferred it yesterday after submitting it in the wrong browser tab :-) |
Ah ok :) I was going through my dune mail notifications |
Ubuntu 19.04 has just been released and still has the bug
I've reported it on Launchpad as well in case it can benefit from a backport: https://bugs.launchpad.net/ubuntu/+source/opam/+bug/1825394 |
@avsm thanks for tracking this. It's unfortunate that Debian doesn't compile with the built-in solver, and at the same time has a broken install of aspcud :/ |
In case anyone gets bitten by this like I did and stumbles across this page, a workaround using the distro's opam package is to |
Installing opam is annoyingly difficult in Ubuntu 19.04 because everything is broken: ocaml/opam#3827
Released Debian stable Buster is affected also.
|
I've run into this issue again this week while working on Debian packaging for jackline (hannesm/jackline#208). In its current state, While Debian bug #908203 fixes this in
Thoughts? I don't know the Github IDs of the Debian maintainers of |
While not being the Debian maintainer of Your alternative 1 is not possible. If we declare that As for your alternative 2, it looks doable if the patch is not too intrusive. |
IIRC if the ocaml-mccs package from unstable is backported (which doesn't use GLPK) then it's merely necessary to rebuild the opam package in stable - there's nothing else which needs backporting |
Yes, but that is not a fix that will un-break the existing |
Are you sure of that? The Debian package build-depends explicitly on ocaml-mccs... |
Indeed, you're right. It's there as I'll take a look at what I can do regarding alternative (2) for |
@glondu I have a possible solution for alternative (2) / a fix for The following changes need to be applied to
and the following patch needs to be added to
The former removes I've tested this by building a binary package and then running various combinations of The only minor complication I can see is when upgrading existing systems: if a user has done What do you think? Would this solution be acceptable to stable? |
It uses then For the breaking case you describe, I suppose that, if a user specified explicitly |
Yes, that's what I had in mind. As I wrote, I very much doubt there are any cases in the wild where people are using the DEB and have specified aspcud, since it doesn't work anyway. |
I've sent a recap message to the Debian bug report: |
With Debian GNU/Linux 10 (buster)
It created the initial switch ok, which is: ocaml-system.4.05.0
Get this error (same as above)
Any suggested workaround? |
@whoek This is with the stock Debian opam? Try |
@whoek |
@rjbou - Make sense. Many Thanks for reply.
|
Opam should work out of the box with mccs now, with Debian 10.4. |
Hourray! Thanks all! |
The Debian testing and Ubuntu Disco packages are both packaged in such a way that they use a different set of solver packages than those published by upstream opam.
The Debian bug report about this packaging is #908203, but there's a risk that this won't get fixed due to the Debian freeze. Filing this bug here so we can track it, as obviously a large number of our users are on Debian and Ubuntu.
The behaviour can be reproduced by
docker run ubuntu:disco sh -c "apt-get update && apt-get -y install opam && opam init -ya"
:CCing @glondu to see if we can help with the upstream packaging
The text was updated successfully, but these errors were encountered: