зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 205912, NSS rebuilds too often. Update a timestamp file in the source tree whenever client.mk pulls updates to NSS, and make a second timestamp file dependent on the first that's touched after cleaning NSS. r=seawood, sr=brendan.
This commit is contained in:
Родитель
008456bd1c
Коммит
23a1e5f50a
14
client.mk
14
client.mk
|
@ -481,9 +481,9 @@ real_checkout:
|
|||
cvs_co $(CVSCO_NSPR) && \
|
||||
cvs_co $(CVSCO_NSS) && \
|
||||
cvs_co $(CVSCO_PSM) && \
|
||||
cvs_co $(CVSCO_LDAPCSDK) && \
|
||||
cvs_co $(CVSCO_ACCESSIBLE) && \
|
||||
cvs_co $(CVSCO_IMGLIB2) && \
|
||||
cvs_co $(CVSCO_LDAPCSDK) && \
|
||||
cvs_co $(CVSCO_ACCESSIBLE) && \
|
||||
cvs_co $(CVSCO_IMGLIB2) && \
|
||||
cvs_co $(CVSCO_IPC) && \
|
||||
cvs_co $(CVSCO_CALENDAR) && \
|
||||
$(CHECKOUT_LIBART) && \
|
||||
|
@ -493,6 +493,10 @@ real_checkout:
|
|||
$(CHECKOUT_CODESIGHS) && \
|
||||
cvs_co $(CVSCO_SEAMONKEY)
|
||||
@echo "checkout finish: "`date` | tee -a $(CVSCO_LOGFILE)
|
||||
# update the NSS checkout timestamp
|
||||
@if test `egrep -c '^(U|C) mozilla/security/(nss|coreconf)' $(CVSCO_LOGFILE) 2>/dev/null` != 0; then \
|
||||
touch $(TOPSRCDIR)/security/manager/.nss.checkout; \
|
||||
fi
|
||||
# @: Check the log for conflicts. ;
|
||||
@conflicts=`egrep "^C " $(CVSCO_LOGFILE)` ;\
|
||||
if test "$$conflicts" ; then \
|
||||
|
@ -555,6 +559,10 @@ real_fast-update:
|
|||
$(FASTUPDATE_CODESIGHS) && \
|
||||
fast_update $(CVSCO_SEAMONKEY)
|
||||
@echo "fast_update finish: "`date` | tee -a $(CVSCO_LOGFILE)
|
||||
# update the NSS checkout timestamp
|
||||
@if test `egrep -c '^(U|C) mozilla/security/(nss|coreconf)' $(CVSCO_LOGFILE) 2>/dev/null` != 0; then \
|
||||
touch $(TOPSRCDIR)/security/manager/.nss.checkout \
|
||||
fi
|
||||
# @: Check the log for conflicts. ;
|
||||
@conflicts=`egrep "^C " $(CVSCO_LOGFILE)` ;\
|
||||
if test "$$conflicts" ; then \
|
||||
|
|
|
@ -1 +1,3 @@
|
|||
Makefile
|
||||
.nss.checkout
|
||||
.nss.cleaned
|
||||
|
|
|
@ -92,15 +92,17 @@ SUBMAKEFILES = boot/Makefile ssl/Makefile pki/Makefile
|
|||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
# Attempt to properly handle NSS' refusal to implement a dependency system
|
||||
export::
|
||||
if test ! -f $(topsrcdir)/../cvsco.log || \
|
||||
test `grep -c '^U mozilla/security/nss' $(topsrcdir)/../cvsco.log 2>/dev/null` != 0 -o \
|
||||
`grep -c '^U mozilla/security/coreconf' $(topsrcdir)/../cvsco.log 2>/dev/null` != 0 ; then \
|
||||
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean ; \
|
||||
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS) clean ; \
|
||||
$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS) clean ; \
|
||||
$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean ; \
|
||||
fi
|
||||
export:: .nss.cleaned
|
||||
|
||||
.nss.cleaned: .nss.checkout
|
||||
$(MAKE) -C $(topsrcdir)/security/coreconf $(DEFAULT_GMAKE_FLAGS) clean
|
||||
$(MAKE) -C $(topsrcdir)/security/nss/lib $(DEFAULT_GMAKE_FLAGS) clean
|
||||
$(MAKE) -C $(topsrcdir)/security/nss/cmd/lib $(DEFAULT_GMAKE_FLAGS) clean
|
||||
$(MAKE) -C $(topsrcdir)/security/nss/cmd/shlibsign $(DEFAULT_GMAKE_FLAGS) clean
|
||||
touch $@
|
||||
|
||||
.nss.checkout:
|
||||
touch $(srcdir)/$@
|
||||
|
||||
dependclean export::
|
||||
$(MAKE) -C boot $@
|
||||
|
|
Загрузка…
Ссылка в новой задаче