I finally found the patch file to once and for all resolve the build
problem with Firefox 13.
diff -Naur mozilla-release.orig/config/
rules.mk mozilla-release/config/
rules.mk
--- mozilla-release.orig/config/
rules.mk 2012-06-01 14:03:50.000000000
+0200
+++ mozilla-release/config/
rules.mk 2012-06-06 15:10:27.338999957
+0200
@@ -1479,7 +1479,7 @@
$(PYTHON_PATH) \
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
- $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
+ $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp
-o $@
@if test -n "$(findstring $*.h, $(EXPORTS))"; \
then echo "*** WARNING: file $*.h generated from $*.idl overrides $
(srcdir)/$*.h"; else true; fi
@@ -1492,7 +1492,7 @@
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
-I$(topsrcdir)/xpcom/typelib/xpt/tools \
- $(topsrcdir)/xpcom/idl-parser/typelib.py --cachedir=$(DEPTH)/xpcom/
idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
+ $(topsrcdir)/xpcom/idl-parser/typelib.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp
-o $@
# no need to link together if XPIDLSRCS contains only XPIDL_MODULE
ifneq ($(XPIDL_MODULE).idl,$(strip $(XPIDLSRCS)))
diff -Naur mozilla-release.orig/js/src/config/
rules.mk mozilla-release/
js/src/config/
rules.mk
--- mozilla-release.orig/js/src/config/
rules.mk 2012-06-01
14:04:02.000000000 +0200
+++ mozilla-release/js/src/config/
rules.mk 2012-06-06
15:10:27.611999997 +0200
@@ -1479,7 +1479,7 @@
$(PYTHON_PATH) \
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
- $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
+ $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp
-o $@
@if test -n "$(findstring $*.h, $(EXPORTS))"; \
then echo "*** WARNING: file $*.h generated from $*.idl overrides $
(srcdir)/$*.h"; else true; fi
@@ -1492,7 +1492,7 @@
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
-I$(topsrcdir)/xpcom/typelib/xpt/tools \
- $(topsrcdir)/xpcom/idl-parser/typelib.py --cachedir=$(DEPTH)/xpcom/
idl-parser $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp -o $@
+ $(topsrcdir)/xpcom/idl-parser/typelib.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache $(XPIDL_FLAGS) $(_VPATH_SRCS) -d $(MDDEPDIR)/$(@F).pp
-o $@
# no need to link together if XPIDLSRCS contains only XPIDL_MODULE
ifneq ($(XPIDL_MODULE).idl,$(strip $(XPIDLSRCS)))
diff -Naur mozilla-release.orig/js/xpconnect/src/Makefile.in mozilla-
release/js/xpconnect/src/Makefile.in
--- mozilla-release.orig/js/xpconnect/src/Makefile.in 2012-06-01
14:04:05.000000000 +0200
+++ mozilla-release/js/xpconnect/src/Makefile.in 2012-06-06
15:10:52.296002158 +0200
@@ -151,7 +151,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/qsgen.py \
--idlpath=$(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output dom_quickstubs.h \
--stub-output dom_quickstubs.cpp \
--makedepend-output $(MDDEPDIR)/dom_qsgen.pp \
@@ -172,7 +172,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/dombindingsgen.py \
--idlpath=$(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output dombindings_gen.h \
$(srcdir)/dombindings.conf
@@ -189,7 +189,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/dombindingsgen.py \
--idlpath=$(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--stub-output dombindings_gen.cpp \
--makedepend-output $(MDDEPDIR)/dombindingsgen.pp \
$(srcdir)/dombindings.conf
@@ -208,7 +208,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/dictionary_helper_gen.py \
-I $(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output DictionaryHelpers.h \
$(srcdir)/dictionary_helper_gen.conf
@@ -223,7 +223,7 @@
-I$(topsrcdir)/xpcom/idl-parser \
$(srcdir)/dictionary_helper_gen.py \
-I $(DEPTH)/dist/idl \
- --cachedir=$(DEPTH)/xpcom/idl-parser \
+ --cachedir=$(DEPTH)/xpcom/idl-parser/cache \
--header-output DictionaryHelpers.h \
--stub-output DictionaryHelpers.cpp \
--makedepend-output $(MDDEPDIR)/dictionary_helper_gen.pp \
diff -Naur mozilla-release.orig/xpcom/idl-parser/Makefile.in mozilla-
release/xpcom/idl-parser/Makefile.in
--- mozilla-release.orig/xpcom/idl-parser/Makefile.in 2012-06-01
14:04:22.000000000 +0200
+++ mozilla-release/xpcom/idl-parser/Makefile.in 2012-06-06
15:10:27.949000148 +0200
@@ -61,7 +61,7 @@
$(PYTHON_PATH) \
-I$(topsrcdir)/other-licenses/ply \
-I$(topsrcdir)/xpcom/idl-parser \
- $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=. --regen
+ $(topsrcdir)/xpcom/idl-parser/header.py --cachedir=$(DEPTH)/xpcom/
idl-parser/cache --regen
check::
$(PYTHON_PATH) \
diff -Naur mozilla-release.orig/xpcom/typelib/xpidl/Makefile.in
mozilla-release/xpcom/typelib/xpidl/Makefile.in
--- mozilla-release.orig/xpcom/typelib/xpidl/Makefile.in 2012-06-01
14:04:22.000000000 +0200
+++ mozilla-release/xpcom/typelib/xpidl/Makefile.in 2012-06-06
15:10:27.976000009 +0200
@@ -48,8 +48,8 @@
$(topsrcdir)/xpcom/idl-parser/xpidl.py \
$(topsrcdir)/xpcom/idl-parser/header.py \
$(topsrcdir)/xpcom/idl-parser/typelib.py \
- $(DEPTH)/xpcom/idl-parser/xpidllex.py \
- $(DEPTH)/xpcom/idl-parser/xpidlyacc.py \
+ $(DEPTH)/xpcom/idl-parser/cache/xpidllex.py \
+ $(DEPTH)/xpcom/idl-parser/cache/xpidlyacc.py \
$(NULL)
ifndef MOZ_SYSTEM_PLY