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

Bug#495431: Bogus missing-dep-for-interpreter errors with ocamlrun



On Sun, Aug 17, 2008 at 01:10:45PM +0200, Stephane Glondu wrote:
> Lintian reports missing-dep-for-interpreter for many OCaml-related packages:
> 
>   http://lintian.debian.org/tags/missing-dep-for-interpreter.html
> 
> This is because packages that need ocamlrun usually depend on a
> virtual package providing it (embedding the ABI version in its name).
> I've thought of several ways to fix this:
> 
>  1. Take into account virtual packages in Dep::implies
>  2. Allow usage of regular expressions for dependencies in %interpreters
>  3. Add special case for ocamlrun before issuing missing-dep-for-interpreter
> 
> Attached is a patch implementing solution 3.

Hmm, isn't that like a reversal of d1a22f3e1a9503f401e517dcf38ebe44c3d4cce3 ?

commit d1a22f3e1a9503f401e517dcf38ebe44c3d4cce3
Author: Russ Allbery <rra@debian.org>
Date:   Mon Apr 21 22:00:37 2008 +0000

      + [RA] Expect unversioned dependencies on OCaml packages rather than
        versioned dependencies since the version changes frequently and
        unversioned dependencies are what people are already using.  Thanks,
        Hideki Yamane.  (Closes: #476417)

diff --git a/checks/scripts b/checks/scripts
index e018c89..c490467 100644
--- a/checks/scripts
+++ b/checks/scripts
@@ -70,9 +70,7 @@ our %interpreters =
      make          => [ '/usr/bin', 'make | build-essential' ],
      mawk          => [ '/usr/bin' ],
      ocamlrun      => [ '/usr/bin',
-                        join (' | ', map { "$_-3.10.0" }
-                              qw/ocaml-base-nox ocaml-base ocaml-nox ocaml/)
-                      ],
+                        'ocaml-base-nox | ocaml-base | ocaml-nox | ocaml' ],
      pagsh         => [ '/usr/bin', 'openafs-client | heimdal-clients' ],
      parrot        => [ '/usr/bin' ],
      perl          => [ '/usr/bin', '' ],
diff --git a/debian/changelog b/debian/changelog
index d3105cd..1a6f9d4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -46,6 +46,10 @@ lintian (1.23.47) UNRELEASED; urgency=low
       files do not need to be executable even if they look like scripts.
     + [RA] Add clisp, procmail, and rrdcgi, and another way interpretors
       are templated in *.in files.
+    + [RA] Expect unversioned dependencies on OCaml packages rather than
+      versioned dependencies since the version changes frequently and
+      unversioned dependencies are what people are already using.  Thanks,
+      Hideki Yamane.  (Closes: #476417)
   * checks/shared-libs:
     + [RA] Move the default ld.so search path into data.  Drop obsolete
       /usr/lib/libg++-dbg, /usr/X11R6/lib/Xaw3d, and libc5 compatibility


Gruesse,
-- 
Frank Lichtenheld <djpig@debian.org>
www: http://www.djpig.de/



Reply to: