On Wed, Mar 12, 2014 at 05:59:28PM +0100, Stéphane Glondu wrote: > Le 12/03/2014 17:06, Robert Lemmen a écrit : > > I have zero knowledge of ocaml, but need to build it with changes as a > > build dependency for something else I am experimenting with. doing that > > I stumbled over something very puzzling, perhaps you could help me > > understand it: > > What changes? I want to build a system with the minimum number of packages, including build-dependencies. I need ocaml as a build dependency for something else, but I don't want to drag in all of x11, so I want to build only the -nox parts, in other words, not depending on tk8.5. > Did you try to use the existing package, and apply your changes there? yes > As you figured out, dh-ocaml depending on ocaml would imply a > build-dependency loop (ocaml build-depends on dh-ocaml...) for very > little benefit. Indeed, in practice, they are always installed together > (when dh_ocaml is called), except in the specific case of ocaml itself, > where an existing ocaml installation would be useless anyway. > > Besides, there are other things in dh-ocaml, such as scripts for > interacting with Alioth or the OCaml packaging policy and documentation, > that are useful even if ocaml-nox is not installed. ok, fully agreed! > BTW, in ocaml's debian/rules, there is: > > > # Environment variable for dh_ocaml > > export OCAMLOBJINFO = OCAMLLIB=tools boot/ocamlrun tools/objinfo somehow I must have missed/broken that... in any case, the double- env-set-trick used there is exactly what I was missing, building bequtifully now! thanks a lot robert -- Robert Lemmen http://www.semistable.com
Attachment:
signature.asc
Description: Digital signature