Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12318 - dev-ml/pcre-ocaml.ebuild: new version (4.31.0) + bugfix
Summary: dev-ml/pcre-ocaml.ebuild: new version (4.31.0) + bugfix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: George Shapovalov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on: 13702
Blocks: 15901 15903
  Show dependency tree
 
Reported: 2002-12-17 11:08 UTC by Bardur Arantsson
Modified: 2003-09-30 20:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
pcre-ocaml-4.31.0-r1.ebuild (pcre-ocaml-4.31.0-r1.ebuild,947 bytes, text/plain)
2003-02-07 02:33 UTC, Bardur Arantsson
Details
pcre-ocaml-4.33.0.ebuild (pcre-ocaml-4.33.0.ebuild,909 bytes, text/plain)
2003-02-18 18:43 UTC, Bardur Arantsson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bardur Arantsson 2002-12-17 11:08:40 UTC
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.
Comment 1 Bardur Arantsson 2002-12-31 10:12:45 UTC
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)... :)
Comment 2 George Shapovalov (RETIRED) gentoo-dev 2003-01-05 22:54:42 UTC
Hi Bardir.

Okie, will wait for an update ;).

George
Comment 3 Bardur Arantsson 2003-02-07 02:33:31 UTC
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.
Comment 4 George Shapovalov (RETIRED) gentoo-dev 2003-02-18 17:02:39 UTC
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
Comment 5 Bardur Arantsson 2003-02-18 18:43:36 UTC
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.
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2003-02-23 16:33:34 UTC
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
Comment 7 Bardur Arantsson 2003-02-24 02:48:26 UTC
Works for me. 
Comment 8 George Shapovalov (RETIRED) gentoo-dev 2003-03-11 15:46:45 UTC
Hi Bardur.

Thanks for testing!
The ebuild is already unmasked, closing the bug..

George
Comment 9 George Shapovalov (RETIRED) gentoo-dev 2003-09-30 20:16:51 UTC
Reclosing the bug