Quoting Sven LUTHER (luther@dpt-info.u-strasbg.fr): > > 2. mldonkey uses ocamlopt.opt but ocamlopt works as well. Which of the > > two should I use? Should I build-depend on eigther or conflict with > > one? > > You should build depend on ocaml-best-compilers, and do a test for the > presence of ocamlopt.opt before using it. Besides Stefano and Sven advices, I may add that such a test for presence of ocamlopt.opt may be found in other ocaml-bases packages... For instance, in "my" own package (geneweb, genealogical software written in ocaml), I deal with this as follows : upstream Geneweb includes a file named "tools/Makefile.inc" in all Makefile files. Upstream suggest putting the appropriate lines depending on the presence of "opt" compilers : OCAMLC=ocamlc.opt OCAMLOPT=ocamlopt.opt or OCAMLC=ocamlc OCAMLOPT=ocamlopt From the original Makefile.inc file, I make two files, one with "opt" lines and the other without. Then, I added this in debian/rules (stolen from the list or another package!): WAY=$(shell if [ -f "/usr/bin/ocamlc.opt" ]; then echo "opt"; \ else echo "out"; \ fi) # Move the proper makefile into place cp -f `pwd`/tools/Makefile.inc.$(WAY) `pwd`/tools/Makefile.inc $(MAKE) $(WAY) IMHO, this allows minimal modification of original sources....and it properly deals with the presence/lack of optimised compilers. I could also "edit" Makefile.inc on the fly... Of course, my package Build-Depends on ocaml-best-compilers as it was previously written... All this works well, though I'm not really an ocaml specialist (I'm far more a genealogist...:-))
Attachment:
pgpoP_SJlHAUk.pgp
Description: PGP signature