Frank Lichtenheld wrote (in #495431): > Hmm, isn't that like a reversal of d1a22f3e1a9503f401e517dcf38ebe44c3d4cce3 ? > [...]
Not exactly... > - join (' | ', map { "$_-3.10.0" } > - qw/ocaml-base-nox ocaml-base ocaml-nox ocaml/) > - ], > + 'ocaml-base-nox | ocaml-base | ocaml-nox | ocaml' ], My patch checks whether there is ocaml-...-version for some version, which is the dependency usually found in binary packages needing ocamlrun. The reversal of the patch above would check only for a specific OCaml version (the 3.10.0 one). By the way, the bug #476417 happened during an OCaml migration (3.10.1 -> 3.10.2). These periods are the only ones when two versions of OCaml coexist, and are meant to be very short (ideally < 1 month). In testing, there is always a single version of OCaml. A tighter check for Lintian would be to look for ocaml-...-`ocamlc -version`. The output of `ocamlc -version` is the same as `apt-cache show ocaml|sed -nr 's/^Version: ([^-]+).*$/\1/p'` (the latter needn't ocaml installed). This can be used for an even better patch IMHO (probably trivial to implement for perl gurus, so I let them do so). But keep in mind that Lintian would complain more during OCaml migrations. This information can be useful to readers of bug #476417, so I also CC'ed it. Cheers, -- Stéphane Glondu
signature.asc
Description: OpenPGP digital signature