summaryrefslogtreecommitdiff
path: root/RELEASING
blob: 5630818b4a5908ef1cb008cc21e02c86840ce8da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
Here are the steps to follow to create a new cairo release:

1) Ensure that there are no local, uncommitted/unspushed
   modifications. You're probably in a good state if both "git diff
   HEAD" and "git log master..origin/master" give no output.

2) Verify that the code passes "make distcheck"

	First, make sure you have 'nm' and 'readelf' commands in PATH.
	this should be Ok with any Linux distro.

	Running "make distcheck" should result in no warnings or
	errors and end with a message of the form:

	==================================================
	cairo-X.Y.Z-head archives ready for distribution:
	cairo-X.Y.Z-head.tar.gz
	==================================================

	(But the tar file isn't actually ready yet, as we still have
	some more steps to follow).

	If you get errors about local PLT entries, you get the list of
	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.

	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=" "

3) Fill out an entry in the NEWS file

	Sift through the logs since the last release. This is most
	easily done with a comand such as:

		git log --stat X.Y.Z..

	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:

		find src/ -name '*.h' ! -name '*-private.h' ! -name 'cairoint.h' ! -name 'cairo-*features*.h' | \
		xargs git diff X.Y.Z.. --

4) Increment cairo_version_{minor|micro} in cairo-version.h:

	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.

	So cairo_version_major will not be incremented unless we come
	up with a new versioning scheme to take advantage of it.

	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.

	Otherwise, (ie. there are only bug fixes), increment
	cairo_version_micro to the next larger (even) number.

5) Commit the changes to NEWS and cairo-version.h

	It's especially important to mention the new version number in your
	commit log.

6) Run "make release-publish" which will perform the following steps
   for you:

	* Generate ChangeLog files out of git repository
	* Check that ChangeLog files were generated properly
	* Check that the version number ends with an even micro component
	* Check that no release exists with the current version
	* Verify that make distcheck completes successfully
	* Generate the final tar file
	* Generate an sha1sum file
	* Sign the sha1sum using your GPG setup (asks for your GPG password)
	* scp the three files to appear on http://cairographics.org/releases
	* Place local copies of the three files in the releases directory
	* Create a LATEST-package-version file (after deleting any old one)
	* 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.)
	* Provide some text for the release announcement (see below).
	  If for some reason you lost this message, "make release-publish-message"
	  prints it for you.

7) Increment cairo_version_micro to the next larger (odd) number in
   cairo-version.h, commit, and push.

8) Push the newly created tag out to the central tree with a command
   something like:

	git push cairo X.Y.Z

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).

10) Send a message to cairo-announce@cairographics.org and CC
    gnome-announce-list@gnome.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 finally
    the shortlog of all changes since last release, generated by:

	git shortlog X.Y.Z...

    where X.Y.Z is the last released version.

11) Edit the cairo wiki to add the announcement to the NEWS page and
    the front page. (just the parts before your signature).

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:

	http://live.gnome.org/TwoPointNineteen/ExternalDependencies