Releasing new builds of ancient Cyrus IMAP versions¶
Contents
Introduction¶
These instructions are specifically for doing releases from branches that do not contain RST-based documentation or infrastructure. This includes 2.3 and 2.4. It might work for even older versions as well.
For contemporary releases, see Releasing Cyrus IMAP
Prerequisites¶
You will need a GPG key that you can use for signing. Ellie doesn't remember off the top of her head how to create one of these, so for now just read the manual like she did. :)
Once you have a GPG key, it's helpful to upload your public key to the MIT key-server
And you need permission to send to the cyrus-announce mailing list.
Release notes and version update¶
Write up the changes, and add them to the top of the
doc/changes.html
file with a suitable new heading. Stick to very basic HTML here.Update the
VERSION = ..
line inMakefile.in
to specify the new version number.Commit these changes to git.
Pre-release testing¶
Ensure your git repository is clean, using something like
git clean -xfd
. Note that this command will destroy any uncommitted work you might have, so make sure your ducks are in line before proceeding.Generate a configure script:
autoreconf -i -s -I cmulocal
Generate everything else:
./configure --enable-maintainer-mode
(you do not need any other options at this stage).Run
make dist
. This will generate a distribution tarball.Test the tarball:
The tarball will be called something like
cyrus-imapd-2.3.19.tar.gz
(this is based on theVERSION = ...
line inMakefile.in
)Visually inspect the contents of the tarball, making sure it looks like it contains everything it needs to:
tar tfz cyrus-imapd-*.tar.gz | less
(substitute version for*
).Extract it:
tar xfz cyrus-imapd-*.tar.gz
Change into the directory:
cd cyrus-imapd-*
Configure it:
./configure [...]
(provide the same arguments you would when building for Cassandane at any other time).Compile it:
make
-- it should build correctly.Run the unit tests if there are any:
make check
-- they should pass.
Note
We don't bother to run make distcheck
on the old branches, because it
almost certainly won't work. We also don't bother to run Cassandane, for
much the same reason. If it builds, that's about as much as we can do.
Cross-pollination of release notes¶
The ancient versions do not contain ReStructured Text documentation. To have the release notes for these versions appear on the cyrusimap.org website, they need to be added to current branches as well.
Change to the current stable branch (at time of writing, this is
cyrus-imapd-3.0
).Create a new release notes document at the appropriate location under
docsrc/imap/download/release-notes/
.Add the release notes you wrote earlier, this time using RST format rather than simple HTML.
Test, commit, push, and they will be online at the next hour.
Also cherry-pick this commit to the
master
branch.
Building the release¶
Ensure your repository is clean again:
git clean -xfd
Create a signed, annotated tag for the new version:
git tag -s cyrus-imapd-<version>
You will be prompted to enter a commit message for the tag. I use the following, just because it's what the old instructions said:
We are pleased to announce the release of Cyrus IMAP version <version>. This release contains features and fixes you can find on the following pages: [paste link to the release notes for this version here]
You will also be prompted to enter the pass phrase for your GPG key, do it.
Generate a configure script:
autoreconf -i -s -I cmulocal
Generate everything else:
./configure --enable-maintainer-mode
Create the distribution tarball:
make dist
If anything goes wrong up to here, delete the tag, fix the issue, and start again from scratch.
Sign the distribution tarball:
gpg --sign -b cyrus-imapd-<version>.tar.gz
Ellie also likes to copy the tarball and signature file somewhere safe, just in case something happens between now and uploading.
Push the tag upstream:
git push ci cyrus-imapd-<version>
(assuming your remote is named "ci").
Finishing up¶
Now follow the remaining steps from Releasing Cyrus IMAP