Subject: ocaml and buildlink3
To: None <tech-pkg@netbsd.org>
From: Antoine Reilles <Antoine.Reilles@loria.fr>
List: tech-pkg
Date: 04/01/2007 23:04:30
--azLHFNyN32YCQGCU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Hi,

I just encountered a few problems with devel/ocaml-findlib, related to
how the ocaml package is buildlinked.
ocaml-findlib fails to detect the threading support of ocaml, because
of a missing threads/threads.a file in buildlink.

Adding
BUILDLINK_CONTENTS_FILTER.ocaml= \
  ${EGREP} '(include.*/|\.h$$|\.idl$$|\.pc$$|\.a|/lib[^/]*\.[^/]*$$)'

(I added the \.a to the original definition...)
to lang/ocaml/buidllink3.mk
seems to fix the problem (thus packages requiring thread support for
ocaml and using ocaml-findlibs do build correctly).
Is this a correct way to fix the problem, or is there a better way ?

Cheers,
antoine

--azLHFNyN32YCQGCU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGEB5e4VqmoGDE/mwRArtnAJ49ntFutrUvSDz6CXDiE1GzSgdKWgCfdu1a
5APRV8rCfu8S0E45ITPQAI4=
=J8rR
-----END PGP SIGNATURE-----

--azLHFNyN32YCQGCU--