2005-08-13 05:00:20 +00:00
|
|
|
Here are the steps to follow to create a new cairo release:
|
2004-04-06 20:13:11 +00:00
|
|
|
|
2008-12-14 11:40:12 +00:00
|
|
|
1) Ensure that there are no local, uncommitted/unpushed
|
2008-03-20 12:18:39 -07:00
|
|
|
modifications. You're probably in a good state if both "git diff
|
|
|
|
|
HEAD" and "git log master..origin/master" give no output.
|
2004-05-11 08:19:47 +00:00
|
|
|
|
2004-10-27 11:59:56 +00:00
|
|
|
2) Verify that the code passes "make distcheck"
|
2004-04-06 20:13:11 +00:00
|
|
|
|
2006-09-06 13:54:12 -04:00
|
|
|
First, make sure you have 'nm' and 'readelf' commands in PATH.
|
2008-12-14 11:40:12 +00:00
|
|
|
this should be OK with any Linux distro.
|
2006-09-06 13:54:12 -04:00
|
|
|
|
2004-04-06 20:13:11 +00:00
|
|
|
Running "make distcheck" should result in no warnings or
|
|
|
|
|
errors and end with a message of the form:
|
|
|
|
|
|
2008-10-06 12:11:18 -04:00
|
|
|
=============================================
|
|
|
|
|
cairo-X.Y.Z archives ready for distribution:
|
|
|
|
|
cairo-X.Y.Z.tar.gz
|
|
|
|
|
=============================================
|
2004-04-06 20:13:11 +00:00
|
|
|
|
|
|
|
|
(But the tar file isn't actually ready yet, as we still have
|
|
|
|
|
some more steps to follow).
|
|
|
|
|
|
2008-10-28 17:18:34 -07:00
|
|
|
Note that it's allowed (and perhaps recommended) to run the
|
|
|
|
|
"make distcheck" step against an all-software X server such as
|
|
|
|
|
Xvfb to avoid getting tripped up by any X-server-driver-specific
|
|
|
|
|
bugs. See test/README for details
|
|
|
|
|
|
2006-09-06 13:54:12 -04:00
|
|
|
If you get errors about local PLT entries, you get the list of
|
2008-08-11 01:41:37 -04:00
|
|
|
cairo entries with the error. For each of these, a call to
|
|
|
|
|
slim_hidden_def and slim_hidden_proto is needed in the cairo
|
|
|
|
|
implementation in the style of other similar calls.
|
2006-09-05 17:12:43 -07:00
|
|
|
|
2008-08-11 15:28:04 -04:00
|
|
|
In the unfortunate case that you have to push a snapshot out
|
|
|
|
|
(note, I said snapshot, not release) without the entire test
|
|
|
|
|
suite passing, here's the magic env vars to set when doing
|
|
|
|
|
'make distcheck' and 'make release-publish' that will let you
|
|
|
|
|
get away with it. At any cost, never ever release without
|
|
|
|
|
(implied) distchecking. Every time we got around it, it turned
|
|
|
|
|
out to be a disaster. Anyway, here's the pass code:
|
|
|
|
|
|
|
|
|
|
DISPLAY= CAIRO_TEST_TARGET=" "
|
|
|
|
|
|
2004-10-27 11:59:56 +00:00
|
|
|
3) Fill out an entry in the NEWS file
|
2004-04-06 20:13:11 +00:00
|
|
|
|
2006-05-03 01:29:24 -07:00
|
|
|
Sift through the logs since the last release. This is most
|
2008-12-14 11:40:12 +00:00
|
|
|
easily done with a command such as:
|
2006-05-03 01:29:24 -07:00
|
|
|
|
2006-08-08 14:30:20 -07:00
|
|
|
git log --stat X.Y.Z..
|
2006-05-03 01:29:24 -07:00
|
|
|
|
|
|
|
|
where X.Y.Z is the previous release version.
|
|
|
|
|
|
|
|
|
|
Summarize major changes briefly in a style similar to other
|
|
|
|
|
entries in NEWS. Take special care to note any additions in
|
|
|
|
|
the API. These should be easy to find by noting modifications
|
|
|
|
|
to .h files in the log command above. And more specifically,
|
|
|
|
|
the following command will show each patch that has changed a
|
|
|
|
|
public header file since the given version:
|
2004-10-27 13:13:39 +00:00
|
|
|
|
2008-09-02 20:20:49 -04:00
|
|
|
find src/ -name '*.h' ! -name '*-private.h' ! -name 'cairoint.h' ! -name 'cairo-*features*.h' | \
|
2008-08-11 01:48:10 -04:00
|
|
|
xargs git diff X.Y.Z.. --
|
2004-04-06 20:13:11 +00:00
|
|
|
|
2008-08-28 18:18:23 -04:00
|
|
|
4) Increment cairo_version_{minor|micro} in cairo-version.h:
|
2004-10-27 11:59:56 +00:00
|
|
|
|
2005-08-10 11:30:45 +00:00
|
|
|
If there are backward-incompatible changes in the API, stop
|
|
|
|
|
now and don't release. Go back and fix the API instead. Cairo
|
|
|
|
|
is intended to remain backwards-compatible as far as API.
|
2005-01-23 12:49:56 +00:00
|
|
|
|
2005-08-10 11:30:45 +00:00
|
|
|
So cairo_version_major will not be incremented unless we come
|
|
|
|
|
up with a new versioning scheme to take advantage of it.
|
2005-01-23 12:49:56 +00:00
|
|
|
|
2006-04-25 08:54:59 -07:00
|
|
|
If there are API additions, then increment cairo_version_minor
|
|
|
|
|
and reset cairo_version_micro to 0. NOTE: The minor version is
|
|
|
|
|
only incremented for releases, not for snapshots.
|
2005-01-23 12:49:56 +00:00
|
|
|
|
2008-12-14 11:40:12 +00:00
|
|
|
Otherwise, (i.e. there are only bug fixes), increment
|
2005-08-10 11:30:45 +00:00
|
|
|
cairo_version_micro to the next larger (even) number.
|
|
|
|
|
|
2008-08-28 18:18:23 -04:00
|
|
|
5) Commit the changes to NEWS and cairo-version.h
|
2004-04-06 20:13:11 +00:00
|
|
|
|
2006-03-15 11:18:40 -05:00
|
|
|
It's especially important to mention the new version number in your
|
|
|
|
|
commit log.
|
2004-04-06 20:13:11 +00:00
|
|
|
|
2004-10-27 11:59:56 +00:00
|
|
|
6) Run "make release-publish" which will perform the following steps
|
|
|
|
|
for you:
|
2004-04-06 20:13:11 +00:00
|
|
|
|
2007-03-03 00:07:03 -05:00
|
|
|
* Generate ChangeLog files out of git repository
|
|
|
|
|
* Check that ChangeLog files were generated properly
|
2005-08-13 00:20:45 +00:00
|
|
|
* Check that the version number ends with an even micro component
|
2004-11-04 14:23:50 +00:00
|
|
|
* Check that no release exists with the current version
|
2004-10-27 11:59:56 +00:00
|
|
|
* Verify that make distcheck completes successfully
|
2004-10-28 08:36:42 +00:00
|
|
|
* Generate the final tar file
|
2005-08-13 00:20:45 +00:00
|
|
|
* Generate an sha1sum file
|
|
|
|
|
* Sign the sha1sum using your GPG setup (asks for your GPG password)
|
2005-08-24 05:28:28 +00:00
|
|
|
* scp the three files to appear on http://cairographics.org/releases
|
2008-10-30 08:29:51 -07:00
|
|
|
* Generate a versioned manual and upload it to appear as both:
|
2008-10-30 08:26:55 -07:00
|
|
|
http://cairographics.org/manual-X.Y.Z
|
2008-10-30 08:29:51 -07:00
|
|
|
http://cairographics.org/manual
|
2005-08-13 00:20:45 +00:00
|
|
|
* Place local copies of the three files in the releases directory
|
2004-10-28 08:36:42 +00:00
|
|
|
* Create a LATEST-package-version file (after deleting any old one)
|
2006-03-15 15:17:26 -05:00
|
|
|
* Tag the entire source tree with a tag of the form X.Y.Z, and sign
|
|
|
|
|
the tag with your GPG key (asks for your GPG password, and you
|
|
|
|
|
may need to set GIT_COMMITTER_NAME and GIT_COMMITTER_EMAIL to match
|
|
|
|
|
your public-key's setting or this fails.)
|
2005-08-13 00:20:45 +00:00
|
|
|
* Provide some text for the release announcement (see below).
|
2006-03-15 15:17:26 -05:00
|
|
|
If for some reason you lost this message, "make release-publish-message"
|
|
|
|
|
prints it for you.
|
2004-04-06 20:13:11 +00:00
|
|
|
|
2007-03-03 15:34:19 -05:00
|
|
|
7) Increment cairo_version_micro to the next larger (odd) number in
|
2008-08-28 18:18:23 -04:00
|
|
|
cairo-version.h, commit, and push.
|
2007-03-03 15:34:19 -05:00
|
|
|
|
|
|
|
|
8) Push the newly created tag out to the central tree with a command
|
2006-11-29 17:15:29 -08:00
|
|
|
something like:
|
2006-05-04 23:33:44 -07:00
|
|
|
|
2006-06-16 09:22:36 -07:00
|
|
|
git push cairo X.Y.Z
|
2006-05-04 23:33:44 -07:00
|
|
|
|
2007-03-03 15:35:25 -05:00
|
|
|
9) Edit the cairo bugzilla product and add the new version numbers. Note
|
|
|
|
|
that you need to add two versions. One for the release/snapshot (with
|
|
|
|
|
an even micro version), another with the post-release version (with an
|
|
|
|
|
odd micro version).
|
2006-05-04 23:33:44 -07:00
|
|
|
|
|
|
|
|
10) Send a message to cairo-announce@cairographics.org and CC
|
2008-09-26 09:49:50 -04:00
|
|
|
gnome-announce-list@gnome.org and ftp-release@lists.freedesktop.org
|
|
|
|
|
(pr@lwn.net as well for major releases) to announce the new release
|
|
|
|
|
using the text provided from "make release-publish", adding the excerpt
|
|
|
|
|
from NEWS, your signature, followed by the standard "What is cairo" and
|
|
|
|
|
"Where to get more information about cairo" blurbs from README, and
|
2008-12-14 11:40:12 +00:00
|
|
|
finally the shortlog of all changes since last release, generated by:
|
2008-08-11 13:09:46 -04:00
|
|
|
|
|
|
|
|
git shortlog X.Y.Z...
|
|
|
|
|
|
|
|
|
|
where X.Y.Z is the last released version.
|
2004-04-07 11:03:40 +00:00
|
|
|
|
2006-05-04 23:33:44 -07:00
|
|
|
11) Edit the cairo wiki to add the announcement to the NEWS page and
|
2007-03-03 15:37:45 -05:00
|
|
|
the front page. (just the parts before your signature).
|
2007-02-28 17:08:23 -05:00
|
|
|
|
|
|
|
|
12) For minor releases (no X.Y change), notify desktop-devel-list@gnome.org
|
|
|
|
|
or update the ExternalDependencies page for the current cycle if you
|
|
|
|
|
know where it is. Currently it's:
|
|
|
|
|
|
2007-05-01 18:13:19 -04:00
|
|
|
http://live.gnome.org/TwoPointNineteen/ExternalDependencies
|