Skip to content

Commit

Permalink
Backed out changeset 2742651b0cd9 (bug 1123990) for suspicion that th…
Browse files Browse the repository at this point in the history
…is broke the nightly builds a=sheriffduty
  • Loading branch information
BavarianTomcat committed Feb 3, 2015
1 parent 8eecfbd commit 0f2c364
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 14 deletions.
4 changes: 0 additions & 4 deletions build/moz-automation.mk
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,6 @@ automation/upload: automation/update-packaging
# binaries/libs, and that's what we package/test.
automation/pretty-package: automation/buildsymbols

# The installer and packager both run stage-package, and may conflict
# with each other.
automation/installer: automation/package

# The 'pretty' versions of targets run before the regular ones to avoid
# conflicts in writing to the same files.
automation/installer: automation/pretty-installer
Expand Down
7 changes: 3 additions & 4 deletions toolkit/mozapps/installer/make-eme.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ include $(MOZILLA_DIR)/toolkit/mozapps/installer/signing.mk

ifdef MOZ_SIGN_CMD
ifeq ($(OS_ARCH),WINNT)
# The argument to this macro is the directory where plugin-container.exe
# exists, and where voucher.bin will be generated.
MAKE_SIGN_EME_VOUCHER = $(PYTHON) $(MOZILLA_DIR)/python/eme/gen-eme-voucher.py -input $(1)/plugin-container.exe -output $(1)/voucher.bin && \
$(MOZ_SIGN_CMD) -f emevoucher "$(1)/voucher.bin"
# Note: CWD is DIST
MAKE_SIGN_EME_VOUCHER := $(PYTHON) $(MOZILLA_DIR)/python/eme/gen-eme-voucher.py -input $(STAGEPATH)$(MOZ_PKG_DIR)/plugin-container.exe -output $(STAGEPATH)$(MOZ_PKG_DIR)/voucher.bin && \
$(MOZ_SIGN_CMD) -f emevoucher "$(STAGEPATH)$(MOZ_PKG_DIR)/voucher.bin"
endif
endif
3 changes: 1 addition & 2 deletions toolkit/mozapps/installer/packager.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ endif
@echo 'Staging installer files...'
@$(NSINSTALL) -D $(DEPTH)/installer-stage/core
@cp -av $(DIST)/$(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH)/. $(DEPTH)/installer-stage/core
@(cd $(DEPTH)/installer-stage/core && $(CREATE_PRECOMPLETE_CMD))
ifdef MOZ_SIGN_PREPARED_PACKAGE_CMD
# The && true is necessary to make sure Pymake spins a shell
$(MOZ_SIGN_PREPARED_PACKAGE_CMD) $(DEPTH)/installer-stage && true
endif
$(call MAKE_SIGN_EME_VOUCHER,$(DEPTH)/installer-stage/core)
@(cd $(DEPTH)/installer-stage/core && $(CREATE_PRECOMPLETE_CMD))

# Override the value of OMNIJAR_NAME from config.status with the value
# set earlier in this file.
Expand Down
3 changes: 3 additions & 0 deletions toolkit/mozapps/installer/packager.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import mozpack.path
import buildconfig
from argparse import ArgumentParser
from createprecomplete import generate_precomplete
import os
from StringIO import StringIO
import subprocess
Expand Down Expand Up @@ -393,6 +394,8 @@ def is_native(path):
args.source, gre_path, base)

copier.copy(args.destination)
generate_precomplete(os.path.normpath(os.path.join(args.destination,
respath)))


if __name__ == '__main__':
Expand Down
6 changes: 2 additions & 4 deletions toolkit/mozapps/installer/upload-files.mk
Original file line number Diff line number Diff line change
Expand Up @@ -524,17 +524,15 @@ ifdef MOZ_SIGN_PREPARED_PACKAGE_CMD
ifeq (Darwin, $(OS_ARCH))
MAKE_PACKAGE = cd ./$(PKG_DMG_SOURCE) && $(MOZ_SIGN_PREPARED_PACKAGE_CMD) $(MOZ_MACBUNDLE_NAME) \
&& cd $(PACKAGE_BASE_DIR) \
&& (cd $(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH) && $(CREATE_PRECOMPLETE_CMD)) \
&& $(INNER_MAKE_PACKAGE)
else
MAKE_PACKAGE = $(MOZ_SIGN_PREPARED_PACKAGE_CMD) $(MOZ_PKG_DIR) \
&& $(or $(call MAKE_SIGN_EME_VOUCHER,$(STAGEPATH)$(MOZ_PKG_DIR)),true) \
&& (cd $(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH) && $(CREATE_PRECOMPLETE_CMD)) \
&& $(or $(MAKE_SIGN_EME_VOUCHER),true) \
&& $(INNER_MAKE_PACKAGE)
endif #Darwin

else
MAKE_PACKAGE = $(INNER_MAKE_PACKAGE) && (cd $(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH) && $(CREATE_PRECOMPLETE_CMD))
MAKE_PACKAGE = $(INNER_MAKE_PACKAGE)
endif

ifdef MOZ_SIGN_PACKAGE_CMD
Expand Down

0 comments on commit 0f2c364

Please sign in to comment.