mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Back out 2 changesets (bug 528092, bug 1076848) for introducing an extra 3 hour timeout to builds
CLOSED TREE Backed out changeset b15dac9231ee (bug 528092) Backed out changeset 5b1402a3d3ca (bug 1076848)
This commit is contained in:
parent
961a982bf9
commit
3056e4d13a
@ -14,8 +14,7 @@
|
|||||||
#
|
#
|
||||||
# Parameters accepted:
|
# Parameters accepted:
|
||||||
# -c : Copy debug info files to the same directory structure
|
# -c : Copy debug info files to the same directory structure
|
||||||
# as sym files. On Windows, this will also copy
|
# as sym files
|
||||||
# binaries into the symbol store.
|
|
||||||
# -a "<archs>" : Run dump_syms -a <arch> for each space separated
|
# -a "<archs>" : Run dump_syms -a <arch> for each space separated
|
||||||
# cpu architecture in <archs> (only on OS X)
|
# cpu architecture in <archs> (only on OS X)
|
||||||
# -s <srcdir> : Use <srcdir> as the top source directory to
|
# -s <srcdir> : Use <srcdir> as the top source directory to
|
||||||
@ -536,7 +535,7 @@ class Dumper:
|
|||||||
return ""
|
return ""
|
||||||
|
|
||||||
# subclasses override this if they want to support this
|
# subclasses override this if they want to support this
|
||||||
def CopyDebug(self, file, debug_file, guid, code_file, code_id):
|
def CopyDebug(self, file, debug_file, guid):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def Finish(self, stop_pool=True):
|
def Finish(self, stop_pool=True):
|
||||||
@ -610,7 +609,6 @@ class Dumper:
|
|||||||
result = { 'status' : False, 'after' : after, 'after_arg' : after_arg, 'files' : files }
|
result = { 'status' : False, 'after' : after, 'after_arg' : after_arg, 'files' : files }
|
||||||
|
|
||||||
sourceFileStream = ''
|
sourceFileStream = ''
|
||||||
code_id, code_file = None, None
|
|
||||||
for file in files:
|
for file in files:
|
||||||
# files is a tuple of files, containing fallbacks in case the first file doesn't process successfully
|
# files is a tuple of files, containing fallbacks in case the first file doesn't process successfully
|
||||||
try:
|
try:
|
||||||
@ -640,10 +638,9 @@ class Dumper:
|
|||||||
# FILE index filename
|
# FILE index filename
|
||||||
(x, index, filename) = line.rstrip().split(None, 2)
|
(x, index, filename) = line.rstrip().split(None, 2)
|
||||||
filename = os.path.normpath(self.FixFilenameCase(filename))
|
filename = os.path.normpath(self.FixFilenameCase(filename))
|
||||||
# We want original file paths for the source server.
|
|
||||||
sourcepath = filename
|
|
||||||
if filename in self.file_mapping:
|
if filename in self.file_mapping:
|
||||||
filename = self.file_mapping[filename]
|
filename = self.file_mapping[filename]
|
||||||
|
sourcepath = filename
|
||||||
if self.vcsinfo:
|
if self.vcsinfo:
|
||||||
(filename, rootname) = GetVCSFilename(filename, self.srcdirs)
|
(filename, rootname) = GetVCSFilename(filename, self.srcdirs)
|
||||||
# sets vcs_root in case the loop through files were to end on an empty rootname
|
# sets vcs_root in case the loop through files were to end on an empty rootname
|
||||||
@ -655,14 +652,6 @@ class Dumper:
|
|||||||
(ver, checkout, source_file, revision) = filename.split(":", 3)
|
(ver, checkout, source_file, revision) = filename.split(":", 3)
|
||||||
sourceFileStream += sourcepath + "*" + source_file + '*' + revision + "\r\n"
|
sourceFileStream += sourcepath + "*" + source_file + '*' + revision + "\r\n"
|
||||||
f.write("FILE %s %s\n" % (index, filename))
|
f.write("FILE %s %s\n" % (index, filename))
|
||||||
elif line.startswith("INFO CODE_ID "):
|
|
||||||
# INFO CODE_ID code_id code_file
|
|
||||||
# This gives some info we can use to
|
|
||||||
# store binaries in the symbol store.
|
|
||||||
bits = line.rstrip().split(None, 3)
|
|
||||||
if len(bits) == 4:
|
|
||||||
code_id, code_file = bits[2:]
|
|
||||||
f.write(line)
|
|
||||||
else:
|
else:
|
||||||
# pass through all other lines unchanged
|
# pass through all other lines unchanged
|
||||||
f.write(line)
|
f.write(line)
|
||||||
@ -678,8 +667,7 @@ class Dumper:
|
|||||||
self.SourceServerIndexing(file, guid, sourceFileStream, vcs_root)
|
self.SourceServerIndexing(file, guid, sourceFileStream, vcs_root)
|
||||||
# only copy debug the first time if we have multiple architectures
|
# only copy debug the first time if we have multiple architectures
|
||||||
if self.copy_debug and arch_num == 0:
|
if self.copy_debug and arch_num == 0:
|
||||||
self.CopyDebug(file, debug_file, guid,
|
self.CopyDebug(file, debug_file, guid)
|
||||||
code_file, code_id)
|
|
||||||
except StopIteration:
|
except StopIteration:
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
@ -731,50 +719,23 @@ class Dumper_Win32(Dumper):
|
|||||||
self.fixedFilenameCaseCache[file] = result
|
self.fixedFilenameCaseCache[file] = result
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def CopyDebug(self, file, debug_file, guid, code_file, code_id):
|
def CopyDebug(self, file, debug_file, guid):
|
||||||
def compress(path):
|
|
||||||
compressed_file = path[:-1] + '_'
|
|
||||||
# ignore makecab's output
|
|
||||||
success = subprocess.call(["makecab.exe", "/D",
|
|
||||||
"CompressionType=LZX", "/D",
|
|
||||||
"CompressionMemory=21",
|
|
||||||
path, compressed_file],
|
|
||||||
stdout=open("NUL:","w"),
|
|
||||||
stderr=subprocess.STDOUT)
|
|
||||||
if success == 0 and os.path.exists(compressed_file):
|
|
||||||
os.unlink(path)
|
|
||||||
return True
|
|
||||||
return False
|
|
||||||
|
|
||||||
rel_path = os.path.join(debug_file,
|
rel_path = os.path.join(debug_file,
|
||||||
guid,
|
guid,
|
||||||
debug_file).replace("\\", "/")
|
debug_file).replace("\\", "/")
|
||||||
full_path = os.path.normpath(os.path.join(self.symbol_path,
|
full_path = os.path.normpath(os.path.join(self.symbol_path,
|
||||||
rel_path))
|
rel_path))
|
||||||
shutil.copyfile(file, full_path)
|
shutil.copyfile(file, full_path)
|
||||||
if compress(full_path):
|
# try compressing it
|
||||||
self.output(sys.stdout, rel_path[:-1] + '_')
|
compressed_file = os.path.splitext(full_path)[0] + ".pd_"
|
||||||
else:
|
# ignore makecab's output
|
||||||
self.output(sys.stdout, rel_path)
|
success = subprocess.call(["makecab.exe", "/D", "CompressionType=LZX", "/D",
|
||||||
|
"CompressionMemory=21",
|
||||||
# Copy the binary file as well
|
full_path, compressed_file],
|
||||||
if code_file and code_id:
|
stdout=open("NUL:","w"), stderr=subprocess.STDOUT)
|
||||||
full_code_path = os.path.join(os.path.dirname(file),
|
if success == 0 and os.path.exists(compressed_file):
|
||||||
code_file)
|
os.unlink(full_path)
|
||||||
if os.path.exists(full_code_path):
|
self.output(sys.stdout, os.path.splitext(rel_path)[0] + ".pd_")
|
||||||
rel_path = os.path.join(code_file,
|
|
||||||
code_id,
|
|
||||||
code_file).replace("\\", "/")
|
|
||||||
full_path = os.path.normpath(os.path.join(self.symbol_path,
|
|
||||||
rel_path))
|
|
||||||
try:
|
|
||||||
os.makedirs(os.path.dirname(full_path))
|
|
||||||
except OSError as e:
|
|
||||||
if e.errno != errno.EEXIST:
|
|
||||||
raise
|
|
||||||
shutil.copyfile(full_code_path, full_path)
|
|
||||||
if compress(full_path):
|
|
||||||
self.output(sys.stdout, rel_path[:-1] + '_')
|
|
||||||
else:
|
else:
|
||||||
self.output(sys.stdout, rel_path)
|
self.output(sys.stdout, rel_path)
|
||||||
|
|
||||||
@ -808,7 +769,7 @@ class Dumper_Linux(Dumper):
|
|||||||
return self.RunFileCommand(file).startswith("ELF")
|
return self.RunFileCommand(file).startswith("ELF")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def CopyDebug(self, file, debug_file, guid, code_file, code_id):
|
def CopyDebug(self, file, debug_file, guid):
|
||||||
# We want to strip out the debug info, and add a
|
# We want to strip out the debug info, and add a
|
||||||
# .gnu_debuglink section to the object, so the debugger can
|
# .gnu_debuglink section to the object, so the debugger can
|
||||||
# actually load our debug info later.
|
# actually load our debug info later.
|
||||||
@ -919,7 +880,7 @@ class Dumper_Mac(Dumper):
|
|||||||
result['files'] = (dsymbundle, file)
|
result['files'] = (dsymbundle, file)
|
||||||
return result
|
return result
|
||||||
|
|
||||||
def CopyDebug(self, file, debug_file, guid, code_file, code_id):
|
def CopyDebug(self, file, debug_file, guid):
|
||||||
"""ProcessFiles has already produced a dSYM bundle, so we should just
|
"""ProcessFiles has already produced a dSYM bundle, so we should just
|
||||||
copy that to the destination directory. However, we'll package it
|
copy that to the destination directory. However, we'll package it
|
||||||
into a .tar.bz2 because the debug symbols are pretty huge, and
|
into a .tar.bz2 because the debug symbols are pretty huge, and
|
||||||
|
Loading…
Reference in New Issue
Block a user