[csw-devel] SF.net SVN: gar:[20426] csw/mgar/gar/v2/lib/python/dependency_checks.py

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Mon Mar 11 18:00:39 CET 2013


Revision: 20426
          http://gar.svn.sourceforge.net/gar/?rev=20426&view=rev
Author:   chninkel
Date:     2013-03-11 17:00:38 +0000 (Mon, 11 Mar 2013)
Log Message:
-----------
gar/v2: don't complain about unused soname if the library is not even in the dependencies (can happen if the library was preloaded)

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/dependency_checks.py

Modified: csw/mgar/gar/v2/lib/python/dependency_checks.py
===================================================================
--- csw/mgar/gar/v2/lib/python/dependency_checks.py	2013-03-11 16:57:22 UTC (rev 20425)
+++ csw/mgar/gar/v2/lib/python/dependency_checks.py	2013-03-11 17:00:38 UTC (rev 20426)
@@ -175,7 +175,8 @@
     ldd_info = pkg_data['ldd_info'][binary_info["path"]]
     for ldd_response in ldd_info:
       if (ldd_response['state'] == 'soname-unused'
-          and ldd_response['soname'] not in BASE_SOLARIS_LIBRARIES):
+          and ldd_response['soname'] not in BASE_SOLARIS_LIBRARIES
+          and ldd_response['soname'] in binary_info['needed sonames']):
         sonames_unused.add(ldd_response['soname'])
         messenger.Message(
           "Binary %s links to library %s but doesn't seem to use any"

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list