FS#25763 - [ocaml] Integrate OCaml compiler libraries into the "ocaml" package

Attached to Project: Arch Linux
Opened by Baptiste (zorun) - Friday, 26 August 2011, 02:17 GMT
Last edited by Tobias Powalowski (tpowa) - Sunday, 18 September 2011, 13:54 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 5
Private No

Details

Description:
`utop` [1] is a universal toplevel for OCaml, providing completion support, colors, parenthesis matching, etc...

There is an almost-working package in the AUR [2], but utop "requires OCaml compiler libraries" (project README), which is available through package `ocaml-compiler-libs` [3] on Debian. On Arch, while there is such a package in the AUR [4] (currently broken and very outdated), it is not very convenient since it involves building a large part of the ocaml compiler.

On the other hand, it is pretty easy to include when compiling ocaml as a whole: just copying a few libs to $pkgdir. All in all, it's an additional 4.9 MB, which is not that much compared to the ~160 MB of the package. If this *really* is an issue, a split PKGBUILD would be a valid solution too.

I thereby ask to include these libs into the `ocaml` package in extra. Attached is a patch to the current PKGBUILD (based on metasyntax's work [5]). I've tested it with success.

Thank you!

[1] https://forge.ocamlcore.org/projects/utop/
[2] https://aur.archlinux.org/packages.php?ID=51722
[3] http://packages.debian.org/wheezy/ocaml-compiler-libs
[4] https://aur.archlinux.org/packages.php?ID=12333
[5] https://bitbucket.org/taylor_venable/aur/src/tip/ocaml/PKGBUILD
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Sunday, 18 September 2011, 13:54 GMT
Reason for closing:  Fixed
Additional comments about closing:  3.12.1-2
Comment by Baptiste (zorun) - Saturday, 27 August 2011, 16:47 GMT
Please note that the `ocaml-lwt` [1] package in the AUR also needs these libs to enable the compilation of some libraries.

[1] https://aur.archlinux.org/packages.php?ID=39089
Comment by Baptiste (zorun) - Monday, 29 August 2011, 10:42 GMT
I've just attached a split PKGBUILD, in case it would be more convenient.

It has the slight advantage of *not* bumping the pkgrel of the "ocaml" package, thus avoiding re-downloading the whole package for such a small change (saving a lot of bandwidth both for the servers and for OCaml users).

Please let me know if I can help anyhow, I'm a bit afraid of this bug report being buried and forgotten ;)
Comment by Taylor Venable (metasyntax) - Wednesday, 31 August 2011, 01:06 GMT
I should note too that ocaml-utop is not the only package that makes use of these compiler libraries; for example, the ocaml-lwt package has some features that require these files to be present. There may (or probably are) others out there. Thanks for your time.
Comment by Baptiste (zorun) - Saturday, 10 September 2011, 18:05 GMT
@tpowa: I don't mean to be pushing you, but it's been almost two weeks since the initial bug report.

If there's anything preventing it being resolved (either with direct inclusion or with the split PKGBUILD), please indicate what's wrong.
Comment by Tobias Powalowski (tpowa) - Sunday, 11 September 2011, 09:10 GMT
There is nothing wrong I don't have the time right now to do it.
I only use ocaml for compiling unison.
Comment by Sergei Lebedev (superbobry) - Tuesday, 13 September 2011, 11:40 GMT
Don't get me wrong, but no time for running `makepkg` with a "patched" PKGBUILD and doing an ftp upload? I can build packages for both architectures and attach them to this thread if it helps.

Thanks
Comment by Baptiste (zorun) - Friday, 16 September 2011, 20:53 GMT
@tpowa: I totally understand your point, you might not want to devote a lot of time for a feature you won't use, and this is perfectly fine for me.

However, as superbobry has pointed out, the time required for this task is just ridiculous...

Loading...