Skip to content

Port to jbuilder, ocaml-migrate-parsetree (alternate history of #374) - #391

Merged
aantron merged 2 commits into
masterfrom
jbuild-blame-friendly
Jun 8, 2017
Merged

aantron merged 2 commits into
masterfrom
jbuild-blame-friendly

Conversation

@aantron

@aantron aantron commented Jun 8, 2017

Copy link
Copy Markdown
Collaborator

This is just a simplified history of #374, the excellent port of Lwt to jbuilder by @andrewray. It's basically a squash of that PR, preceded by a careful renaming of ppx_lwt_ex.ml to ppx_lwt.ml, so that git and GitHub are able to track that file's history in a way that makes sense to humans.

Resolves #374.
Resolves #365.

This should also resolve a lot of other issues with the Lwt build system (#364, #363, #344, maybe #205, maybe others). We will look into each one of those separately after the merge.

See the commit messages, especially of Port to jbuilder, for details, including things that are temporarily broken by the port. Those will be fixed soon, and certainly before the 3.1.0 release.

andrewray added 2 commits June 8, 2017 11:58
The commit after this one is the port of Lwt to jbuilder. As part of
that port, ppx_lwt_ex.ml is renamed to ppx_lwt.ml. The original, dummy
ppx_lwt.ml is deleted.

If this is all done in one commit, the resulting blame shows that
ppx_lwt.ml was entirely written during the jbuilder port. This is
misleading, and would harm history investigations in the future.

For this reason, the deletion of the dummy ppx_lwt.ml is factored out
into its own commit.

In this commit, the PPX does not build, nor pass tests.

Maintainer's note: this actual commit was created by Anton Bachin
(@aantron); though the change itself was originally made by the author,
Andrew Ray (@andrewray).

[skip ci]
This also ports the PPX to ocaml-migrate-parsetree.

The work in this commit, and the preceding one, was done by Andrew Ray
(@andrewray) in #374. These two commits are just a more blame-friendly
version; the detailed history is visible #374.

Some number of follow-on commits will probably be needed to fully
stabilize and finalize the port. Also, this commit breaks some packages
that depend on Lwt incorrectly. We will probably take steps to break
them more softly than is being done by this commit alone.

Builds on 4.05 are temporarily disabled, due to jbuilder not working
with the 4.05 betas. We will address this by building on trunk later.

This port disables coverage via Bisect completely (#319). We will
restore that in follow-on work; in the meantime, we expect few enough
edits to the test suite to be made that we can run the test suite with
coverage in a separate branch that does not yet have this commit, and
cherry-pick commits over if any development of the test suite occurs.

The build system produced by this commit is a bit of a chimera: it
adopts jbuilder without adopting modern packaging best practices. We
need to do the latter slowly, to avoid breaking projects that depend on
Lwt without proper warning (#293). Work along this direction had already
started (#301, #338, #370), and this jbuilder port will make it easier
to continue.

The port also pre-emptively solves a lot of other issues with the build
system. See the pull request for any issue links, to be added over the
coming days.

Maintainer's note: squash and summary done by Anton Bachin (@aantron).
@aantron aantron mentioned this pull request Jun 8, 2017
@andrewray

Copy link
Copy Markdown
Contributor

This looks great! Thank you for cleaning up the PR and making it maintainable.

@aantron
aantron merged commit 2163fb1 into master Jun 8, 2017
@aantron

aantron commented Jun 8, 2017

Copy link
Copy Markdown
Collaborator Author

Thanks again!

captura de pantalla 2017-06-08 a la s 16 55 17

@aantron
aantron deleted the jbuild-blame-friendly branch June 9, 2017 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port the build system to jbuilder + Configurator (?)

2 participants