Package: libleptonica
Version: 1.69-3
Severity: important
Justification: inaccurate dependency in shlibs file (policy ยง8.6.3)
Tags: patch

Hi,

Packages linking to a library use the shlibs system to automatically
compute their dependencies.  This makes the work of the release team a
lot easier --- when the ABI of a library changes in such a way as to
require a stricter dependency for binaries built against it, the
correct dependency gets used automatically with no need for manual
effort to add it in the depending package.

Currently the dependencies computed through the shlibs system for
libleptonica are inaccurate: because they are unversioned, they are
satisfied by libleptonica from wheezy as well, which does not even
provide liblept.so.3.  To work around this, libtesseract3 gained a
hard-coded versioned dependency.

Let's fix the shlibs file so we can drop that workaround in tesseract
and create fewer surprises for future users and packagers working with
the library.

 debian/changelog |    2 ++
 debian/rules     |    2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index fa541b31..c4be472d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ leptonlib (1.69-3.1) local; urgency=low
   * Add Breaks relations to prevent libleptonica from satisfying
     dependencies by packages in squeeze and producing "liblept.so.1:
     cannot open shared object file" errors.
+  * Use a version (>= 1.69~) in the libleptonica dependency in
+    libleptonica.shlibs.
 
  -- Jonathan Nieder <jrnie...@gmail.com>  Sat, 14 Jul 2012 05:41:18 -0500
 
diff --git a/debian/rules b/debian/rules
index 007d76a1..3b7003b0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -61,7 +61,7 @@ binary-arch: build install
        dh_strip
        dh_compress
        dh_fixperms
-       dh_makeshlibs
+       dh_makeshlibs -V'libleptonica (>= 1.69~)'
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
-- 
1.7.10.4




--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to