44 path = os.getenv('PROTO_PATH') |
44 path = os.getenv('PROTO_PATH') |
45 if path != None: |
45 if path != None: |
46 self.proto_path = path.split() |
46 self.proto_path = path.split() |
47 else: |
47 else: |
48 self.proto_path = None |
48 self.proto_path = None |
|
49 solaris_ver = os.getenv('SOLARIS_VERSION') |
49 # |
50 # |
50 # These lists are used to check if a 32/64-bit binary |
51 # These lists are used to check if a 32/64-bit binary |
51 # is in a proper 32/64-bit directory. |
52 # is in a proper 32/64-bit directory. |
52 # |
53 # |
53 self.pathlist32 = [ |
54 self.pathlist32 = [ |
54 "i86", |
55 "i86", |
55 "sparcv7", |
56 "sparcv7", |
56 "32", |
57 "32", |
57 "i86pc-solaris-64int", # perl path |
58 "i86pc-solaris-64int", # perl path |
58 "sun4-solaris-64int" # perl path |
59 "sun4-solaris-64int", # perl path |
|
60 "i386-solaris" + solaris_ver, # ruby path |
|
61 "sparc-solaris" + solaris_ver # ruby path |
59 ] |
62 ] |
60 self.pathlist64 = [ |
63 self.pathlist64 = [ |
61 "amd64", |
64 "amd64", |
62 "sparcv9", |
65 "sparcv9", |
63 "64", |
66 "64", |
64 "i86pc-solaris-64", # perl path |
67 "i86pc-solaris-64", # perl path |
65 "sun4-solaris-64" # perl path |
68 "sun4-solaris-64", # perl path |
|
69 "amd64-solaris" + solaris_ver, # ruby path |
|
70 "sparcv9-solaris" + solaris_ver # ruby path |
66 ] |
71 ] |
67 self.runpath_re = [ |
72 self.runpath_re = [ |
68 re.compile('^/lib(/.*)?$'), |
73 re.compile('^/lib(/.*)?$'), |
69 re.compile('^/usr/'), |
74 re.compile('^/usr/'), |
70 re.compile('^\$ORIGIN/') |
75 re.compile('^\$ORIGIN/') |
72 self.runpath_64_re = [ |
77 self.runpath_64_re = [ |
73 re.compile('^.*/64(/.*)?$'), |
78 re.compile('^.*/64(/.*)?$'), |
74 re.compile('^.*/amd64(/.*)?$'), |
79 re.compile('^.*/amd64(/.*)?$'), |
75 re.compile('^.*/sparcv9(/.*)?$'), |
80 re.compile('^.*/sparcv9(/.*)?$'), |
76 re.compile('^.*/i86pc-solaris-64(/.*)?$'), # perl path |
81 re.compile('^.*/i86pc-solaris-64(/.*)?$'), # perl path |
77 re.compile('^.*/sun4-solaris-64(/.*)?$') # perl path |
82 re.compile('^.*/sun4-solaris-64(/.*)?$'), # perl path |
|
83 re.compile('^.*/amd64-solaris2\.[0-9]+(/.*)?$'), |
|
84 # ruby path |
|
85 re.compile('^.*/sparcv9-solaris2\.[0-9]+(/.*)?$') |
|
86 # ruby path |
78 ] |
87 ] |
79 self.initscript_re = re.compile("^etc/(rc.|init)\.d") |
88 self.initscript_re = re.compile("^etc/(rc.|init)\.d") |
80 |
89 |
81 self.lint_paths = {} |
90 self.lint_paths = {} |
82 self.ref_paths = {} |
91 self.ref_paths = {} |