Hi there, I've updated the ocaml-3.04 ebuild to ocaml-3.05 and fixed a couple of buglets in the process. The new ebuild is attached. Apparently, the old ebuild did not do a "make installopt" to install the optimized compiler. In addition, the old ebuild did not respect the "tcltk" USE variable. I've updated the dependency and added a check for the variable to the src_compile section of the Ebuild. This obsoletes bug #5418 (http://bugs.gentoo.org/show_bug.cgi?id=5418).
Created attachment 2690 [details] ocaml-3.05.ebuild
Well, it seems that ocaml-3.05 has a new way of configuring/detecting load paths for libraries. It uses /usr/lib/ocaml/ld.conf to list library paths, but that file contained invalid paths (pointing into the /var/tmp/portage/... build tree), which caused some library builds to fail. I've fixed that (by adding a small "dosed" command to the install portion of the ebuild) and attached the revised ebuild.
Created attachment 2878 [details] ocaml-3.05-r2.ebuild
Hi Bardur Thanks for a submission! One question: in src_compile you have this line: use tcltk || OPTS="-no-tk" however OPT is never used again, did you mean myconf in palce of OPT? Also, I see you removed src_unpack that patched the sources to work on ppc. Did you remove this because of the note in the ebuild or because you tested it on ppc? Thanks! George
*** Bug 5799 has been marked as a duplicate of this bug. ***
Ok, committed Bardur's version (with minor changes) Please test (masked now, so you'll need to unmask). Thanks for submissions! George
[--snip--] > in src_compile you have this line: > use tcltk || OPTS="-no-tk" > however OPT is never used again, did you mean myconf in palce of OPT? Yup, I missed that one. There's a reason that search/replace is usually done automatically, I guess. :) > Also, I see you removed src_unpack that patched the sources to work on ppc. > Did you remove this because of the note in the ebuild or because you tested it on ppc? Unfortunately, I don't have access to a PPC, but I *did* check (visually) that the patches for PPC had actually been applied to the (stock) ocaml-3.05 sources.
Hi Bardur Thanks for clarification. Could you please test the committed version and let me know the result, so that I could unmask it? George
Seems to work fine.
Oh, and btw: Bug #5865 (http://bugs.gentoo.org/show_bug.cgi?id=5865) should probably be marked as a duplicate of this. (Or vice versa).
*** Bug 5865 has been marked as a duplicate of this bug. ***
*** Bug 5418 has been marked as a duplicate of this bug. ***
Hi, the src url ftp://ftp.inria.fr/lang/caml-light/ocaml-3.05.tar.gz (don't worked for me) changed to http://caml.inria.fr/distrib/ocaml-3.05.tar.gz, I think. georg sauthoff
I don't know if this interests someone, but the ebuild works fine with gcc 2.95 and 3.1 for me. georg sauthoff
the 3.06 version has superceded this.