fix symbolstore.py for linux3
authorWolfgang Rosenauer <wr@rosenauer.org>
Sat, 23 Jul 2011 15:16:24 +0200
changeset 293 3fd4e37e5e52
parent 292 058eaa15d5d8
child 294 5330447b83a3
child 295 64d05874b6f2
fix symbolstore.py for linux3
MozillaFirefox/MozillaFirefox.changes
MozillaFirefox/MozillaFirefox.spec
MozillaFirefox/mozilla-linux3.patch
mozilla-linux3.patch
series
--- a/MozillaFirefox/MozillaFirefox.changes	Fri Jul 22 15:35:27 2011 +0200
+++ b/MozillaFirefox/MozillaFirefox.changes	Sat Jul 23 15:16:24 2011 +0200
@@ -8,6 +8,7 @@
     - mozilla-ppc-ipc.patch
     - firefox-linkorder.patch
     - firefox-no-sync-l10n.patch
+- recognize linux3 as platform for symbolstore.py
 
 -------------------------------------------------------------------
 Fri Jul  1 19:53:18 CEST 2011 - vuntz@opensuse.org
--- a/MozillaFirefox/MozillaFirefox.spec	Fri Jul 22 15:35:27 2011 +0200
+++ b/MozillaFirefox/MozillaFirefox.spec	Sat Jul 23 15:16:24 2011 +0200
@@ -73,6 +73,7 @@
 Patch12:        mozilla-repo.patch
 Patch13:        mozilla-dump_syms-static.patch
 Patch14:        mozilla-sle11.patch
+Patch15:        mozilla-linux3.patch
 # Firefox/browser
 Patch31:        firefox-browser-css.patch
 Patch32:        firefox-cross-desktop.patch
@@ -203,6 +204,7 @@
 %if %suse_version < 1120
 %patch14 -p1
 %endif
+%patch15 -p1
 #
 %patch31 -p1
 %patch32 -p1
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MozillaFirefox/mozilla-linux3.patch	Sat Jul 23 15:16:24 2011 +0200
@@ -0,0 +1,1 @@
+../mozilla-linux3.patch
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mozilla-linux3.patch	Sat Jul 23 15:16:24 2011 +0200
@@ -0,0 +1,23 @@
+# HG changeset patch
+# Parent bf7c3e1c6174630743f9f94808c4dd3a2edc0c6b
+diff --git a/toolkit/crashreporter/tools/symbolstore.py b/toolkit/crashreporter/tools/symbolstore.py
+--- a/toolkit/crashreporter/tools/symbolstore.py
++++ b/toolkit/crashreporter/tools/symbolstore.py
+@@ -376,16 +376,17 @@ def GetVCSFilename(file, srcdirs):
+     return (file.replace("\\", "/"), root)
+ 
+ def GetPlatformSpecificDumper(**kwargs):
+     """This function simply returns a instance of a subclass of Dumper
+     that is appropriate for the current platform."""
+     return {'win32': Dumper_Win32,
+             'cygwin': Dumper_Win32,
+             'linux2': Dumper_Linux,
++	    'linux3': Dumper_Linux,
+             'sunos5': Dumper_Solaris,
+             'darwin': Dumper_Mac}[sys.platform](**kwargs)
+ 
+ def SourceIndex(fileStream, outputPath, vcs_root):
+     """Takes a list of files, writes info to a data block in a .stream file"""
+     # Creates a .pdb.stream file in the mozilla\objdir to be used for source indexing
+     # Create the srcsrv data block that indexes the pdb file
+     result = True
--- a/series	Fri Jul 22 15:35:27 2011 +0200
+++ b/series	Sat Jul 23 15:16:24 2011 +0200
@@ -16,6 +16,7 @@
 mozilla-repo.patch
 mozilla-dump_syms-static.patch
 mozilla-sle11.patch
+mozilla-linux3.patch
 
 # Firefox patches
 firefox-browser-css.patch