Re: check for deprecated OCaml -custom linked executable
- To: 498138@bugs.debian.org
- Cc: Debian Ocaml Maint ML <debian-ocaml-maint@lists.debian.org>
- Subject: Re: check for deprecated OCaml -custom linked executable
- From: Stéphane Glondu <steph@glondu.net>
- Date: Tue, 12 May 2009 15:36:53 +0200
- Message-id: <[🔎] 4A097B75.2030209@glondu.net>
- In-reply-to: <20080907150900.GD29886@usha.takhisis.invalid>
- References: <48A85223.3060603@glondu.net> <48A9996A.3030001@inria.fr> <20080820115120.GD12295@yocto.gallu.homelinux.org> <48AC33CE.2000106@inria.fr> <20080907130757.GA23516@usha.takhisis.invalid> <48C3EA5B.8090509@glondu.net> <20080907150900.GD29886@usha.takhisis.invalid>
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: