Closed Bug 879809 Opened 11 years ago Closed 11 years ago

MOZBUILD_BACKEND_CHECKED should be unset when processing external directories

Categories

(Firefox Build System :: General, defect)

defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED
mozilla24

People

(Reporter: RyanVM, Assigned: gps)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

It appears config.status didn't run for js/src despite a moz.build file changing. Most interesting.
The problem is that MOZBUILD_BACKEND_CHECKED (a global flag used to determine whether moz.build rebuild scan and possibly rebuild has been performed) is defined by the root Makefile and exported to the environment under which js/src executes. js/src should get a "fresh" environment not polluted with this variable.
Assignee: nobody → gps
Status: NEW → ASSIGNED
Summary: Bug 875929 required a clobber → MOZBUILD_BACKEND_CHECKED should be unset when processing external directories
This should do it. I wish this could be done with make syntax instead of shell. However, SUBMAKE gets $(call)ed inside a recipe and thus its output is evaluated as shell commands, not make. It's ugly.
Attachment #761737 - Flags: review?(ted)
Comment on attachment 761737 [details] [diff] [review] Don't export MOZBUILD_BACKEND_CHECKED to independent build systems Review of attachment 761737 [details] [diff] [review]: ----------------------------------------------------------------- ::: config/rules.mk @@ +428,3 @@ > +@$(UPDATE_TITLE) > ++@if test -n "$(3)"; then \ > + MOZBUILD_BACKEND_CHECKED= $(MAKE) $(if $(2),-C $(2)) $(1); \ So, you could write this as another make $(if), right? +$(if $(3) MOZBUILD_BACKEND_CHECKED= ) $(MAKE) $(if $(2),-C $(2)) $(1)
Comment on attachment 761737 [details] [diff] [review] Don't export MOZBUILD_BACKEND_CHECKED to independent build systems Review of attachment 761737 [details] [diff] [review]: ----------------------------------------------------------------- Clearing review till you consider my proposal.
Attachment #761737 - Flags: review?(ted)
Switched to inline $(if) (I keep forgetting this exists).
Attachment #761737 - Attachment is obsolete: true
This needs to be fixed immediately.
Severity: major → blocker
Comment on attachment 763691 [details] [diff] [review] Don't export MOZBUILD_BACKEND_CHECKED to independent build systems Review of attachment 763691 [details] [diff] [review]: ----------------------------------------------------------------- r=me if this doesn't break pymake.
Attachment #763691 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Blocks: clobber
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: