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

Re: check for deprecated OCaml -custom linked executable



Stefano Zacchiroli a écrit :
>> This check is quite easy using the ocamlobjinfo tool: it prints "Force
>> custom: YES" when given a faulty .cma.
> 
> ... but I doubt that we can rely on external packages from lintian
> checks (lintian maintainers: can we?). So I suggest implementing the
> test in pure Perl, not relying on ocamlobjinfo, it won't be hard at all.

A .cma file is a marshalled OCaml structure. It would be insane (and
fragile) to use anything else than ocamlobjinfo to read it.

Maybe we can make an optional check that will be enabled if ocamlobjinfo
is available (and making ocaml-nox a Suggestion)? When building
OCaml-related packages, it is always installed anyway.

-- 
Stéphane


Reply to: