[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#883018: Please make ocaml-nox provide ocamlopt (or not) depending on arch



Hello,

On Tue, Nov 28, 2017 at 09:58:51PM +0100, Julien Puydt wrote:

> I just took the scilab package out of orphanage, and I'm having a
> problem : it has some caml code, but wants to compile it with ocamlopt,
> which is not available on all architectures.
> 
> If you look at:
> https://buildd.debian.org/status/package.php?p=scilab&suite=experimental

I can't see any builds on this page.

> you'll see that the previous maintainer set a list of ok-arches and for
> some reason, armel went from ok to not-ok.

The up-to-date list of architectures for which ocaml provides
compilation to native code can be found in the file

/usr/lib/ocaml/native-archs

> Would it be possible to make ocaml-nox provide or not provide a virtual
> ocamlopt package depending on the arch? That way, I would make scilab
> depend on ocamlopt and things would go smoothly as you update the
> ocaml-nox package.

I don't think that is the right way to solve this problem. Instead, the
upstream Makefiles or ./configure should detect existence or not of
/usr/bin/ocamlopt, and then fall back to using ocamlc when this is not
case. The ./configure ofscilab seems already to do that, so maybe
some of the makefiles do not use this information properly.

-Ralf.


Reply to: