-
Notifications
You must be signed in to change notification settings - Fork 351
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
Linux Mint support #3692
Comments
Transferred issue, since all the OS detection is now done directly in opam ( Could you give the output of |
Oh, sorry, I'm using opam 1.2.2 so my problem may no longer be one. Since I read the source code on master over at opam-depext and it appeared to correspond to what my system was doing, and also because the online doc for opam 2 doesn't mention the depext command, I thought nothing had changed. Anyway, in case it's still relevant:
|
I switched to opam 2 from the PPA and the lack of support persists. With the basic os-release file:
Changing
Here is the output of
|
Does Linux Mint provide container images on the Docker Hub? If so, I'd be happy to add it into the supported distribution list in the ocaml containers. |
As far as I can tell they do not advertise or document it but they do have them, is that what you're looking for? |
Thanks, it looks like its very similar to Ubuntu so we probably dont need it in CI. From looking at
I think the right answer here is to build on ocaml-opam/opam-depext#63 and parse |
Yes, it uses the same package repository, up to a few packages mostly relating to the interface and to core system functionality, so nothing that should interact with builds. |
We could add an special case for LinuxMint, but it would only be an hardcoded workaround... |
I use Linux Mint myself and believe a hardcoded workaround would be best until Linux Mint finally updates their /etc/releases to have |
Same problem for opensuse, based on this ocaml/opam-repository#16864 (comment), ocaml/opam-repository#17004 related also. |
I know there is a closed issue (ocaml-opam/opam-depext#26) with the exact same title but I don't think this is solved.
Basically the user in ocaml-opam/opam-depext#26 solved their problem through the fact that their
/etc/os-release
containsID=ubuntu
. This may end up being the case after upgrades but on a fresh Linux Mint install you haveID=linuxmint
. Of course you can change it toID=ubuntu
, which I ended up doing, but since I am not sure if this has any greater consequences I would like to propose either of two cleaner ways to support Mint:Translate
linuxmint
toubuntu
(this should be harmless as it's the same repository)Let the user provide their own (extra?) flags in a config file (I'm willing to implement it if there's interest). Then Linux Mint users can add
ubuntu
by themselves. Perhaps complement this with a FAQ in the Readme. Edit: actually this is just Can't pass in/override flags ocaml-opam/opam-depext#72. @Leonidas-from-XIV, should I take over ?(In ocaml-opam/opam-depext#63 it is also proposed to look at
ID_LIKE
, which would have worked in my case since I hadID_LIKE=ubuntu
, but I'm not sure if this is correct in general since I think Ubuntu hasID_LIKE=debian
and they don't always have the same package names.)[rjbou] edit links
The text was updated successfully, but these errors were encountered: