Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Backed out changesets 206bb159d62f, a6ab3e11f721, and a61aa08ab4ac (b…
Browse files Browse the repository at this point in the history
…ug 837323) for frequent Windows fatal clobber errors on a CLOSED TREE.
  • Loading branch information
rvandermeulen committed Apr 8, 2013
1 parent 0a7b425 commit 5bcb44c
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 437 deletions.
8 changes: 1 addition & 7 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,14 @@ DIST_GARBAGE = config.cache config.log config.status* config-defs.h \
netwerk/necko-config.h xpcom/xpcom-config.h xpcom/xpcom-private.h \
$(topsrcdir)/.mozconfig.mk $(topsrcdir)/.mozconfig.out

default alldep all:: CLOBBER $(topsrcdir)/configure config.status
default alldep all:: $(topsrcdir)/configure config.status
$(RM) -r $(DIST)/sdk
$(RM) -r $(DIST)/include
$(RM) -r $(DIST)/private
$(RM) -r $(DIST)/public
$(RM) $(DIST)/bin/chrome.manifest $(DIST)/bin/components/components.manifest
$(RM) -r _tests

CLOBBER: $(topsrcdir)/CLOBBER
@echo "STOP! The CLOBBER file has changed."
@echo "Please run the build through a sanctioned build wrapper, such as"
@echo "'mach build' or client.mk."
@exit 1

$(topsrcdir)/configure: $(topsrcdir)/configure.in
@echo "STOP! configure.in has changed, and your configure is out of date."
@echo "Please rerun autoconf and re-configure your build directory."
Expand Down
28 changes: 1 addition & 27 deletions client.mk
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,6 @@ endef
# before evaluation.
$(eval $(subst ||,$(CR),$(shell _PYMAKE=$(.PYMAKE) $(TOPSRCDIR)/$(MOZCONFIG_LOADER) $(TOPSRCDIR) 2> $(TOPSRCDIR)/.mozconfig.out | sed 's/$$/||/')))

ifdef NO_AUTOCLOBBER
export NO_AUTOCLOBBER=1
endif

# Automatically add -jN to make flags if not defined. N defaults to number of cores.
ifeq (,$(findstring -j,$(MOZ_MAKE_FLAGS)))
Expand Down Expand Up @@ -305,13 +302,9 @@ else
CONFIGURE = $(TOPSRCDIR)/configure
endif

check-clobber:
$(PYTHON) $(TOPSRCDIR)/python/mozbuild/mozbuild/controller/clobber.py $(TOPSRCDIR) $(OBJDIR)

configure-files: $(CONFIGURES)

configure-preqs = \
check-clobber \
configure-files \
$(call mkdir_deps,$(OBJDIR)) \
$(if $(MOZ_BUILD_PROJECTS),$(call mkdir_deps,$(MOZ_OBJDIR))) \
Expand Down Expand Up @@ -449,23 +442,4 @@ echo-variable-%:
# in parallel.
.NOTPARALLEL:

.PHONY: checkout \
real_checkout \
depend \
realbuild \
build \
profiledbuild \
cleansrcdir \
pull_all \
build_all \
check-clobber \
clobber \
clobber_all \
pull_and_build_all \
everything \
configure \
preflight_all \
preflight \
postflight \
postflight_all \
$(OBJDIR_TARGETS)
.PHONY: checkout real_checkout depend realbuild build profiledbuild cleansrcdir pull_all build_all clobber clobber_all pull_and_build_all everything configure preflight_all preflight postflight postflight_all $(OBJDIR_TARGETS)
24 changes: 24 additions & 0 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,30 @@ then
fi
MOZ_BUILD_ROOT=`pwd`

dnl Do not allow building if a clobber is required
dnl ==============================================================
dnl TODO Make this better, ideally this would clobber automaticially
if test -e $_objdir/CLOBBER; then
if test $_topsrcdir/CLOBBER -nt $_objdir/CLOBBER; then
echo " ***"
echo " * The CLOBBER file has been updated, indicating that an incremental build"
echo " * since your last build will probably not work. A full build is required."
echo " * The change that caused this is:"
cat $_topsrcdir/CLOBBER | sed '/^#/d' | sed 's/^/ * /'
echo " * "
echo " * The easiest way to fix this is to manually delete your objdir:"
echo " * rm -rf $_objdir"
echo " * "
echo " * Or, if you know this clobber doesn't apply to you, it can be ignored with:"
echo " * cp '$_topsrcdir/CLOBBER' $_objdir"
echo " ***"
exit 1
break;
fi
else
touch $_objdir/CLOBBER
fi

MOZ_PYTHON

MOZ_DEFAULT_COMPILER
Expand Down
1 change: 0 additions & 1 deletion python/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ include $(DEPTH)/config/autoconf.mk
test_dirs := \
mozbuild/mozbuild/test \
mozbuild/mozbuild/test/backend \
mozbuild/mozbuild/test/controller \
mozbuild/mozbuild/test/compilation \
mozbuild/mozbuild/test/frontend \
mozbuild/mozpack/test \
Expand Down
Empty file.
194 changes: 0 additions & 194 deletions python/mozbuild/mozbuild/controller/clobber.py

This file was deleted.

Empty file.
Loading

0 comments on commit 5bcb44c

Please sign in to comment.