Betterbird is a fork of Mozilla Thunderbird. Here are the patches that provide all the goodness. Visit www.betterbird.eu for details.
These instruction assume that you know how to build Thunderbird. The following instructions are specific to Betterbird.
NN
stands for the version you want to build. Currently 115
and 128
are supported.
The build process is automated for Windows, Linux and Mac via a build script. The development environment needs to be set up depending on the platform.
Linux x86-64 users follow the following instructions.
To build successfully on Linux, you need at least 16 GB of memory or swap space.
We executed the steps successfully on a Ubuntu 20.04 cloud server (Hetzner CPX41, 8 CPUs, 16 GB RAM, 240 GB disk).
Building for aarch64 (aka arm64) is also supported. You need to run the build on a aarch64 machine (which you can hire at Amazon EC2).
Sadly ./mach bootstrap
doesn't work on Linux/aarch64, so please read here.
This follows the first part of the Firefox build instructions copied below:
- Prepare to install necessary dependencies:
sudo apt update
- Install some packages:
sudo apt-get install git python3 python3-dev python3-pip
- More packages:
sudo aptitude install libdbusmenu-gtk3-dev
- Install Mercurial:
sudo apt-get install mercurial
if the Mercurial in your distribution is new enough (as it should be for Ubuntu 20.04). Otherwise use the following two steps. - Install Mercurial:
echo "export PATH=\"$(python3 -m site --user-base)/bin:$PATH\"" >> ~/.bashrc
andpython3 -m pip install --user mercurial
- In a new shell:
hg version
- Install Rust:
curl https://sh.rustup.rs -sSf | sh
and select option 1 $HOME/.cargo/bin/rustup override set 1.XX.0
, seeNN/NN.sh
for the required version- Prepare a directory for all the action, let's say:
mkdir build && cd build
- Copy the goodness from this repository:
git clone https://github.com/Betterbird/thunderbird-patches.git
- Copy the build script to your build directory:
cp thunderbird-patches/build/build.sh .
- Issue this command:
./build.sh NN
Voilà. ✔️ For subsequent builds you only need to repeat the last step ./build.sh NN
.
Please note that the Ansible-betterbird build has been replaced and is no longer supported.
Mac users follow these instructions: You need to install Xcode from the Apple App Store or developer.apple.com/download/ (which requires an Apple ID). Note the dependency of Xcode version and macOS version (details here). On our latest development machine we're using macOS 12.6.6 (Monterey) with Xcode 13.4.1. Then follow the first part of the Firefox build instructions copied below, the Thunderbird documentation is incomplete:
- Install Homebrew:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
- Xcode modifications:
sudo xcode-select --switch /Applications/Xcode.app
andsudo xcodebuild -license
- Install Mercurial:
echo 'export PATH="'"$(python3 -m site --user-base)"'/bin:$PATH"' >> ~/.zshenv
andpython3 -m pip install --user mercurial==6.1.4
- In a new shell:
hg version
- Install Rust:
brew install rustup
- In a new shell:
rustup-init
andrustup override set 1.XX.0
, seeNN/NN.sh
for the required version - Install wget:
brew install wget
- Prepare a directory for all the action, let's say:
mkdir build && cd build
- Copy the goodness from this repository:
git clone https://github.com/Betterbird/thunderbird-patches.git
- Copy the build script to your build directory:
cp thunderbird-patches/build/build.sh .
- Issue this command:
./build.sh NN
Voilà. ✔️ For subsequent builds you only need to repeat the last step ./build.sh NN
.
Windows user should follow the "System Preparation" from the Firefox build instructions
(also reflected here).
In a shell stated with start-shell.bat
then execute:
- Prepare a directory for all the action, let's say:
mkdir build && cd build
- Copy the goodness from this repository:
git clone https://github.com/Betterbird/thunderbird-patches.git
- Copy the build script to your build directory:
cp thunderbird-patches/build/build.sh .
- Issue this command:
./build.sh NN
Voilà. ✔️ For subsequent builds you only need to repeat the last step ./build.sh NN
.
build.sh
automates the following:
- Pull
mozilla-esrNN
andcomm-esrNN
. (Thecomm-esrNN
repo goes into themozilla-esrNN/comm/
subdirectory.) - Update to the versions noted in
NN/NN.sh
:hg up -r <rev>
. The patches apply to exactly those revisions. - Put
NN/series-M-C
intomozilla-esrNN/.hg/patches
; renameseries-M-C
toseries
. - Put
NN/series
intomozilla-esrNN/comm/.hg/patches
. - Put all patches from
NN/branding
,NN/bugs
,NN/features
,NN/misc
intomozilla-esrNN/comm/.hg/patches
, then move the ones ending in*-m-c.patch
intomozilla-esrNN/.hg/patches
. - Fetch "quick-track" patches (see below).
- Apply the patches using
hg qpush -a
. This would fail if step 3 or 7 were omitted. - Copy
mozconfig
into themozilla-esrNN
directory. - Build normally using
./mach build
. - Build an installer using
./mach package
.
Voilà. ✔️
Note that our builds sometimes include patches taken from bugzilla.mozilla.org when we quick-track fixes.
We don't store those patches here. Those patches will have a comment in the series file pointing to the original changeset. build.sh
(w)gets these patches. Note that hg qimport
can't be used since it adds the patch to the series file where it is already present.
Linux users please note that 08-branding-m-c.patch
patches a Windows installer script making use of Windows PowerShell.
However, that part of the build system should not be triggered for Linux builds.
Windows users please note that packaging will fail without an appropriate code signing certificate installed.
The standard build script build.sh
initially pulls two Mozilla repositories. This is fine if you want to repeat the
build later. For so-called one-off builds we have a script build-one-off.sh
which works off the published tarball for
the corresponding Thunderbird release. This downloads a lot less data and is hence faster during the code preparation stage.
Read www.betterbird.eu/support/. Here is an abridged version:
- Thunderbird has 14.000+ bugs which won't be fixed as part of Betterbird.
- First step: Check whether the bug exists in Thunderbird. If so, check whether it has been reported at Bugzilla. If reported, please let us know the bug number. If not reported, either you or our project will need to report it (see following item).
- If the bug is also in Thunderbird, let us know that it's important to you, please provide reasons why Betterbird should fix it and not upstream Thunderbird. We'll check whether we deem it "must have" enough to fix it considering the necessary effort.
- If the bug is only in Betterbird, let us know, we'll endeavour to fix it asap, usually within days.
- Common sense bug reporting rules apply: Bug needs to be reproducible, user needs to cooperate in debugging.
Translation strings are found here.