Lines Matching defs:path
35 import os.path
47 path = os.getenv('PROTO_PATH')
48 if path != None:
49 self.proto_path = path.split()
61 "i86pc-solaris-64int", # perl path
62 "sun4-solaris-64int", # perl path
63 "i386-solaris" + solaris_ver, # ruby path
64 "sparc-solaris" + solaris_ver # ruby path
70 "i86pc-solaris-64", # perl path
71 "sun4-solaris-64", # perl path
72 "i86pc-solaris-thread-multi-64", # perl path
73 "sun4-solaris-thread-multi-64", # perl path
74 "amd64-solaris" + solaris_ver, # ruby path
75 "sparcv9-solaris" + solaris_ver,# ruby path
76 "sparcv9-sun-solaris" + solaris_ver,# ruby path
77 "amd64-solaris-" + solaris_ver, # ruby path
78 "sparcv9-solaris-" + solaris_ver,# ruby path
79 "x86_64-pc-solaris" + solaris_ver # GCC path
90 re.compile('^.*/i86pc-solaris-64(/.*)?$'), # perl path
91 re.compile('^.*/sun4-solaris-64(/.*)?$'), # perl path
93 # perl path
95 # perl path
97 # ruby path
99 # ruby path
101 # GCC path
103 # GCC path
162 _("Seeding reference action path dictionaries."))
173 seed_dict(manifest, "path", self.ref_paths)
176 _("Seeding lint action path dictionaries."))
182 seed_dict(manifest, "path", self.lint_paths)
185 _("Seeding local action path dictionaries."))
188 seed_dict(manifest, "path", self.lint_paths)
240 def __realpath(self, path, target):
241 """Combine path and target to get the real path."""
243 result = os.path.dirname(path)
247 result = os.path.dirname(result)
251 result = os.path.join(result, frag)
255 def __elf_aslr_check(self, path, engine):
258 ei = elf.get_info(path)
266 + path, shell=True,
275 _("'%s' is not tagged for aslr") % (path),
284 _("'%s' does not have aslr enabled") % (path),
288 def __elf_runpath_check(self, path, engine):
292 ed = elf.get_dynamic(path)
293 ei = elf.get_info(path)
307 # Make sure RUNPATH matches against a packaged path.
317 # if any reference path starts with this runpath
329 # not resolve to a legitimate path.
334 pdir = os.path.dirname(relative_dir)
340 _("runpath '%s' in '%s' not found in reference paths but contains symlink at '%s'") % (dir, path, pdir),
343 pdir = os.path.dirname(pdir)
351 _("64-bit runpath in 32-bit binary, '%s' includes '%s'") % (path, dir),
361 _("32-bit runpath in 64-bit binary, '%s' includes '%s'") % (path, dir),
369 def __elf_wrong_location_check(self, path, inspath):
372 ei = elf.get_info(path)
375 elems = os.path.dirname(inspath).split("/")
380 # Walk through the path elements backward and at the first
396 result = _("32-bit object '%%s' in 64-bit path(%s)" % elems)
398 result = _("64-bit object '%s' in 32-bit path")
407 inspath=action.attrs["path"]
409 path = action.hash
410 if path == None or path == 'NOHASH':
411 path = inspath
419 _("%(path)s is writable (%(mode)s), but missing a preserve"
420 " attribute") % {"path": path, "mode": mode},
427 _("%(path)s has a preserve action, but is not writable (%(mode)s)") % {"path": path, "mode": mode},
431 _("%(path)s has a preserve action, but no mode") % {"path": path, "mode": mode},
437 fullpath = directory + "/" + path
439 if os.path.exists(fullpath):
442 if not os.path.exists(fullpath):
445 " content checks") % path,
455 engine.error(result % path,
467 path = action.attrs["path"]
469 realtarget = self.__realpath(path, target)
480 # If it didn't match a path in the reference repo, it may still
482 # the default attributes. Look for a path that starts with
491 (action.name, path, target),
502 path = action.attrs["path"]
503 if self.initscript_re.match(path):
506 " service instead") % path,
582 sys.path[0:0] = [os.path.join(os.getenv("WS_TOP", ""),
588 del sys.path[0]