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

Re: ocamlopt issue



On Wed, Jun 26, 2002 at 11:12:52PM +0200, J?r?me Marant wrote:
> Ralf Treinen <treinen@club-internet.fr> writes:
> 
> > On Wed, Jun 26, 2002 at 10:09:29PM +0200, J?r?me Marant wrote:
> >> 
> >> Hi,
> >
> > Salut,
> 
> Hi Ralf,
> 
> >
> >>   Ocamlsdl needs ocamlopt and it seems that ocamlopt is not
> >>   provided by all architectures (not suprisingly).
> >> 
> >>   So what is the best way to handle this? Should I specify
> >>   all the architecture providing ocamlopt in the Architecture:
> >>   field?
> >
> > Aren't these exactly the same architectures than those that have the
> > ocaml-native-compilers package? In this case a build-depends on
> > ocaml-native-compilers might do the trick, though it is not exactly
> > in the sense of policy.
> 
>   Well, I don't need native compilers to build the package, so
>   build-depending on such a package may not help at all.
>   Furthermore, I don't know how autobuilders behave when some
>   dependencies are unmet: is the package not considered for
>   the given architecture or is it considered as a failure?
> 
>   BTW, native compilers run on:
>  
>   ocaml-native-compilers | 3.04-13 | unstable | alpha, arm, i386, powerpc
> 
>   I've seen many more supported architectures in ocaml CVS (ia64, parisc),

Don't know about parisc, i don't think it is supported in 3.04, and ia64
native compiler are broken on ia64 (and since upstream don't have a ia64
box anymore, i guess they will remain broken).

The right idea is to build depend on ocaml-native-compilers, since i
don't think you can really rely on ocamlopt on arches where the native
compilers are not buildable.

The correct way, as the ocaml debian policy document says if i remember
well, is to depend on ocaml, and have a check for ocamlopt in
debian/rules, and if it is not present, build only the bytecode version.

That said, many upstream packages are ia32 centric, and don't take into
acount that many arches don't have native compilers. These packages are
considered broken as far as debian is concerned, and it is the job of
the maintainer to fix the build process.

I don't really believe there is any ocaml stuff that trully 'needs' the
native code compilers to the point of not being able to build and run in
bytecode, they will be slow, but they will work.

Friendly,

Sven Luther


-- 
To UNSUBSCRIBE, email to debian-ocaml-maint-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: