PR 218333
- update to 4.07.1[WIP]
- return to the pool; the port is clearly abandoned
TODO:
- update 35+ ocaml-* ports - HERE
- test against an unkown number of ports; probably 100+
CONTRIBUTORS:
- Mikaël Urankar <mikael.urankar@gmail.com>
Differential D19318
lang/ocaml: Update to 4.07.1. rigoletto on Feb 24 2019, 6:58 AM. Authored by Tags None Referenced Files
Subscribers
Details PR 218333
TODO:
CONTRIBUTORS:
The port build fine; however there are a bunch of errors and tons of warnings during the building process. Upstream recomends GCC (not tested yet): The GNU C Compiler (gcc) is recommended, as the bytecode interpreter takes advantage of GCC-specific features to enhance performance. gcc is the standard compiler under Linux, OS X, and many other systems.
Diff Detail
Event TimelineComment Actions Thanks for trying to update lang/ocaml. Have you seen https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218333 ? Comment Actions I had not but I saw that needs some update, inclusive to add a CAMLP5 variable (it is in the newest patch). But that is something I will probably need some help. ^^ [EDIT] Thank you for pointing to it. Comment Actions Remove STRIP, OPTIONS_SUB - they aren't doing anything. Add OPTIONS subs to pkg-plist. Comment Actions
Comment Actions Add patch brought by @mikael.urankar_gmail.com : tested on armv6, armv7, aarch64, ppc64 (I put the glue code for powerpc but I can't test it). As ARMv7 needs binutils I start wondering again if that would not be better to switch to GCC (as advised by upstream). @linimon would you mind to test it on ARMs and POWERs with USE_GCC=yes? Thank you. :-) Comment Actions Add devel/ocaml-dune. This is the former jbuilder which will now be required by some ports needing update. Comment Actions -nox11 should be removed and converted by using FLAVOR. I hate to say this but I highly recommend you to work on this using github or similar because the final version of the patchset will be too long to review. My last attempt to update OCaml and related software in PR 182918 involved 100 ports and >12000 lines in the diff delta. It is old but not completely obsolete. Especially please consider to adopt migration from Mk/bsd.ocaml.mk to Mk/Uses/ocaml.mk in the patchset or update bsd.ocaml.mk to include OCaml toolchains from the first place. Uses/ocaml.mk is to maintain consistency of build/runtime dependencies and to avoid manual addition of something like "BUILD_DEPENDS=ocamlbuild:devel/ocaml-ocamlbuild" into Makefile, which makes difficult to maintain the port. Comment Actions I was willing to do that using the new ocaml.mk but I wasn't sure how compatible the final version would be with the actual prototype, and so I decided to work using the old (to get the things working), and later move to the new Mk when thta was done. About moving to somewhere I was indeed thinking about the same. Thank you. Comment Actions I just have noticed it would possible to aquire OCaml with a BSD Style LICENSE paying a reasonable small fee (3.500€) to become part of the Caml Consortium. Comment Actions I've updated the revision summary to include the GitHub address I will be working with the OCaml ports[1]. I will keep updating OCaml itself in here from time-to-time since this is the main thing, and for better internal visibility. Thank you. [1] currently it was no changes over the FreeBSD official ports tree but I will move the present changes to there ASAP. Comment Actions Thank you. I will work on updating the old patchset in the PR to the latest ports tree and send pull requests to your github repo to avoid duplicate work if you do not mind it. Comment Actions I've added you as collaborator. IDK how GitHub works on that but later I will look if I need to do anything more to give you write access. This comment was removed by rigoletto.
Comment Actions Fix CONFLICTS_INSTALL and also remove post-configure: that wasn't affecting anything. This comment was removed by rigoletto. Comment Actions Several of ocaml-* ports have this license: LGPL[v2+] with linking exception. What would be the best way to handle them, just set LICENSE=LGPL20+ or LICENSE=LGPL20+ LICENSE_NAME=LGPL with linking exception or other? Thank you. Comment Actions I have no idea what "LGPL with linking exception" changes from the normal "LGPL", I always thought the LGPL was the GPL with a linking exception.
Comment Actions This is about the generated binaries by the compiler, and not the compiler it self. Eg. GCC-GNAT and Adacore-GNAT (free version)
They are the exactly same compiler but with 9 months delta, being the Adacore on the newer. Comment Actions a few things to be considered to be added/fixed to/in ocaml.mk:
Thanks. Comment Actions Exp-run re-requested in PR 218333 — update to version 4.05.0, to set a foot for the next changes. |