Your message dated Thu, 23 Mar 2006 22:32:12 -0800
with message-id <[EMAIL PROTECTED]>
and subject line Bug#358685: fixed in linda 0.3.20
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: linda
Version: 0.3.19
Severity: normal
Tags: patch

Hello,

This bug report is a little bit different from #357727 (linda: Linked
library dependency check false positive? (Or details appreciated.)).


Linda outputs the following warning with the passwd package:
W: passwd; A binary links against a library it does not use symbols from

(And I think the passwd package uses the right dependency, i.e. the ones
computed by dpkg-dev (${shlibs:Depends}).


passwd uses symbols from the /lib/libpam_misc.so.0, provided by the libpam0g 
package.
But in the binary.py check, linda checks wether passwd depends on a
packages whose name starts with "libpam_misc", which is not the case.


The attached patch fixes this (but it is a little bit slower, and may not
be linda way (I don't use the lab)).

Kind Regards,
-- 
Nekral
diff -rauN ../orig/linda-0.3.19/checks/binary.py ./linda-0.3.19/checks/binary.py
--- ../orig/linda-0.3.19/checks/binary.py       2006-03-21 01:06:41.000000000 
+0100
+++ ./linda-0.3.19/checks/binary.py     2006-03-23 22:40:18.000000000 +0100
@@ -1,6 +1,6 @@
 import re
 from linda import libchecks, checks
-from linda.funcs import explode_path
+from linda.funcs import explode_path, run_external_cmd
 from sets import Set
 
 class BinaryCheck(libchecks.LindaChecker):
@@ -142,8 +142,10 @@
             for lib in libs.keys():
                 found = 0
                 for dep in dependancies:
-                    if dep.startswith(libs[lib]):
-                        found = 1
+                    dep_file_list = run_external_cmd('dpkg -L %s' % dep, 1)
+                    for file in dep_file_list.split('\n'):
+                        if file.endswith("/%s" % lib):
+                            found = 1
                 if not found:
                     libs_not_in_depends += 1
             if libs_not_in_depends:

--- End Message ---
--- Begin Message ---
Source: linda
Source-Version: 0.3.20

We believe that the bug you reported is fixed in the latest version of
linda, which is due to be installed in the Debian FTP archive:

linda_0.3.20.dsc
  to pool/main/l/linda/linda_0.3.20.dsc
linda_0.3.20.tar.gz
  to pool/main/l/linda/linda_0.3.20.tar.gz
linda_0.3.20_all.deb
  to pool/main/l/linda/linda_0.3.20_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Steve Kowalik <[EMAIL PROTECTED]> (supplier of updated linda package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 24 Mar 2006 17:12:24 +1100
Source: linda
Binary: linda
Architecture: source all
Version: 0.3.20
Distribution: unstable
Urgency: low
Maintainer: Steve Kowalik <[EMAIL PROTECTED]>
Changed-By: Steve Kowalik <[EMAIL PROTECTED]>
Description: 
 linda      - Debian package checker, not unlike lintian
Closes: 358409 358685
Changes: 
 linda (0.3.20) unstable; urgency=low
 .
   * TestSuite:
     - Don't depend so heavily on the output of file. (Closes: #358409)
   * BinaryCheck:
     - Also split on _ for libs-not-in-depends. (Closes: #358685)
Files: 
 d18f164f96d100cdad51e264c5662cf5 537 devel optional linda_0.3.20.dsc
 846a110390a5ad87cc8f2fb211462d12 700000 devel optional linda_0.3.20.tar.gz
 881340009d095e99d958ab577c509ad4 206406 devel optional linda_0.3.20_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEI465CfB0CMh//C8RAjYFAKC7khl3/s0lYTpJmVcfSKkB0kCfPgCgh6C5
kQhW/qWiecSo3amxVSW2iKw=
=7L81
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to