File mozilla-pyxpcom.patch of Package mozilla-xulrunner191
From: Wolfgang Rosenauer
Subject: Fix PyXPCOM build
Index: config/system-headers
===================================================================
RCS file: /cvsroot/mozilla/config/system-headers,v
retrieving revision 3.40
diff -u -p -6 -r3.40 system-headers
--- config/system-headers 17 Mar 2008 18:02:08 -0000 3.40
+++ config/system-headers 27 Aug 2008 12:08:18 -0000
@@ -571,12 +571,13 @@ proto/dos.h
proto/exec.h
psap.h
Pt.h
pthread.h
pwd.h
Python.h
+marshal.h
QDOffscreen.h
Quickdraw.h
QuickDraw.h
QuickTimeComponents.h
quipu/attr.h
rasdlg.h
Index: extensions/python/dom/test/pyxultest/Makefile.in
===================================================================
RCS file: /cvsroot/mozilla/extensions/python/dom/test/pyxultest/Makefile.in,v
retrieving revision 1.3
diff -u -p -6 -r1.3 Makefile.in
--- extensions/python/dom/test/pyxultest/Makefile.in 19 Jun 2006 23:13:14 -0000 1.3
+++ extensions/python/dom/test/pyxultest/Makefile.in 27 Aug 2008 15:42:08 -0000
@@ -52,11 +52,14 @@ XPI_NAME = pyxultest
# Do I really want these?
#USE_EXTENSION_MANIFEST = 1
#NO_JAR_AUTO_REG = 1
#INSTALL_EXTENSION_ID = pyxultest@mozilla.org
#XPI_PKGNAME = pyxultest-$(MOZ_APP_VERSION)
DIST_FILES = application.ini
+
+GRE_BUILDID = $(shell $(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(LIBXUL_DIST)/bin/platform.ini Build BuildID)
+DEFINES += -DGRE_BUILDID=$(GRE_BUILDID)
endif
PREF_JS_EXPORTS = $(srcdir)/pyxultest-prefs.js
include $(topsrcdir)/config/rules.mk
Index: extensions/python/dom/test/pyxultest/application.ini
===================================================================
RCS file: /cvsroot/mozilla/extensions/python/dom/test/pyxultest/application.ini,v
retrieving revision 1.2
diff -u -p -6 -r1.2 application.ini
--- extensions/python/dom/test/pyxultest/application.ini 29 Apr 2006 01:56:36 -0000 1.2
+++ extensions/python/dom/test/pyxultest/application.ini 27 Aug 2008 15:42:08 -0000
@@ -12,13 +12,13 @@ Name=pyxultest
; This field specifies your application's version. This field is required.
Version=1.0
; This field specifies your application's build ID (timestamp). This field is
; required.
-BuildID=@BUILD_ID@
+BuildID=@GRE_BUILDID@
; This field specifies a compact copyright notice for your application. This
; field is optional.
Copyright=Copyright (c) 2006 Mozilla.org
; This ID is just an example. Every XUL app ought to have it's own unique ID.