Skip to content
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

Remove old OCaml versions. #48053

Merged
merged 6 commits into from Oct 9, 2018
Merged

Remove old OCaml versions. #48053

merged 6 commits into from Oct 9, 2018

Conversation

Zimmi48
Copy link
Member

@Zimmi48 Zimmi48 commented Oct 8, 2018

Motivation for this change

OCaml is currently shipped in more than 10 versions on nixpkgs (which is quite original compared to the general policy in nixpkgs of maintaining very few versions). In particular, there are 4 version pre-OCaml 4 and only one broken package (Matita) and one very old version of Coq (8.3) depend on them. It seems like it is time for this clean-up.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Fits CONTRIBUTING.md.

Note that I am not sure if nox-review wip is enough to properly test this. I might have missed some stuff.

@Mic92 Mic92 requested a review from vbgl October 8, 2018 15:07
@Mic92
Copy link
Member

Mic92 commented Oct 8, 2018

It would be also interesting how many 4.0x versions we need. But I have not enough inside knowledge to decide that.

@Zimmi48
Copy link
Member Author

Zimmi48 commented Oct 8, 2018

@Mic92 I thought about going further and removing everything before 4.02 but I figured I would have more difficulties and I'd wait for feedback here before doing so.

@vbgl
Copy link
Contributor

vbgl commented Oct 8, 2018

Please also remove matita. It has been broken for decades.

@Zimmi48
Copy link
Member Author

Zimmi48 commented Oct 8, 2018

OK

This requires removing also the Coq 8.3 and Matita 0.5.8 packages.

Coq 8.3 was released 8 years ago (2010) and there is no trace left
of users of this version (contrary to Coq 8.4, released 2012).
It is well over time to remove it.

Matita 0.5.8 was released in 2010 and because this version was still
used for teaching according to the official website, a legacy release
(0.5.9) was released in 5 years later to compile with more recent
OCaml libraries.
Updating to 0.5.9 (or a more recent version like 0.99.3) should allow
getting rid of the dependency on older OCaml but it is hard to test
given that the package is already broken before this update.
@Zimmi48
Copy link
Member Author

Zimmi48 commented Oct 8, 2018

The last commit was done quickly and is untested.

@Mic92
Copy link
Member

Mic92 commented Oct 9, 2018

There is an evaluation error still there according to ofBorg.

As requested by Vincent Laporte.
@Zimmi48
Copy link
Member Author

Zimmi48 commented Oct 9, 2018

Seems to have passed now.

@Mic92 Mic92 merged commit c0d1c41 into NixOS:master Oct 9, 2018
@Zimmi48 Zimmi48 deleted the clean-up/ocaml branch October 9, 2018 18:50
@vbgl vbgl mentioned this pull request Nov 15, 2018
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants