From 54bec5f2232ecde557fe239932fe834a5788970f Mon Sep 17 00:00:00 2001 From: Phil Ringnalda Date: Wed, 11 Feb 2015 22:12:49 -0800 Subject: [PATCH] Back out f543e83304e9 (bug 1123990) for nightly build bustage CLOSED TREE --- build/moz-automation.mk | 4 ---- toolkit/mozapps/installer/make-eme.mk | 7 +++---- toolkit/mozapps/installer/packager.mk | 3 +-- toolkit/mozapps/installer/packager.py | 3 +++ toolkit/mozapps/installer/upload-files.mk | 6 ++---- 5 files changed, 9 insertions(+), 14 deletions(-) diff --git a/build/moz-automation.mk b/build/moz-automation.mk index 50630efd4c4..3b373dafcd2 100644 --- a/build/moz-automation.mk +++ b/build/moz-automation.mk @@ -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 diff --git a/toolkit/mozapps/installer/make-eme.mk b/toolkit/mozapps/installer/make-eme.mk index aa113e8064e..d3b67a4f0c3 100644 --- a/toolkit/mozapps/installer/make-eme.mk +++ b/toolkit/mozapps/installer/make-eme.mk @@ -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 diff --git a/toolkit/mozapps/installer/packager.mk b/toolkit/mozapps/installer/packager.mk index ba79ce2e995..174a03ec045 100644 --- a/toolkit/mozapps/installer/packager.mk +++ b/toolkit/mozapps/installer/packager.mk @@ -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. diff --git a/toolkit/mozapps/installer/packager.py b/toolkit/mozapps/installer/packager.py index fb6356a6797..212be55181f 100644 --- a/toolkit/mozapps/installer/packager.py +++ b/toolkit/mozapps/installer/packager.py @@ -27,6 +27,7 @@ from mozpack.unify import UnifiedBuildFinder import mozpack.path import buildconfig from argparse import ArgumentParser +from createprecomplete import generate_precomplete import os from StringIO import StringIO import subprocess @@ -393,6 +394,8 @@ def main(): args.source, gre_path, base) copier.copy(args.destination) + generate_precomplete(os.path.normpath(os.path.join(args.destination, + respath))) if __name__ == '__main__': diff --git a/toolkit/mozapps/installer/upload-files.mk b/toolkit/mozapps/installer/upload-files.mk index c16d82c4078..db32472d8d4 100644 --- a/toolkit/mozapps/installer/upload-files.mk +++ b/toolkit/mozapps/installer/upload-files.mk @@ -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 = (cd $(STAGEPATH)$(MOZ_PKG_DIR)$(_BINPATH) && $(CREATE_PRECOMPLETE_CMD)) && $(INNER_MAKE_PACKAGE) +MAKE_PACKAGE = $(INNER_MAKE_PACKAGE) endif ifdef MOZ_SIGN_PACKAGE_CMD