There is a new version of pcre-ocaml (4.31.0), and the tarball linked to from the old ebuild (version 4.26.3) seems to have been removed from the author's homepage. To update the ebuild to the new version, use this new SRC_URI: SRC_URI="http://www.oefai.at/~markus/ocaml_sources/${P}.tar.bz2" instead of the old one, and change the make command to: make CC=gcc all opt || die (the build fails, complaining about missing "cc" binary otherwise). It would probably be a very good idea to copy the tarball to the ibiblio.org mirror to avoid similar problems with disappearing tarballs in the future.
Please do not commit this to portage yet, as I'm working on some new packages and reworking this one to use findlib (which I will also add a bug on soon). The new version (release) of this package should be done Very Soon Now(tm)... :)
Hi Bardir. Okie, will wait for an update ;). George
Created attachment 8001 [details] pcre-ocaml-4.31.0-r1.ebuild Right... since findlib has now been committed to the portage tree, here's the updated pcre-ocaml which installs into the findlib tree (more package to follow, but I'll create new "bugs" for them :)). Changes since last version: - Sets OCAML_LIB_INSTALL to avoid installing into /usr/lib/ocaml/contrib (and subsequently moving into the proper directory). - Installs into findlib hierarchy now.
Hi Bardur. Thanks for an update! Looks like 4.31.0 is no longer awailable. I tried 4.33.0 and: 1. I had to remove "opt" target (make all opt... in src_compile) as it apparently is not present. This makes the package compile, however: 2. make install causes sandbox violation. Does not look like Makefiles honor OCAML_LIB_INSTALL any longer - I could not grep this variable within source. Could you please check what's happening with this? George
Created attachment 8460 [details] pcre-ocaml-4.33.0.ebuild > 1. I had to remove "opt" target (make all opt... in src_compile) as it apparently is > not present. This makes the package compile, however: No problems with that, doing "make all" now builds both the byte-code and the native versions. > 2. make install causes sandbox violation. Does not look like Makefiles honor > OCAML_LIB_INSTALL any longer - I could not grep this variable within source. > Could you please check what's happening with this? It seems the author has changed to using ocamlfind (yay!) for installing and ocamlfind looks for the variable OCAMLFIND_DESTDIR for an override for the install location. Changing the OCAML_LIB_INSTALL to OCAMLFIND_DESTDIR made it work (almost!). Since ocamlfind seems to like modifying /usr/lib/ocaml/ld.conf it is also necessary to point it to a dummy ld.conf file. Because the ld.conf is nonexistant, ocamlfind simply ignores it an just gives a warning. As far as I can tell, this is quite harmless. P.S. Could you please arrange for vers. 4.33.0 to be mirrored on ibiblio.org? I haven't checked, but I think the license would permit this. If not, it would probably be a good idea to at least contact the author and ask him to leave vers. 4.33.0 semi-permanently on his site.
Hi Bardur. Thanks for an update! This works now (still, please test :)). I committed the ebuild and mirrored the source. It is LGPL from what I see, so should be no problem in that respect. George
Works for me.
Hi Bardur. Thanks for testing! The ebuild is already unmasked, closing the bug.. George
Reclosing the bug