SeaMonkey:hg-based build: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(one more patch needed)
m (→‎building with Lightning calendar: add note about seamonkey lightning...)
 
(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
The work for building SeaMonkey and Thunderbird with mozilla-central has originally been based on the [[SeaMonkey/1.9.1_Repository_Options]], and then refined following [[MailNews:HgMeetingNotes]] to use it own testing repository.
The work for building SeaMonkey and Thunderbird with mozilla-central has originally been based on the [[SeaMonkey/1.9.1_Repository_Options]], and then refined following [[MailNews:HgMeetingNotes]] to use it own testing repository.


The new yet-to-be-named Mercurial repository contains SeaMonkey and Thunderbird code for now, calendar will follow at a later date. All of those codebases are imported as static snapshots from CVS, without keeping history, which will be available through cvs and web tools. The shared repository contains its own build system files, which started off as copies of the Mozilla equivalents, with some path adjustments and removals of not needed parts. For now, they call into lots of mozilla files, which can be gradually reduced over time so that in the end SeaMonkey and Thunderbird can build with some sort of a XULRunner SDK.
The new [http://hg.mozilla.org/comm-central/ comm-central] Mercurial repository contains SeaMonkey and Thunderbird code for now, calendar will follow at a later date. All of those codebases are imported as static snapshots from CVS, without keeping history, which will be available through cvs and web tools. The shared repository contains its own build system files, which started off as copies of the Mozilla equivalents, with some path adjustments and removals of not needed parts. For now, they call into lots of mozilla files, which can be gradually reduced over time so that in the end SeaMonkey and Thunderbird can build with some sort of a XULRunner SDK.


The pages about [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_%28Mercurial%29 getting Mozilla code via hg] and [http://developer.mozilla.org/en/docs/Mercurial Mercurial (hg) itself] from Mozilla Developer Center are probably helpful when dealing with the repositories.
The pages about [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_%28Mercurial%29 getting Mozilla code via hg] and [http://developer.mozilla.org/en/docs/Mercurial Mercurial (hg) itself] as well as [http://developer.mozilla.org/en/docs/comm-central comm-central] from Mozilla Developer Center are probably helpful when dealing with the repositories.


=== building SeaMonkey or Thunderbird ===
=== Building SeaMonkey or Thunderbird ===


* pull the [http://hg.mozilla.org/users/kairo_kairo.at/index.cgi/calemaisu-test/ test repository]
* pull comm-central
   hg clone http://hg.mozilla.org/users/kairo_kairo.at/calemaisu-test/ src
   hg clone http://hg.mozilla.org/comm-central/ src
   cd src
   cd src
* update/pull all other needed source via client.py
* update/pull all other needed source via client.py
   python client.py checkout
   python client.py checkout
* check if the patch for {{bug|442484}} has landed, else apply it manually in mozilla/ (note that with hg, all patches need to applied with at least -p1 level in patch!)
* make sure you have autoconf 2.13 installed, see [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_%28Mercurial%29#Autoconf_2.13 the comment about this on MDC]
* check if the supplementary patch for {{bug|440932}} has landed, else apply it manually in mozilla/
* create a mozconfig, using  
* make sure you have autoconfig 2.13 installed, see [http://developer.mozilla.org/en/docs/Mozilla_Source_Code_%28Mercurial%29#Autoconf_2.13 the comment about this on MDC]
** --enable-application=suite (for SeaMonkey)
* create a mozconfig, using the normal --enable-application=suite (for SeaMonkey, mail for Thunderbird)
** --enable-application=mail (for Thunderbird)
* build using client.mk:
* build using client.mk:
   gmake -f client.mk build
   make -f client.mk build


=== building with Lightning calendar ===
=== Building with Lightning (the integrated calendar) ===


This section is OUTDATED and will be replaced with more current information later.
Note! SeaMonkey doesn't work with lightning yet (bug 313822).


* pull from CVS: mozilla/calendar/
In your .mozconfig file: add the following line:
* pull from CVS: mozilla/extensions/lightning/
ac_add_options --enable-calendar
* pull from CVS: mozilla/extensions/webdav/
 
* mozconfig: --enable-extensions=default,lightning
== Common Mistakes ==
* mozilla/calendar/lightning/Makefile.in: include config.mk with the patch for {{bug|440017}}
=== Build error when importing example mozconfig ===
* suite/app-config.mk and mail/app-config.mk: add the following lines at the end of the file:
 
  # needed to install the Lightning extension if it's built
If you get the following build error:
  INSTALL_LIGHTNING = 1
/src/mozilla/configure: /src/mozilla/mail/config/mozconfig: No such file or directory
* mozilla/calendar/lightning/install.rdf: apply the patch for {{bug|440022}} so that the produced Lighting installs well.
 
Open your mozconfig and change the line:  
. $topsrcdir/mail/config/mozconfig
 
To:
ac_add_options --enable-application=mail
 
The original problem happens because when configuring in mozilla/ (mozilla-central) it reads mozilla/ as the topsrcdir and errors out in that it can't find the inclusion you want.
 
As we have other solutions for setting the configuration defaults nowadays, the --enable-application line is the only one we really need out of there.
 
=== cvs checkout error with client.py ===
 
If you get the following error from client.py:
Executing command: ['cvs', '-d', '/usr/local/cvsroot', '-q', 'checkout', '-P', '-r', 'HEAD', '-d', 'calendar', 'mozilla/calendar']
  cvs checkout: cannot find module `mozilla/calendar' - ignored
  Traceback (most recent call last):
  File "client.py", line 149, in <module>
    do_cvs_checkout(CVS_DIRS, CVS_CO_TAG, options.cvsroot, options.cvs, '')
  File "client.py", line 71, in do_cvs_checkout
    cwd=os.path.join(topsrcdir, checkoutdir, parent))
  File "client.py", line 45, in check_call_noisy
    check_call(cmd, *args, **kwargs)
  File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cvs', '-d', '/usr/local/cvsroot', '-q', 'checkout', '-P', '-r', 'HEAD', '-d', 'calendar', 'mozilla/calendar']' returned non-zero exit status 1
 
then it looks like your CVSROOT environment variable is set to '/usr/local/cvsroot', try unsetting it before calling client.py.

Latest revision as of 18:21, 25 August 2008

The work for building SeaMonkey and Thunderbird with mozilla-central has originally been based on the SeaMonkey/1.9.1_Repository_Options, and then refined following MailNews:HgMeetingNotes to use it own testing repository.

The new comm-central Mercurial repository contains SeaMonkey and Thunderbird code for now, calendar will follow at a later date. All of those codebases are imported as static snapshots from CVS, without keeping history, which will be available through cvs and web tools. The shared repository contains its own build system files, which started off as copies of the Mozilla equivalents, with some path adjustments and removals of not needed parts. For now, they call into lots of mozilla files, which can be gradually reduced over time so that in the end SeaMonkey and Thunderbird can build with some sort of a XULRunner SDK.

The pages about getting Mozilla code via hg and Mercurial (hg) itself as well as comm-central from Mozilla Developer Center are probably helpful when dealing with the repositories.

Building SeaMonkey or Thunderbird

  • pull comm-central
 hg clone http://hg.mozilla.org/comm-central/ src
 cd src
  • update/pull all other needed source via client.py
 python client.py checkout
  • make sure you have autoconf 2.13 installed, see the comment about this on MDC
  • create a mozconfig, using
    • --enable-application=suite (for SeaMonkey)
    • --enable-application=mail (for Thunderbird)
  • build using client.mk:
 make -f client.mk build

Building with Lightning (the integrated calendar)

Note! SeaMonkey doesn't work with lightning yet (bug 313822).

In your .mozconfig file: add the following line:

ac_add_options --enable-calendar

Common Mistakes

Build error when importing example mozconfig

If you get the following build error:

/src/mozilla/configure: /src/mozilla/mail/config/mozconfig: No such file or directory

Open your mozconfig and change the line:

. $topsrcdir/mail/config/mozconfig

To:

ac_add_options --enable-application=mail

The original problem happens because when configuring in mozilla/ (mozilla-central) it reads mozilla/ as the topsrcdir and errors out in that it can't find the inclusion you want.

As we have other solutions for setting the configuration defaults nowadays, the --enable-application line is the only one we really need out of there.

cvs checkout error with client.py

If you get the following error from client.py:

Executing command: ['cvs', '-d', '/usr/local/cvsroot', '-q', 'checkout', '-P', '-r', 'HEAD', '-d', 'calendar', 'mozilla/calendar']
cvs checkout: cannot find module `mozilla/calendar' - ignored
Traceback (most recent call last):
  File "client.py", line 149, in <module>
    do_cvs_checkout(CVS_DIRS, CVS_CO_TAG, options.cvsroot, options.cvs, )
  File "client.py", line 71, in do_cvs_checkout
    cwd=os.path.join(topsrcdir, checkoutdir, parent))
  File "client.py", line 45, in check_call_noisy
    check_call(cmd, *args, **kwargs)
  File "/usr/lib/python2.5/subprocess.py", line 462, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cvs', '-d', '/usr/local/cvsroot', '-q', 'checkout', '-P', '-r', 'HEAD', '-d', 'calendar', 'mozilla/calendar']' returned non-zero exit status 1

then it looks like your CVSROOT environment variable is set to '/usr/local/cvsroot', try unsetting it before calling client.py.