summaryrefslogtreecommitdiff
path: root/release/process.mdwn
blob: 86b982bf727eab2692e6120a8488fcb1b8eff574 (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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
[[!meta title="Release Process"]]
[[!meta author="DanielSilverstone"]]
[[!meta date="2016-11-19T12:05:07Z"]]


[[!toc]]

Releasing a new version of NetSurf and libraries
================================================

firstly the libraries and tool sources must be created (only if they
need an update) and then the browser itself.

Process for projects using buildsystem
--------------------------------------

We perform all releases from git simply by pushing a
release/>version number< tag

Before creating the tag you should do some basic checks

check the COMPONENT\_VERSION in the root Makefile matches the version
number you are releasing, if not change it and commit it so it does.

Any files that should not be put in the distribution archive must be
placed in the .gitattributes file, as a minimum it should contain
attributes for the .gitignore and gitattributes files e.g.

    .gitignore export-ignore
    .gitattributes export-ignore

in your clone do

    git branch -vv

ensure the top commit looks right and is what you want to tag, for extra
paranoia check the .git/config to ensure the origin is the correct
server. You do **not** have to tag from master, for example if this is a
maintenance release of an old edition and you are tagging from a branch
etc. just **ensure** you are where you want the release to be.

Create the tag with

    git tag -s -m 'Official Release' release/>version number<

Ensure the version number in the tag matches the component version.

Now run

    make dist

if you get

    Makefile:45: \*\*\* Component Version "1.0" and GIT tag version "1.1" do not match. Stop.

you did not get the tag and version numbers lined up, go back, remove
your local tag with

    git tag -d release/<bad version>

and try again

when you get a buildsystem-1.0.tar.gz (with appropriate version number)
well done

Check the contents of the tar are what you intended to release and
adjust if not (obviously you will need to remove your local tag and
start over with fresh commits.

Next do a dry run push

    git push -n --tags

ensure this shown the correct repo and the release tag something like

    [gitano] Welcome to the NetSurf Gitano instance.
    Counting objects: 1, done.
    Writing objects: 100% (1/1), 800 bytes | 0 bytes/s, done.
    Total 1 (delta 0), reused 0 (delta 0)
    To ssh://nsgit@git.netsurf-browser.org/libutf8proc.git
     * [new tag]         release/1.3.1-3 -> release/1.3.1-3

If that verifies as correct

    git push --tags
    git push

and the release tag is pushed, too late now so be careful and check!

Release the buildsystem
-----------------------

The buildsystem must be released first.

The buildsystem follows exactly the same process as releasing any
other component except there is an additional step

Because this is the buildsystem and provides the makefiles for all the
other source builds you must go to the CI server and ensure the
source-buildsystem job has successfully run and produced output in
<http://ci.netsurf-browser.org/builds/sources/>

Release libnspsl
----------------

The public suffix list library should be updated for each release
after the buildsystem..

Delete the public_suffix_list.dat file and run make, this will cause a
fresh copy to be downloaded and converted. You will need the correct
perl modules installed for this step.

Release libutf8proc
-------------------

May have to update to upstream unless upstream have added a pkg-config file

Other core buildsystem based libraries
--------------------------------------

libraries using the core buildsystem in order

-   libwapcaplet
-   libnslog
-   libnsutils
-   libparserutils
-   libcss
-   libhubbub
-   libdom
-   libnsbmp
-   libnsgif
-   librosprite
-   libsvgtiny
-   nsgenbind
-   libnsfb
-   libpencil
-   librufl


Releasing NetSurf
-----------------

ensure you are at the commit from which you want to create the release

    git branch -vv

check the resources for the frontends you are releasing are up to date:

- Fatmessages copyright year

        resources/FatMessages

- credits file copyright years (at a minimum)

        resources/en/credits.html
        resources/it/credits.html
        resources/nl/credits.html
    
- licence file copyright years (at a minimum)

        resources/en/licence.html
        resources/it/licence.html
        resources/nl/licence.html
    
- amiga readme copyright files

        frontends/amiga/pkg/netsurf.readme
        frontends/amiga/pkg/netsurf\_os3.readme
    
- windows frontend installer

        windows/res/installer.nsi

Ensure the ca-bundle is updated

    https://curl.haxx.se/docs/caextract.html

create a branch releasing/<version number> and switch to it

    git branch releasing/3.8
    git checkout releasing/3.8

update desktop/version.c to something like

    #include "testament.h"
    
    const char * const netsurf_version = "3.8 (25th April 2016)";
    const int netsurf_version_major = 3;
    const int netsurf_version_minor = 8;

update frontends/amiga/version.c along the same lines

    #define NETSURF_VERSION_MAJOR "3"
    #define NETSURF_VERSION_MINOR_EXTERNAL "8"

commit to the branch

    git commit -m 'Update version files for release'

once you are sure everything is correct and committed tag the branch for release

    git tag -s -m 'Official Release' release/<version number>

Next do a dry run push

    git push -n --tags

ensure this shown the correct repo and the release tag something like

    [gitano] Welcome to the NetSurf Gitano instance.
    To ssh://nsgit@git.netsurf-browser.org/netsurf.git
     * [new tag]         release/3.7 -> release/3.7

Next the branch must be merged back to master.

    git checkout master
    git merge -s ours heads/releasing/3.7

Then edit desktop/version.c and frontends/amiga/version.c ready for the next release cycle

    git add desktop/version.c frontends/amiga/version.c
    git commit -m 'Update version for next development cycle'

Remove releasing branch

    git branch -d releasing/3.8
    Deleted branch releasing/3.8 (was 66fe825c8).

finally push master

    git push origin master

If that verifies as correct

    git push --tags

and the release tag is pushed, too late now so be careful and check!

Please do ensure you *thoroughly* check your work at each step as mistakes are hard to fix once pushed.

Releasing the all source
------------------------

clone the all repo

    git clone ssh://nsgit@git.netsurf-browser.org/netsurf-all.git

ensure ther submodules are initialised

    git submodule init

output will be something like

    Submodule 'buildsystem' (git://git.netsurf-browser.org/buildsystem.git) registered for path 'buildsystem'
    Submodule 'libcss' (git://git.netsurf-browser.org/libcss.git) registered for path 'libcss'
    Submodule 'libdom' (git://git.netsurf-browser.org/libdom.git) registered for path 'libdom'
    Submodule 'libhubbub' (git://git.netsurf-browser.org/libhubbub.git) registered for path 'libhubbub'
    Submodule 'libnsbmp' (git://git.netsurf-browser.org/libnsbmp.git) registered for path 'libnsbmp'
    Submodule 'libnsfb' (git://git.netsurf-browser.org/libnsfb.git) registered for path 'libnsfb'
    Submodule 'libnsgif' (git://git.netsurf-browser.org/libnsgif.git) registered for path 'libnsgif'
    Submodule 'libnspsl' (http://git.netsurf-browser.org/libnspsl.git) registered for path 'libnspsl'
    Submodule 'libnsutils' (http://git.netsurf-browser.org/libnsutils.git/) registered for path 'libnsutils'
    Submodule 'libparserutils' (git://git.netsurf-browser.org/libparserutils.git) registered for path 'libparserutils'
    Submodule 'libpencil' (git://git.netsurf-browser.org/libpencil.git) registered for path 'libpencil'
    Submodule 'librosprite' (git://git.netsurf-browser.org/librosprite.git) registered for path 'librosprite'
    Submodule 'librufl' (git://git.netsurf-browser.org/librufl.git) registered for path 'librufl'
    Submodule 'libsvgtiny' (git://git.netsurf-browser.org/libsvgtiny.git) registered for path 'libsvgtiny'
    Submodule 'libutf8proc' (http://git.netsurf-browser.org/libutf8proc.git/) registered for path 'libutf8proc'
    Submodule 'libwapcaplet' (git://git.netsurf-browser.org/libwapcaplet.git) registered for path 'libwapcaplet'
    Submodule 'netsurf' (git://git.netsurf-browser.org/netsurf.git) registered for path 'netsurf'
    Submodule 'nsgenbind' (git://git.netsurf-browser.org/nsgenbind.git) registered for path 'nsgenbind'

ensure the submodules are updated

    git submodule update

If a new submodule is required (e.g. new library) it must be added and then the .gitmodules file checked for correctnes.
Once happy commit the changes. Note use the git uri for the submodules not http

    git submodule add git://git.netsurf-browser.org/libnslog.git
    vi .gitmodules
    git commit -a -m 'Add libnslog submodule'

if adding a submodule the Makefile may require editing to build the library or utility

for each submodule listed above the correct revision must be set. A utility target is provided in the makefile

    make checkout-release

This obtains the most recent release tag for each submodule and checks it out, equivalent to:

    cd buildsystem
    git checkout origin/HEAD
    git checkout $(git describe --abbrev=0 --match="release/*" )
    cd ..

once each submodule has been updated in the top level netsurf-all directory.
The modified submodules should then be added ready for commit

    git add buildsystem libcss libdom libhubbub libnsbmp libnsfb libnsgif libparserutils librosprite libsvgtiny libwapcaplet netsurf nsgenbind
    git commit -m 'Update submodules for 3.7 release'

ensure the component version in the Makefile has been updated

finally tag the branch for release

    git tag -s -m 'Official Release' release/<version number>

make the distribution tarball and check its contents

    make dist

The git-archive-all module is needed for the dist step from

    https://github.com/Kentzo/git-archive-all

Next do a dry run push

    git push -n --tags

ensure this shown the correct repo and the release tag something like

    [gitano] Welcome to the NetSurf Gitano instance.
    To ssh://nsgit@git.netsurf-browser.org/netsurf-all.git
     * [new tag]         release/3.7 -> release/3.7

If that verifies as correct

    git push && git push --tags

and the release tag is pushed, too late now so be careful and check!

Bugtracker
----------

The netsurf release version must be marked as released in mantis and the
next development version added if its not already present