Re: Hi, packaging mldonkey, rpath + other questions
Christian Perrier <bubulle@debian.org> writes:
> 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...
The configure.in already has a check for:
AC_CHECK_PROG(OCAMLOPT, ocamlopt.opt, ocamlopt.opt)
I added another check below that:
AC_CHECK_PROG(OCAMLOPT, ocamlopt, ocamlopt)
That way it takes the users setting of OCAMLOPT, if that fails it uses
ocamlopt.opt and if thats not present ocamlopt.
> 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...:-))
I want to make a binary-all package of the bytecompiled version. Unless
I misunderstood other replies here bytecompiled ocaml (with the proper
flags) should run on all archs without change.
For speed reasons I also want to provide a optimised version on archs
that support it. The above tests find the right (best) ocamlopt. But
how do I know that there is one at all? I don't want to build a deb on
archs that don't have ocamlopt. Using arch=i386,alpha,... in the
control field would need a change when more archs get a ocamlopt. i
would prefer a more automatic way.
Shouldn't the ocaml.deb provide ocamlopt or ocaml-nativ-compiler so
that one can simply Build-depend on it? Or do all archs that have
ocamlopt also have ocaml-native-compiler (which provides
ocaml-best-compiler)? Should I just Build-depend on
ocaml-native-compiler or ocaml-best-compiler even though the normal
ocamlopt would suffice?
MfG
Goswin
Reply to: