tools/python/pkglint/userland.py
changeset 1756 3579365335ef
parent 1742 1bfc3321abb4
child 1846 df40919e04fa
--- a/tools/python/pkglint/userland.py	Wed Mar 12 06:18:38 2014 -0700
+++ b/tools/python/pkglint/userland.py	Wed Mar 12 17:11:44 2014 -0700
@@ -46,6 +46,7 @@
 			self.proto_path = path.split()
 		else:
 			self.proto_path = None
+		solaris_ver = os.getenv('SOLARIS_VERSION')
 		#
 		# These lists are used to check if a 32/64-bit binary
 		# is in a proper 32/64-bit directory.
@@ -55,14 +56,18 @@
 			"sparcv7",
 			"32",
 			"i86pc-solaris-64int",  # perl path
-			"sun4-solaris-64int"    # perl path
+			"sun4-solaris-64int",   # perl path
+			"i386-solaris" + solaris_ver,	# ruby path
+			"sparc-solaris"	+ solaris_ver	# ruby path
 		]
 		self.pathlist64 = [
 			"amd64",
 			"sparcv9",
 			"64",
 			"i86pc-solaris-64",     # perl path
-			"sun4-solaris-64"       # perl path
+			"sun4-solaris-64",      # perl path
+			"amd64-solaris" + solaris_ver,	# ruby path
+			"sparcv9-solaris" + solaris_ver	# ruby path
 		]
 		self.runpath_re = [
 			re.compile('^/lib(/.*)?$'),
@@ -74,7 +79,11 @@
 			re.compile('^.*/amd64(/.*)?$'),
 			re.compile('^.*/sparcv9(/.*)?$'),
 			re.compile('^.*/i86pc-solaris-64(/.*)?$'), # perl path
-			re.compile('^.*/sun4-solaris-64(/.*)?$')   # perl path
+			re.compile('^.*/sun4-solaris-64(/.*)?$'),  # perl path
+			re.compile('^.*/amd64-solaris2\.[0-9]+(/.*)?$'),
+				# ruby path
+			re.compile('^.*/sparcv9-solaris2\.[0-9]+(/.*)?$')
+				# ruby path
 		]
 		self.initscript_re = re.compile("^etc/(rc.|init)\.d")