mozilla

Revision 121871 of Building PyXPCOM

  • Revision slug: Building_PyXPCOM
  • Revision title: Building PyXPCOM
  • Revision id: 121871
  • Created:
  • Creator: Ronan
  • Is current revision? No
  • Comment

Revision Content

These commands seem to work well on gentoo:

First you should have a python compiled with --enable-shared option. You could modify the official ebuild like that :

cp /usr/portage/dev-lang/python/python-2.4.2.ebuild /usr/local/portage/dev-lang/python/python-2.4.2-r1.ebuild
cp /usr/portage/dev-lang/python/files/python-2.4* /usr/local/portage/dev-lang/python/files/
nano /usr/local/portage/dev-lang/python/python-2.4.2-r1.ebuild

line 145 add a new line and edit :
myconf = "${myconf} --enable-shared "

Hit (CRTl+O then CTRL+X)

ebuild /usr/local/portage/dev-lang/python/python-2.4.2-r1.ebuild digest
emerge python 

Then you can compile the mozilla cvs :

cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r DOM_AGNOSTIC2_BRANCH mozilla/client.mk
cd mozilla
make -f client.mk checkout MOZ_CO_PROJECT=suite
cat > .mozconfig
mk_add_options MOZ_CO_PROJECT=suite
ac_add_options --enable-application=suite
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft
ac_add_options --enable-extensions=python/xpcom,python/dom,default
ac_add_options --disable-optimize
ac_add_options --enable-debug
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/suite-debug

Hit (Ctrl+D)

make -f client.mk build

Once done, to test your pyxpcom install do this:

cd suite-debug/dist/bin
./run-mozilla.sh ./seamonkey -chrome chrome://pyxultest/content

Revision Source

<p>These commands seem to work well on gentoo:
</p><p>First you should have a python compiled with --enable-shared option.
You could modify the official ebuild like that :
</p>
<pre>cp /usr/portage/dev-lang/python/python-2.4.2.ebuild /usr/local/portage/dev-lang/python/python-2.4.2-r1.ebuild
cp /usr/portage/dev-lang/python/files/python-2.4* /usr/local/portage/dev-lang/python/files/
nano /usr/local/portage/dev-lang/python/python-2.4.2-r1.ebuild

line 145 add a new line and edit :
myconf = "${myconf} --enable-shared "

</pre>
<p>Hit (CRTl+O then CTRL+X)
</p>
<pre>ebuild /usr/local/portage/dev-lang/python/python-2.4.2-r1.ebuild digest
emerge python 

</pre>
<p>Then you can compile the mozilla cvs :
</p>
<pre>cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot co -r DOM_AGNOSTIC2_BRANCH mozilla/client.mk
cd mozilla
make -f client.mk checkout MOZ_CO_PROJECT=suite
cat &gt; .mozconfig
mk_add_options MOZ_CO_PROJECT=suite
ac_add_options --enable-application=suite
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft
ac_add_options --enable-extensions=python/xpcom,python/dom,default
ac_add_options --disable-optimize
ac_add_options --enable-debug
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/suite-debug
</pre>
<p>Hit (Ctrl+D)
</p>
<pre>make -f client.mk build
</pre>
<p>Once done, to test your pyxpcom install do this:
</p>
<pre>cd suite-debug/dist/bin
./run-mozilla.sh ./seamonkey -chrome chrome://pyxultest/content
</pre>
Revert to this revision