Re: advice need on how to avoid -custom
Eric Cooper wrote:
>>> 2. Figure out "by hand" which OCaml libraries need to be installed for
>>> their runtime DLLs, and use conditional Makefile hackery to add them
>>> to the Depends on bytecode-only archs. This is "optimal" but very
>>> error-prone.
>> You can conditionally do something like this:
>>
>> echo 'F:OCamlBytecodeDeps="libpcre-ocaml"' >> debian/substvars
>>
>> in the build target of your debian/rules, and use ${F:OCamlBytecodeDeps}
>> in the Depends field of your debian/control.
>
> Yes, but the error-prone part is finding all of the libraries that
> approx build-depends on that also require DLL stubs. [...]
Yes, it is. This suggestion was under the "by hand" assumption.
BTW, debian/substvars is deleted by dh_prep (called in install), so the
echo line above should be done at the beginning of binary-$whatever
instead (or at the end of install). Or if you call explicitly
dh_gencontrol, the variable can also be given as a commandline argument.
> [...] Can I assume that if
> package lib*-ocaml-dev has a corresponding lib*-ocaml, it's because it
> ships runtime DLLs?
Currently, yes. But at long term, no. See #500036.
Cheers,
--
Stéphane
Reply to: