mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 395407 - "Symbol upload and unpack can conflict if builds have the same buildid". r=luser, a=damons.
This commit is contained in:
parent
e8f70c5d03
commit
056ec0b8dc
17
Makefile.in
17
Makefile.in
@ -54,7 +54,7 @@ TIERS += base
|
|||||||
|
|
||||||
#
|
#
|
||||||
# tier "base" - basic setup
|
# tier "base" - basic setup
|
||||||
#
|
#
|
||||||
tier_base_dirs = \
|
tier_base_dirs = \
|
||||||
config \
|
config \
|
||||||
build \
|
build \
|
||||||
@ -64,7 +64,7 @@ include $(topsrcdir)/$(MOZ_BUILD_APP)/build.mk
|
|||||||
|
|
||||||
TIERS += testharness
|
TIERS += testharness
|
||||||
|
|
||||||
# test harnesses
|
# test harnesses
|
||||||
ifdef ENABLE_TESTS
|
ifdef ENABLE_TESTS
|
||||||
tier_testharness_dirs += tools/test-harness
|
tier_testharness_dirs += tools/test-harness
|
||||||
endif
|
endif
|
||||||
@ -74,7 +74,7 @@ DIST_GARBAGE = config.cache config.log config.status config-defs.h \
|
|||||||
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
|
dependencies.beos config/autoconf.mk config/myrules.mk config/myconfig.mk \
|
||||||
unallmakefiles mozilla-config.h \
|
unallmakefiles mozilla-config.h \
|
||||||
gfx/gfx-config.h netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
|
gfx/gfx-config.h netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
|
||||||
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out
|
||||||
|
|
||||||
# Build pseudo-external modules first when export is explicitly called
|
# Build pseudo-external modules first when export is explicitly called
|
||||||
export::
|
export::
|
||||||
@ -163,6 +163,9 @@ ifdef MOZ_SYMBOLS_EXTRA_BUILDID
|
|||||||
EXTRA_BUILDID := -$(MOZ_SYMBOLS_EXTRA_BUILDID)
|
EXTRA_BUILDID := -$(MOZ_SYMBOLS_EXTRA_BUILDID)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
SYMBOL_ARCHIVE_BASENAME := \
|
||||||
|
$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)-$(OS_ARCH)-$(BUILDID)$(EXTRA_BUILDID)
|
||||||
|
|
||||||
buildsymbols:
|
buildsymbols:
|
||||||
ifdef MOZ_CRASHREPORTER
|
ifdef MOZ_CRASHREPORTER
|
||||||
echo building symbol store
|
echo building symbol store
|
||||||
@ -171,18 +174,18 @@ ifdef MOZ_CRASHREPORTER
|
|||||||
$(MAKE_SYM_STORE_ARGS) -s $(topsrcdir) $(DUMP_SYMS_BIN) \
|
$(MAKE_SYM_STORE_ARGS) -s $(topsrcdir) $(DUMP_SYMS_BIN) \
|
||||||
$(DIST)/crashreporter-symbols/$(BUILDID) \
|
$(DIST)/crashreporter-symbols/$(BUILDID) \
|
||||||
$(MAKE_SYM_STORE_PATH) > \
|
$(MAKE_SYM_STORE_PATH) > \
|
||||||
$(DIST)/crashreporter-symbols/$(BUILDID)/$(MOZ_APP_NAME)-$(MOZ_APP_VERSION)-$(OS_ARCH)-$(BUILDID)$(EXTRA_BUILDID)-symbols.txt
|
$(DIST)/crashreporter-symbols/$(BUILDID)/$(SYMBOL_ARCHIVE_BASENAME)-symbols.txt
|
||||||
echo packing symbols
|
echo packing symbols
|
||||||
mkdir -p $(topsrcdir)/../$(BUILDID)
|
mkdir -p $(topsrcdir)/../$(BUILDID)
|
||||||
cd $(DIST)/crashreporter-symbols/$(BUILDID) && \
|
cd $(DIST)/crashreporter-symbols/$(BUILDID) && \
|
||||||
zip -r9D ../crashreporter-symbols-$(BUILDID).zip .
|
zip -r9D ../crashreporter-symbols-$(SYMBOL_ARCHIVE_BASENAME).zip .
|
||||||
mv $(DIST)/crashreporter-symbols/crashreporter-symbols-$(BUILDID).zip \
|
mv $(DIST)/crashreporter-symbols/crashreporter-symbols-$(SYMBOL_ARCHIVE_BASENAME).zip \
|
||||||
$(topsrcdir)/../$(BUILDID)
|
$(topsrcdir)/../$(BUILDID)
|
||||||
endif # MOZ_CRASHREPORTER
|
endif # MOZ_CRASHREPORTER
|
||||||
|
|
||||||
uploadsymbols:
|
uploadsymbols:
|
||||||
ifdef MOZ_CRASHREPORTER
|
ifdef MOZ_CRASHREPORTER
|
||||||
$(topsrcdir)/toolkit/crashreporter/tools/upload_symbols.sh $(topsrcdir)/../$(BUILDID)/crashreporter-symbols-$(BUILDID).zip
|
$(topsrcdir)/toolkit/crashreporter/tools/upload_symbols.sh $(topsrcdir)/../$(BUILDID)/crashreporter-symbols-$(SYMBOL_ARCHIVE_BASENAME).zip
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(OS_ARCH),WINNT)
|
ifeq ($(OS_ARCH),WINNT)
|
||||||
|
Loading…
Reference in New Issue
Block a user