Closed Bug 508677 Opened 15 years ago Closed 15 years ago

Remove extension/python from mozilla-central

Categories

(Firefox Build System :: General, defect)

x86
Windows NT
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9.2b1

People

(Reporter: benjamin, Assigned: benjamin)

Details

Attachments

(1 file)

I've been working with Todd Whiteman (new PyXPCOM owner) to get the PyXPCOM code out of mozilla-central and into its own tree.

Today I imported pyxpcom from mozilla-central to the new repository:
http://hg.mozilla.org/pyxpcom/rev/6ffa3a7a6aee

And hooked up the build system by copying over the relevant bits from mozilla-central:
http://hg.mozilla.org/pyxpcom/rev/d17d29dc2184

I've tested this on Linux and it works as far as it could (there's a compile error in dom/ due to new methods on nsIScriptContext which need to be implemented by PyXPCOM). I'd like to remove extensions/pyxpcom from mozilla-central and the related configure machinery for it and make the new repo the official location of PyXPCOM.

Todd can you give module owner approval for this?
How does one configure/build/test PyXPCOM from the hg sources once this changes?

I was thinking I'd perform a usual hg.mozilla checkout and then checkout the pyxpcom module into the "extensions/python" directory, configure/build with the "--enable-extensions=python" flag (which is still handled in the central Mozilla configure.in script)... in which case the additional "pyxpcom/configure.in" and "pyxpcom/aclocal.m4" are used for?
Ah, no, you download or build the XULRunner SDK, and then do

../configure --with-libxul-sdk=/path/to/xulrunner-sdk
Right - seems to work as expected, you have my approval for the changes.

I ran into some build issues with building against the SDK - nothing major - I made some notes below:

It does not work with the SDK (as the include path for mozilla-config.h does not get set correctly), but that can be fixed up later - worked around this by updating the path to mozilla-config.h.

The pyxpcom build still tries to use "nspr-config"... but it seems this is not part of the XulRunner 1.9.2 SDK - this does not seem to cause any problems whilst building - can be fixed later if necessary.

After that things started building as it should, though it ran into linkage errors - requiring me to add "-lnspr4 -lplc4" to the EXTRA_DSO_LDOPTS - can fix this later.

Finally I've gotten to the nsIScriptContext errors you were talking about.
Hrm, if  you're building against a trunk (1.9.2) SDK mozilla-config.h should be in the right place, although I tested against a raw tree (xulrunner/dist) and not a packaged SDK. Feel free to file an SDK packaging bug about both of those issues if necessary.
Attachment #393178 - Flags: review?(ted.mielczarek)
Attachment #393178 - Flags: review?(ted.mielczarek) → review+
http://hg.mozilla.org/mozilla-central/rev/5479f683ebbc
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.2b1
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: