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

Re: Depends clause of control

On Sat, Aug 26, 2006 at 08:00:22PM +1000, skaller wrote:
> I have a package which says this:
> Depends: ${shlibs:Depends}, g++, ocaml-nox-${F:OCamlABI}
> however this is wrong. If the arch supports native
> code compiler, there is no dependency on Ocaml at all.
> If the arch only supports bytecode, then ocaml_run is required

If this is the case effectively, then have a look at the spamoracle package,
which is the canonical example on how to package a bytecode/native code

Basically, you generate a arch: all bytecode package and a arch: <list of
native arches> native package.

This way, you generate the bytecode package only once, and both the bytecode
and the native code version is available on all arches which support native
code, and the native code version is also prefered over the bytecode one.


Sven Luther

Reply to: