On Jul 24, 2008, at 16:07, [EMAIL PROTECTED] wrote: > Revision: 38533 > http://trac.macosforge.org/projects/macports/changeset/38533 > Author: [EMAIL PROTECTED] > Date: 2008-07-24 14:07:36 -0700 (Thu, 24 Jul 2008) > Log Message: > ----------- > Avoid calling ocamlfind before it has been installed.
> -set ocaml_site_path [exec ocamlfind printconf destdir] > +pre-extract { > + global ocaml_site_path > + set ocaml_site_path [exec ocamlfind printconf destdir] > +} That works if you install all in one go: $ port install caml-unit ---> Fetching caml-ounit ---> Verifying checksum(s) for caml-ounit ---> Extracting caml-ounit ---> Configuring caml-ounit ---> Building caml-ounit ---> Staging caml-ounit into destroot ---> Installing caml-ounit @1.0.2_0 ---> Activating caml-ounit @1.0.2_0 ---> Cleaning caml-ounit $ But not if you break it up into two steps: $ port extract caml-unit ---> Fetching caml-ounit ---> Verifying checksum(s) for caml-ounit ---> Extracting caml-ounit $ port install caml-unit Error: Target org.macports.patch returned: can't read "ocaml_site_path": no such variable Error: Status 1 encountered during processing. $ I think you need to set the ocaml_site_path variable within each phase that uses it. _______________________________________________ macports-dev mailing list macports-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev