[csw-devel] SF.net SVN: gar:[11300] csw/mgar/gar/v2/lib/python/package_checks.py
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Thu Oct 14 20:48:52 CEST 2010
Revision: 11300
http://gar.svn.sourceforge.net/gar/?rev=11300&view=rev
Author: wahwah
Date: 2010-10-14 18:48:52 +0000 (Thu, 14 Oct 2010)
Log Message:
-----------
mGAR v2: Suggesting GAR lines to separate out sonames into individual packages.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/package_checks.py
Modified: csw/mgar/gar/v2/lib/python/package_checks.py
===================================================================
--- csw/mgar/gar/v2/lib/python/package_checks.py 2010-10-14 10:36:18 UTC (rev 11299)
+++ csw/mgar/gar/v2/lib/python/package_checks.py 2010-10-14 18:48:52 UTC (rev 11300)
@@ -1014,6 +1014,30 @@
% (pkgname, sorted(set(sonames))))
# If the sonames aren't uniform, there's no point in trying to match
# sonames versus pkgname.
+ for soname, binary_info in linkable_shared_libs:
+ lib_path, lib_basename = os.path.split(binary_info["path"])
+ messenger.SuggestGarLine(
+ "# Suggesting how to separate out %s"
+ % soname)
+ messenger.SuggestGarLine(
+ "# You will most probably need to further edit these lines. "
+ "Use with caution!")
+ tmp = su.MakePackageNameBySoname(soname)
+ policy_pkgname_list, policy_catalogname_list = tmp
+ messenger.SuggestGarLine("PACKAGES += %s" % policy_pkgname_list[0])
+ messenger.SuggestGarLine(
+ "CATALOGNAME_%s += %s"
+ % (policy_pkgname_list[0], policy_catalogname_list[0]))
+ messenger.SuggestGarLine(
+ "PKGFILES_%s += /%s"
+ % (policy_pkgname_list[0], os.path.join(lib_path, lib_basename)))
+ messenger.SuggestGarLine(
+ "PKGFILES_%s += /%s\.[0-9\.]+"
+ % (policy_pkgname_list[0], os.path.join(lib_path, soname)))
+ messenger.SuggestGarLine(
+ "RUNTIME_DEP_PKGS_%s += %s"
+ % (pkgname, policy_pkgname_list[0]))
+
check_names = False
else:
if multilib_pkgname != pkgname:
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