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

chninkel at users.sourceforge.net chninkel at users.sourceforge.net
Sat Oct 12 21:50:56 CEST 2013


Revision: 22198
          http://gar.svn.sourceforge.net/gar/?rev=22198&view=rev
Author:   chninkel
Date:     2013-10-12 19:50:53 +0000 (Sat, 12 Oct 2013)
Log Message:
-----------
gar/v2: handle the special case of amd64 binaries in Solaris 9 packages for the version dependencies check

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-10-11 10:08:30 UTC (rev 22197)
+++ csw/mgar/gar/v2/lib/python/dependency_checks.py	2013-10-12 19:50:53 UTC (rev 22198)
@@ -1,4 +1,4 @@
-# $Id$
+# $Id: dependency_checks.py 21908 2013-09-11 19:48:35Z chninkel $
 
 import checkpkg_lib
 import os.path
@@ -293,6 +293,13 @@
       pass
 
     osrel = pkg_data['basic_stats']['parsed_basename']['osrel']
+
+    if (osrel == u'SunOS5.9' and
+        binary_info['path'].endswith('/amd64/' + binary_info['base_name'])):
+      # amd64 binaries in Solaris 5.9 packages were in fact compiled under
+      # Solaris 5.10 so we have a special case here
+      osrel = u'SunOS5.10'
+
     for version_dep in binary_elf_info['version needed']:
       soname = version_dep['soname']
       if not soname in ALLOWED_VERSION_DEPENDENCIES:

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