This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Porting/release_managers_guide.pod: mention Module::CoreList's CAVEATS section
[perl5.git] / Porting / release_managers_guide.pod
CommitLineData
49781f4a
AB
1=encoding utf8
2
7277a900
GS
3=head1 NAME
4
5release_managers_guide - Releasing a new version of perl 5.x
6
c67d51c3
DM
7As of August 2009, this file is mostly complete, although it is missing
8some detail on doing a major release (e.g. 5.10.0 -> 5.12.0). Note that
d60a1044
DM
9things change at each release, so there may be new things not covered
10here, or tools may need updating.
f6af4394 11
7277a900
GS
12=head1 SYNOPSIS
13
f6af4394
DM
14This document describes the series of tasks required - some automatic, some
15manual - to produce a perl release of some description, be that a snaphot,
8c35d285 16release candidate, or final, numbered release of maint or blead.
f6af4394 17
8c35d285 18The release process has traditionally been executed by the current
ee76d676
JV
19pumpking. Blead releases from 5.11.0 forward are made each month on the
2020th by a non-pumpking release engineer. The release engineer roster
21and schedule can be found in Porting/release_schedule.pod.
7277a900 22
8c35d285
JV
23This document both helps as a check-list for the release engineer
24and is a base for ideas on how the various tasks could be automated
25or distributed.
7277a900 26
636a1918 27The outline of a typical release cycle is as follows:
f6af4394 28
636a1918 29 (5.10.1 is released, and post-release actions have been done)
f6af4394
DM
30
31 ...time passes...
32
33 an occasional snapshot is released, that still identifies itself as
34 5.10.1
35
36 ...time passes...
37
38 a few weeks before the release, a number of steps are performed,
39 including bumping the version to 5.10.2
636a1918
DM
40
41 ...a few weeks passes...
46743ef7 42
f6af4394
DM
43 perl-5.10.2-RC1 is released
44
45 perl-5.10.2 is released
46
47 post-release actions are performed, including creating new
c5b87fed 48 perldelta.pod
f6af4394
DM
49
50 ... the cycle continues ...
7277a900
GS
51
52=head1 DETAILS
53
8c35d285
JV
54Some of the tasks described below apply to all four types of
55release of Perl. (snapshot, RC, final release of maint, final
56release of blead). Some of these tasks apply only to a subset
57of these release types. If a step does not apply to a given
58type of release, you will see a notation to that effect at
59the beginning of the step.
60
61=head2 Release types
62
63=over 4
64
65=item Snapshot
66
67A snapshot is intended to encourage in-depth testing from time-to-time,
68for example after a key point in the stabilisation of a branch. It
69requires fewer steps than a full release, and the version number of perl in
70the tarball will usually be the same as that of the previous release.
71
72=item Release Candidate (RC)
73
d60a1044
DM
74A release candidate is an attempt to produce a tarball that is a close as
75possible to the final release. Indeed, unless critical faults are found
76during the RC testing, the final release will be identical to the RC
77barring a few minor fixups (updating the release date in F<perlhist.pod>,
78removing the RC status from F<patchlevel.h>, etc). If faults are found,
79then the fixes should be put into a new release candidate, never directly
80into a final release.
8c35d285
JV
81
82=item Stable/Maint release
83
84At this point you should have a working release candidate with few or no
85changes since.
86
87It's essentially the same procedure as for making a release candidate, but
88with a whole bunch of extra post-release steps.
89
90=item Blead release
91
92It's essentially the same procedure as for making a release candidate, but
93with a whole bunch of extra post-release steps.
94
95=back
7277a900 96
fd838dcf
JV
97=head2 Prerequisites
98
99Before you can make an official release of perl, there are a few
100hoops you need to jump through:
101
102=over 4
103
8c35d285
JV
104=item PAUSE account
105
106I<SKIP this step for SNAPSHOT>
fd838dcf
JV
107
108Make sure you have a PAUSE account suitable for uploading a perl release.
109If you don't have a PAUSE account, then request one:
110
111 https://pause.perl.org/pause/query?ACTION=request_id
112
113Check that your account is allowed to upload perl distros: goto
b386fa44 114L<https://pause.perl.org/>, login, then select 'upload file to CPAN'; there
fd838dcf 115should be a "For pumpkings only: Send a CC" tickbox. If not, ask Andreas
e03f126c 116KE<0xf6>nig to add your ID to the list of people allowed to upload something
fd838dcf 117called perl. You can find Andreas' email address at:
4d2c8158 118
fd838dcf
JV
119 https://pause.perl.org/pause/query?ACTION=pause_04imprint
120
fdabea7a
JV
121=item search.cpan.org
122
123Make sure that search.cpan.org knows that you're allowed to upload
124perl distros. Contact Graham Barr to make sure that you're on the right
125list.
126
8c35d285
JV
127=item CPAN mirror
128
129Some release engineering steps require a full mirror of the CPAN.
130Work to fall back to using a remote mirror via HTTP is incomplete
131but ongoing. (No, a minicpan mirror is not sufficient)
132
133=item git checkout and commit bit
fd838dcf
JV
134
135You will need a working C<git> installation, checkout of the perl
136git repository and perl commit bit. For information about working
c222ef46 137with perl and git, see F<pod/perlgit.pod>.
fd838dcf
JV
138
139If you are not yet a perl committer, you won't be able to make a
140release. Have a chat with whichever evil perl porter tried to talk
141you into the idea in the first place to figure out the best way to
142resolve the issue.
143
f6af4394 144
8c35d285 145=item Quotation for release announcement epigraph
f6af4394 146
8c35d285 147I<SKIP this step for SNAPSHOT and RC>
f6af4394 148
8c35d285
JV
149For a numbered blead or maint release of perl, you will need a quotation
150to use as an epigraph to your release announcement. (There's no harm
151in having one for a snapshot, but it's not required).
46743ef7 152
f6af4394
DM
153
154=back
155
b82efa27 156
2e831dfd 157=head2 Building a release - advance actions
8c35d285
JV
158
159The work of building a release candidate for a numbered release of
160perl generally starts several weeks before the first release candidate.
52a66c2c
DM
161Some of the following steps should be done regularly, but all I<must> be
162done in the run up to a release.
7277a900
GS
163
164=over 4
165
f6af4394
DM
166=item *
167
8c35d285
JV
168I<You MAY SKIP this step for SNAPSHOT>
169
f6af4394
DM
170Ensure that dual-life CPAN modules are synchronised with CPAN. Basically,
171run the following:
172
db3f805e 173 $ ./perl -Ilib Porting/core-cpan-diff -a -o /tmp/corediffs
7277a900 174
f6af4394
DM
175to see any inconsistencies between the core and CPAN versions of distros,
176then fix the core, or cajole CPAN authors as appropriate. See also the
177C<-d> and C<-v> options for more detail. You'll probably want to use the
04dbb930
DG
178C<-c cachedir> option to avoid repeated CPAN downloads and may want to
179use C<-m file:///mirror/path> if you made a local CPAN mirror.
7277a900 180
f6af4394 181To see which core distro versions differ from the current CPAN versions:
7277a900 182
db3f805e 183 $ ./perl -Ilib Porting/core-cpan-diff -x -a
7277a900 184
52a66c2c 185If you are making a maint release, run C<core-cpan-diff> on both blead and
636a1918
DM
186maint, then diff the two outputs. Compare this with what you expect, and if
187necessary, fix things up. For example, you might think that both blead
188and maint are synchronised with a particular CPAN module, but one might
189have some extra changes.
190
f6af4394 191=item *
7277a900 192
8c35d285
JV
193I<You MAY SKIP this step for SNAPSHOT>
194
f6af4394 195Ensure dual-life CPAN modules are stable, which comes down to:
7277a900
GS
196
197 for each module that fails its regression tests on $current
f6af4394
DM
198 did it fail identically on $previous?
199 if yes, "SEP" (Somebody Else's Problem)
200 else work out why it failed (a bisect is useful for this)
7277a900
GS
201
202 attempt to group failure causes
203
204 for each failure cause
f6af4394
DM
205 is that a regression?
206 if yes, figure out how to fix it
207 (more code? revert the code that broke it)
208 else
209 (presumably) it's relying on something un-or-under-documented
210 should the existing behaviour stay?
211 yes - goto "regression"
212 no - note it in perldelta as a significant bugfix
213 (also, try to inform the module's author)
1aff5354 214
f6af4394 215=item *
7277a900 216
8c35d285
JV
217I<You MAY SKIP this step for SNAPSHOT>
218
f6af4394 219Similarly, monitor the smoking of core tests, and try to fix.
f85d27e8 220See L<http://doc.procura.nl/smoke/index.html> for a summary.
7277a900 221
f6af4394 222=item *
7277a900 223
8c35d285
JV
224I<You MAY SKIP this step for SNAPSHOT>
225
636a1918
DM
226Similarly, monitor the smoking of perl for compiler warnings, and try to
227fix.
228
229=item *
230
8c35d285
JV
231I<You MAY SKIP this step for SNAPSHOT>
232
f6af4394 233Get perldelta in a mostly finished state.
db3f805e 234
04c2c53e 235Read F<Porting/how_to_write_a_perldelta.pod>, and try to make sure that
636a1918
DM
236every section it lists is, if necessary, populated and complete. Copy
237edit the whole document.
f6af4394
DM
238
239=item *
240
8c35d285
JV
241I<You MUST SKIP this step for SNAPSHOT>
242
04dbb930
DG
243Bump the version number (e.g. from 5.12.0 to 5.12.1).
244
245For a blead release, this can happen on the day of the release. For a
246release candidate for a stable perl, this should happen a week or two
247before the first release candidate to allow sufficient time for testing and
248smoking with the target version built into the perl executable. For
249subsequent release candidates and the final release, it it not necessary to
250bump the version further.
f6af4394
DM
251
252There is a tool to semi-automate this process. It works in two stages.
253First, it generates a list of suggested changes, which you review and
254edit; then you feed this list back and it applies the edits. So, first
52a66c2c
DM
255scan the source directory looking for likely candidates. The command line
256arguments are the old and new version numbers, and -s means scan:
f6af4394 257
30cdbfa1 258 $ ./perl -Ilib Porting/bump-perl-version -s 5.10.0 5.10.1 > /tmp/scan
f6af4394 259
52a66c2c 260This produces a file containing a list of suggested edits, e.g.:
f6af4394
DM
261
262 NetWare/Makefile
263
264 89: -MODULE_DESC = "Perl 5.10.0 for NetWare"
265 +MODULE_DESC = "Perl 5.10.1 for NetWare"
266
267i.e. in the file F<NetWare/Makefile>, line 89 would be changed as shown.
268Review the file carefully, and delete any -/+ line pairs that you don't
52a66c2c
DM
269want changing. You can also edit just the C<+> line to change the
270suggested replacement text. Remember that this tool is largely just
271grepping for '5.10.0' or whatever, so it will generate false positives. Be
272careful not change text like "this was fixed in 5.10.0"! Then run:
f6af4394 273
30cdbfa1 274 $ ./perl -Ilib Porting/bump-perl-version -u < /tmp/scan
f6af4394 275
54356a6f 276which will update all the files shown.
f6af4394
DM
277
278Be particularly careful with F<INSTALL>, which contains a mixture of
279C<5.10.0>-type strings, some of which need bumping on every release, and
e03f126c
Z
280some of which need to be left unchanged.
281The line in F<INSTALL> about "is binary incompatible with" requires a
282correct choice of earlier version to declare incompatibility with.
283
284Also note that this tool
52a66c2c
DM
285currently only detects a single substitution per line: so in particular,
286this line in README.vms needs special handling:
f6af4394
DM
287
288 rename perl-5^.10^.1.dir perl-5_10_1.dir
7277a900 289
45ce9531 290When doing a blead release, also make sure the C<PERL_API_*> constants in
e43cb88f
TM
291F<patchlevel.h> are in sync with the version you're releasing, unless you're
292absolutely sure the release you're about to make is 100% binary compatible
293to an earlier release. When releasing a stable perl version, the C<PERL_API_*>
294constants C<MUST NOT> be changed as we aim to guarantee binary compatibility
295in maint branches.
45ce9531 296
54356a6f
JV
297Commit your changes:
298
299 $ git st
e91bd5c0
LB
300 $ git diff
301 B<review the delta carefully>
54356a6f
JV
302
303 $ git commit -a -m 'Bump the perl version in various places for 5.x.y'
dc0a62a1 304
81fc59ef
DG
305When the version number is bumped, you should also update Module::CoreList (as
306described below in L<"Building a release - on the day">) to reflect the new
307version number.
308
dc0a62a1
DM
309=item *
310
8c35d285
JV
311I<You MUST SKIP this step for SNAPSHOT>
312
dc0a62a1
DM
313Review and update INSTALL to account for the change in version number;
314in particular, the "Coexistence with earlier versions of perl 5" section.
315
c1b1cb88
FR
316Be particularly careful with the section "Upgrading from 5.X.Y or earlier". For
317stable releases, this needs to refer to the last release in the previous
318development cycle. For blead releases, it needs to refer to the previous blead
319release.
320
f6af4394 321=item *
7277a900 322
b82efa27
RS
323I<You MUST SKIP this step for SNAPSHOT>
324
325Update the F<Changes> file to contain the git log command which would show
326all the changes in this release. You will need assume the existence of a
327not-yet created tag for the forthcoming release; e.g.
328
329 git log ... perl-5.10.0..perl-5.12.0
330
331Due to warts in the perforce-to-git migration, some branches require extra
332exclusions to avoid other branches being pulled in. Make sure you have the
333correct incantation: replace the not-yet-created tag with C<HEAD> and see
334if C<git log> produces roughly the right number of commits across roughly the
335right time period (you may find C<git log --pretty=oneline | wc> useful).
336
337=item *
338
52a66c2c
DM
339Check some more build configurations. The check that setuid builds and
340installs is for < 5.11.0 only.
341
342 $ sh Configure -Dprefix=/tmp/perl-5.x.y -Uinstallusrbinperl \
343 -Duseshrplib -Dd_dosuid
344 $ make
345 $ LD_LIBRARY_PATH=`pwd` make test # or similar for useshrplib
7277a900 346
52a66c2c
DM
347 $ make suidperl
348 $ su -c 'make install'
349 $ ls -l .../bin/sperl
350 -rws--x--x 1 root root 69974 2009-08-22 21:55 .../bin/sperl
7277a900 351
52a66c2c 352(Then delete the installation directory.)
7277a900 353
52a66c2c 354XXX think of other configurations that need testing.
7277a900 355
f6af4394 356=item *
7277a900 357
8c35d285
JV
358I<You MAY SKIP this step for SNAPSHOT>
359
347f5124
RGS
360L<perlport> has a section currently named I<Supported Platforms> that
361indicates which platforms are known to build in the current release.
362If necessary update the list and the indicated version number.
363
2e831dfd
DM
364=back
365
366=head2 Building a release - on the day
367
368This section describes the actions required to make a release (or snapshot
369etc) that are performed on the actual day.
370
371=over 4
372
373=item *
374
375Review all the items in the previous section,
376L<"Building a release - advance actions"> to ensure they are all done and
377up-to-date.
378
8c35d285
JV
379=item *
380
04dbb930
DG
381For a blead release, if you did not bump the perl version number as part
382of I<advance actions>, do that now.
383
384=item *
385
a0db33fe 386I<You MAY SKIP this step for SNAPSHOT>
2e831dfd 387
04dbb930 388Finalize the perldelta. In particular, fill in the Acknowledgements
38195a8c
DG
389section. You can generate a list of contributors with checkAUTHORS.pl.
390For example:
391
392 $ git log --pretty=fuller v5.13.2..HEAD | \
393 perl Porting/checkAUTHORS.pl --who -
04dbb930 394
a0db33fe
DM
395Re-read the perldelta to try to find any embarrassing typos and thinkos;
396remove any C<TODO> or C<XXX> flags; update the "Known Problems" section
397with any serious issues for which fixes are not going to happen now; and
398run through pod and spell checkers, e.g.
2e831dfd 399
c5b87fed
FR
400 $ podchecker -warnings -warnings pod/perldelta.pod
401 $ spell pod/perldelta.pod
2e831dfd 402
a0db33fe
DM
403Also, you may want to generate and view an HTML version of it to check
404formatting, e.g.
2e831dfd 405
c5b87fed 406 $ perl pod/pod2html pod/perldelta.pod > /tmp/perldelta.html
2e831dfd 407
38195a8c
DG
408Another good HTML preview option is http://search.cpan.org/pod2html
409
410If you make changes, be sure to commit them.
411
8c35d285
JV
412=item *
413
a0db33fe
DM
414Make sure you have a gitwise-clean perl directory (no modified files,
415unpushed commits etc):
8c35d285 416
a0db33fe 417 $ git status
24c5e187 418 $ git clean -dxf
8c35d285
JV
419
420=item *
421
a0db33fe
DM
422If not already built, Configure and build perl so that you have a Makefile
423and porting tools:
8c35d285 424
52a66c2c 425 $ ./Configure -Dusedevel -des && make
8c35d285
JV
426
427=item *
428
bfadf2ba
JV
429I<You MUST SKIP this step for SNAPSHOT>
430
1bac61bb 431Update C<Module::CoreList> with module version data for the new release.
bfadf2ba
JV
432
433Note that if this is a maint release, you should run the following actions
1bac61bb 434from the maint branch, but commit the C<CoreList.pm> changes in
38195a8c 435I<blead> and subsequently cherry-pick it. XXX need a better example
bfadf2ba 436
a0db33fe 437F<corelist.pl> uses ftp.funet.fi to verify information about dual-lived
bfadf2ba 438modules on CPAN. It can use a full, local CPAN mirror or fall back
e8c01f92
SH
439to C<wget> or C<curl> to fetch only package metadata remotely. (If you're
440on Win32, then installing Cygwin is one way to have commands like C<wget>
441and C<curl> available.)
bfadf2ba
JV
442
443(If you'd prefer to have a full CPAN mirror, see
444http://www.cpan.org/misc/cpan-faq.html#How_mirror_CPAN)
445
a0db33fe 446Then change to your perl checkout, and if necessary,
bfadf2ba 447
595f83ae 448 $ make
bfadf2ba 449
81fc59ef
DG
450If this not the first update for this version (e.g. if it was updated
451when the version number was originally bumped), first edit
d5bddf6e 452F<dist/Module-CoreList/lib/Module/CoreList.pm> to delete the existing
2ce7d676
RGS
453entries for this version from the C<%released> and C<%version> hashes:
454they will have a key like C<5.010001> for 5.10.1.
52a66c2c
DM
455
456XXX the edit-in-place functionality of Porting/corelist.pl should
457be fixed to handle this automatically.
458
bf8ea215 459Then, If you have a local CPAN mirror, run:
bfadf2ba 460
bfadf2ba
JV
461 $ ./perl -Ilib Porting/corelist.pl ~/my-cpan-mirror
462
463Otherwise, run:
464
bfadf2ba
JV
465 $ ./perl -Ilib Porting/corelist.pl cpan
466
52a66c2c 467This will chug for a while, possibly reporting various warnings about
2a720090 468badly-indexed CPAN modules unrelated to the modules actually in core.
2ce7d676 469Assuming all goes well, it will update
d5bddf6e 470F<dist/Module-CoreList/lib/Module/CoreList.pm>.
bfadf2ba
JV
471
472Check that file over carefully:
473
d5bddf6e 474 $ git diff dist/Module-CoreList/lib/Module/CoreList.pm
bfadf2ba 475
bfadf2ba
JV
476If necessary, bump C<$VERSION> (there's no need to do this for
477every RC; in RC1, bump the version to a new clean number that will
478appear in the final release, and leave as-is for the later RCs and final).
479
480Edit the version number in the new C<< 'Module::CoreList' => 'X.YZ' >>
481entry, as that is likely to reflect the previous version number.
482
e8c01f92
SH
483Also edit Module::CoreList's new version number in its F<Changes> file and
484in its F<META.yml> file.
485
3dbfcde0
AB
486You should also add the version you're about to release to the
487L<Module::CoreList/CAVEATS> section which enumerates the perl releases
488that Module::CoreList covers.
489
a0db33fe 490In addition, if this is a final release (rather than a release candidate):
bfadf2ba
JV
491
492=over 4
493
494=item *
495
496Update this version's entry in the C<%released> hash with today's date.
497
498=item *
499
500Make sure that the script has correctly updated the C<CAVEATS> section
501
502=back
503
504Finally, commit the new version of Module::CoreList:
a0db33fe
DM
505(unless this is for maint; in which case commit it blead first, then
506cherry-pick it back).
bfadf2ba 507
770cf6ff 508 $ git commit -m 'Update Module::CoreList for 5.x.y' dist/Module-CoreList/lib/Module/CoreList.pm
bfadf2ba 509
bfadf2ba
JV
510=item *
511
a0db33fe 512Check that the manifest is sorted and correct:
8c35d285 513
a0db33fe 514 $ make distclean
300b5357 515 $ git clean -xdf # This shouldn't be necessary if distclean is correct
a0db33fe 516 $ perl Porting/manicheck
d5bddf6e 517
7081fd3a 518If manicheck turns up anything wrong, update MANIFEST and begin this step again.
a0db33fe 519
7081fd3a
JV
520 $ ./configure -des -Dusedevel
521 $ make test_porting
a0db33fe
DM
522 $ git commit -m 'Update MANIFEST' MANIFEST
523
524=item *
525
526I<You MUST SKIP this step for SNAPSHOT>
527
528Add an entry to F<pod/perlhist.pod> with the current date, e.g.:
529
530 David 5.10.1-RC1 2009-Aug-06
531
532Make sure that the correct pumpking is listed in the left-hand column, and
533if this is the first release under the stewardship of a new pumpking, make
534sure that his or her name is listed in the section entitled
535C<THE KEEPERS OF THE PUMPKIN>.
536
537Be sure to commit your changes:
538
539 $ git commit -m 'add new release to perlhist' pod/perlhist.pod
8c35d285
JV
540
541=item *
542
38195a8c 543I<You MUST SKIP this step for SNAPSHOT or BLEAD release>
d7eb1120 544
a42352ee
DM
545Update F<patchlevel.h> to add a C<-RC1>-or-whatever string; or, if this is
546a final release, remove it. For example:
d7eb1120
DM
547
548 static const char * const local_patches[] = {
549 NULL
550 + ,"RC1"
551 PERL_GIT_UNPUSHED_COMMITS /* do not remove this line */
552
553Be sure to commit your change:
554
555 $ git commit -m 'bump version to RCnnn' patchlevel.h
556
557=item *
558
a0db33fe
DM
559Build perl, then make sure it passes its own test suite, and installs:
560
561 $ git clean -xdf
a42352ee
DM
562 $ ./Configure -des -Dprefix=/tmp/perl-5.x.y-pretest
563
564 # or if it's an odd-numbered version:
a0db33fe 565 $ ./Configure -des -Dusedevel -Dprefix=/tmp/perl-5.x.y-pretest
a42352ee 566
a0db33fe
DM
567 $ make test install
568
569=item *
570
52a66c2c
DM
571Check that the output of C</tmp/perl-5.x.y-pretest/bin/perl -v> and
572C</tmp/perl-5.x.y-pretest/bin/perl -V> are as expected,
a0db33fe 573especially as regards version numbers, patch and/or RC levels, and @INC
52a66c2c
DM
574paths. Note that as they have been been built from a git working
575directory, they will still identify themselves using git tags and
576commits.
577
578Then delete the temporary installation.
579
580=item *
581
a0db33fe
DM
582Push all your recent commits:
583
584 $ git push origin ....
585
96054f12
JV
586
587=item *
588
589I<You MUST SKIP this step for SNAPSHOT>
590
e8c01f92 591Tag the release (e.g.):
96054f12
JV
592
593 $ git tag v5.11.0 -m'First release of the v5.11 series!'
594
e8c01f92
SH
595(Adjust the syntax appropriately if you're working on Win32, i.e. use
596C<-m "..."> rather than C<-m'...'>.)
597
f662f3b7
JV
598It is VERY important that from this point forward, you not push
599your git changes to the Perl master repository. If anything goes
600wrong before you publish your newly-created tag, you can delete
601and recreate it. Once you push your tag, we're stuck with it
602and you'll need to use a new version number for your release.
603
a0db33fe
DM
604=item *
605
8c35d285
JV
606Create a tarball. Use the C<-s> option to specify a suitable suffix for
607the tarball and directory name:
608
609 $ cd root/of/perl/tree
610 $ make distclean
75a012fe
DM
611 $ git clean -xdf # make sure perl and git agree on files
612 $ git status # and there's nothing lying around
8c35d285
JV
613
614 $ perl Porting/makerel -b -s `git describe` # for a snapshot
615 $ perl Porting/makerel -b -s RC1 # for a release candidate
616 $ perl Porting/makerel -b # for a final release
617
618This creates the directory F<../perl-x.y.z-RC1> or similar, copies all
619the MANIFEST files into it, sets the correct permissions on them,
620adds DOS line endings to some, then tars it up as
621F<../perl-x.y.z-RC1.tar.gz>. With C<-b>, it also creates a C<tar.bz2> file.
622
6480287f
MT
623If you're getting your tarball suffixed with -uncommitted and you're sure
624your changes were all committed, you can override the suffix with:
625
626 $ perl Porting/makerel -b -s ''
96054f12 627
8c35d285
JV
628XXX if we go for extra tags and branches stuff, then add the extra details
629here
630
631=item *
632
a42352ee
DM
633Clean up the temporary directory, e.g.
634
635 $ rm -rf ../perl-x.y.z-RC1
636
637=item *
638
8c35d285
JV
639Copy the tarballs (.gz and possibly .bz2) to a web server somewhere you
640have access to.
641
642=item *
643
644Download the tarball to some other machine. For a release candidate,
645you really want to test your tarball on two or more different platforms
646and architectures. The #p5p IRC channel on irc.perl.org is a good place
647to find willing victims.
648
649=item *
650
651Check that basic configuration and tests work on each test machine:
652
653 $ ./Configure -des && make all test
f6af4394
DM
654
655=item *
656
8c35d285
JV
657Check that the test harness and install work on each test machine:
658
a42352ee 659 $ make distclean
8c35d285 660 $ ./Configure -des -Dprefix=/install/path && make all test_harness install
a42352ee 661 $ cd /install/path
8c35d285
JV
662
663=item *
664
665Check that the output of C<perl -v> and C<perl -V> are as expected,
666especially as regards version numbers, patch and/or RC levels, and @INC
667paths.
668
669Note that the results may be different without a F<.git/> directory,
670which is why you should test from the tarball.
671
672=item *
673
459fc3ca
DM
674Run the Installation Verification Procedure utility:
675
676 $ bin/perlivp
677 ...
678 All tests successful.
679 $
680
681=item *
682
d60a1044
DM
683Compare the pathnames of all installed files with those of the previous
684release (i.e. against the last installed tarball on this branch which you
685have previously verified using this same procedure). In particular, look
686for files in the wrong place, or files no longer included which should be.
687For example, suppose the about-to-be-released version is 5.10.1 and the
688previous is 5.10.0:
689
690 cd installdir-5.10.0/
691 find . -type f | perl -pe's/5\.10\.0/5.10.1/g' | sort > /tmp/f1
692 cd installdir-5.10.1/
693 find . -type f | sort > /tmp/f2
694 diff -u /tmp/f[12]
695
696=item *
697
8c35d285
JV
698Bootstrap the CPAN client on the clean install:
699
75a012fe 700 $ bin/perl -MCPAN -e'shell'
8c35d285 701
e8c01f92
SH
702(Use C<... -e "shell"> instead on Win32. You probably also need a set of
703Unix command-line tools available for CPAN to function correctly without
704Perl alternatives like LWP installed. Cygwin is an obvious choice.)
705
8c35d285
JV
706=item *
707
a42352ee
DM
708Try installing a popular CPAN module that's reasonably complex and that
709has dependencies; for example:
8c35d285 710
a42352ee
DM
711 CPAN> install Inline
712 CPAN> quit
8c35d285
JV
713
714Check that your perl can run this:
715
75a012fe 716 $ bin/perl -lwe 'use Inline C => "int f() { return 42;} "; print f'
a42352ee
DM
717 42
718 $
8c35d285 719
e8c01f92
SH
720(Use C<... -lwe "use ..."> instead on Win32.)
721
8c35d285
JV
722=item *
723
724Bootstrap the CPANPLUS client on the clean install:
725
75a012fe 726 $ bin/cpanp
8c35d285 727
e8c01f92
SH
728(Again, on Win32 you'll need something like Cygwin installed, but make sure
729that you don't end up with its various F<bin/cpan*> programs being found on
730the PATH before those of the Perl that you're trying to test.)
731
8c35d285
JV
732=item *
733
a42352ee 734Install an XS module, for example:
8c35d285 735
a42352ee
DM
736 CPAN Terminal> i DBI
737 CPAN Terminal> quit
738 $ bin/perl -MDBI -e 1
75a012fe 739 $
8c35d285
JV
740
741=item *
742
bc4c40f2
JV
743I<If you're building a SNAPSHOT, you should STOP HERE>
744
745=item *
8c35d285 746
7f89f796 747Check that the L<perlbug> utility works. Try the following:
47b1f096 748
a14438df 749 $ bin/perlbug
47b1f096
DM
750 ...
751 Subject: test bug report
752 Local perl administrator [yourself]:
753 Editor [vi]:
754 Module:
755 Category [core]:
756 Severity [low]:
757 (edit report)
758 Action (Send/Display/Edit/Subject/Save to File): f
759 Name of file to save message in [perlbug.rep]:
760 Action (Send/Display/Edit/Subject/Save to File): q
761
762and carefully examine the output (in F<perlbug.rep]>), especially
763the "Locally applied patches" section. If everything appears okay, then
75a012fe
DM
764delete the file, and try it again, this time actually submitting the bug
765report. Check that it shows up, then remember to close it!
47b1f096
DM
766
767=item *
768
f6af4394
DM
769Wait for the smoke tests to catch up with the commit which this release is
770based on (or at least the last commit of any consequence).
7277a900 771
f6af4394
DM
772Then check that the smoke tests pass (particularly on Win32). If not, go
773back and fix things.
7277a900 774
7277a900 775
f6af4394 776=item *
7277a900 777
f6af4394 778Once smoking is okay, upload it to PAUSE. This is the point of no return.
db3f805e
JV
779If anything goes wrong after this point, you will need to re-prepare
780a new release with a new minor version or RC number.
781
a14438df
DM
782 https://pause.perl.org/
783
784(Login, then select 'Upload a file to CPAN')
785
45924287
RS
786If your workstation is not connected to a high-bandwidth,
787high-reliability connection to the Internet, you should probably use the
788"GET URL" feature (rather than "HTTP UPLOAD") to have PAUSE retrieve the
789new release from wherever you put it for testers to find it. This will
790eliminate anxious gnashing of teeth while you wait to see if your
79115 megabyte HTTP upload successfully completes across your slow, twitchy
c27b4e97
SH
792cable modem. You can make use of your home directory on dromedary for
793this purpose: F<http://users.perl5.git.perl.org/~USERNAME> maps to
794F</home/USERNAME/public_html>, where F<USERNAME> is your login account
795on dromedary. I<Remember>: if your upload is partially successful, you
796may need to contact a PAUSE administrator or even bump the version of perl.
45924287 797
a42352ee 798Upload both the .gz and .bz2 versions of the tarball.
f6af4394 799
c27b4e97 800Wait until you receive notification emails from the PAUSE indexer
38195a8c 801confirming that your uploads have been received. IMPORTANT -- you will
b28f69c2
Z
802probably get an email that indexing has failed, due to module permissions.
803This is considered normal.
38195a8c
DG
804
805Do not proceed any further until you are sure that your tarballs are on
806CPAN. Check your authors directory on one of the "fast" CPAN mirrors
b28f69c2 807(e.g., cpan.hexten.net
38195a8c 808or cpan.cpantesters.org) to confirm that your uploads have been successful.
c27b4e97 809
210de33e
DM
810=item *
811
f662f3b7 812Now that you've shipped the new perl release to PAUSE, it's
e8c01f92 813time to publish the tag you created earlier to the public git repo (e.g.):
f662f3b7
JV
814
815 $ git push origin tag v5.11.0
f6af4394
DM
816
817=item *
818
a42352ee 819Disarm the F<patchlevel.h> change; for example,
d7eb1120
DM
820
821 static const char * const local_patches[] = {
822 NULL
823 - ,"RC1"
824 PERL_GIT_UNPUSHED_COMMITS /* do not remove this line */
825
826Be sure to commit your change:
827
828 $ git commit -m 'disarm RCnnn bump' patchlevel.h
a14438df 829 $ git push origin ....
d7eb1120 830
2e831dfd
DM
831
832=item *
833
db3f805e 834Mail p5p to announce your new release, with a quote you prepared earlier.
f6af4394
DM
835
836=item *
837
85531b0a
DG
838Add your quote to F<Porting/epigraphs.pod> and commit it.
839
840=item *
841
bc4c40f2 842I<You MUST SKIP this step for RC>
8c35d285 843
75a012fe
DM
844Remind the current maintainer of C<Module::CoreList> to push a new release
845to CPAN.
7277a900 846
75a012fe 847=item *
a2cba4bc 848
bc4c40f2 849I<You MUST SKIP this step for RC>
7277a900 850
c5b87fed 851Create a new perldelta.
7277a900 852
5ef3945b
SH
853First, update the F<.gitignore> file in the F<pod/> folder to ignore the next
854release's generated F<pod/perlNNNdelta.pod> file rather than this releases's
855one which we are about to set in stone (where NNN is the perl version number
856without the dots. i.e. 5135 for 5.13.5).
857
858Then, move the existing F<pod/perldelta.pod> to F<pod/perlNNNdelta.pod>.
7277a900 859
c5b87fed
FR
860Now edit the moved delta file to change the C<NAME> from C<perldelta> to
861C<perlNNNdelta>.
7277a900 862
c5b87fed
FR
863Then create a new empty perldelta.pod file for the new release; see
864F<Porting/how_to_write_a_perldelta.pod>.
8e967a1c 865
c5b87fed 866You should be able to do this by just copying in a skeleton template and
5ef3945b 867then doing a quick fix up of the version numbers.
8e967a1c 868
c5b87fed 869Then commit the move and the new file.
8e967a1c 870
c5b87fed 871For example, assuming you just released 5.10.1:
8e967a1c 872
c5b87fed
FR
873 $ git mv pod/perldelta.pod pod/perl5101delta.pod
874 $ (edit pod/perl5101delta.pod to retitle)
8e967a1c 875 $ git add pod/perl5101delta.pod
c5b87fed
FR
876
877 $ cp -i Porting/perldelta_template.pod pod/perldelta.pod
878 $ (edit pod/perldelta.pod)
879 $ git add pod/perldelta.pod
880 $ git commit -m 'create perldelta for 5.10.2'
8e967a1c
DG
881
882Now you need to update various tables of contents, most of which can be
883generated automatically.
7277a900 884
c5b87fed
FR
885Edit F<pod.lst>: add the new entry, flagged as 'd', and unflag the previous
886entry from being 'd'; for example:
75a012fe 887
c5b87fed
FR
888 -d perl5101delta Perl changes in version 5.10.1
889 +d perl5102delta Perl changes in version 5.10.2
75a012fe 890 + perl5101delta Perl changes in version 5.10.1
7277a900 891
75a012fe
DM
892Run C<perl pod/buildtoc --build-all> to update the F<perldelta> version in
893the following files:
57433fbf
JV
894
895 MANIFEST
75a012fe
DM
896 Makefile.SH
897 pod.lst
57433fbf 898 pod/perl.pod
57433fbf 899 vms/descrip_mms.template
75a012fe
DM
900 win32/Makefile
901 win32/makefile.mk
902 win32/pod.mak
903
75a012fe
DM
904Finally, commit:
905
c5b87fed 906 $ git commit -a -m 'update TOC for perlNNNdelta'
75a012fe
DM
907
908At this point you may want to compare the commit with a previous bump to
5ef3945b 909see if they look similar. See commit 2b6e134265 for an example of a
75a012fe 910previous version bump.
57433fbf
JV
911
912=item *
913
bc4c40f2 914I<You MUST SKIP this step for RC, BLEAD>
dc0a62a1 915
66d8ce14
JV
916If this was the first release of a new maint series, (5.x.0 where x is
917even), then create a new maint branch based on the commit tagged as
918the current release and bump the version in the blead branch in git,
919e.g. 5.12.0 to 5.13.0.
addebd58
DM
920
921[ XXX probably lots more stuff to do, including perldelta,
f6af4394 922C<lib/feature.pm> ]
7277a900 923
233ca920
JV
924Assuming you're using git 1.7.x or newer:
925
926 $ git checkout -b maint-5.12
927 $ git push origin -u maint-5.12
addebd58
DM
928
929=item *
930
bc4c40f2 931I<You MUST SKIP this step for RC, BLEAD>
8c35d285 932
c5b87fed 933Copy the perldelta.pod for this release into the other branches; for
75a012fe 934example:
7277a900 935
c5b87fed 936 $ cp -i ../5.10.x/pod/perldelta.pod pod/perl5101delta.pod # for example
75a012fe
DM
937 $ git add pod/perl5101delta.pod
938
939Edit F<pod.lst> to add an entry for the file, e.g.:
940
941 perl5101delta Perl changes in version 5.10.1
bc4c40f2 942
75a012fe 943Then rebuild various files:
7277a900 944
75a012fe
DM
945 $ perl pod/buildtoc --build-all
946
947Finally, commit:
948
949 $ git commit -a -m 'add perlXXXdelta'
7277a900 950
f6af4394 951=item *
7277a900 952
f6af4394
DM
953Make sure any recent F<pod/perlhist.pod> entries are copied to
954F<perlhist.pod> on other branches; typically the RC* and final entries,
955e.g.
7277a900 956
f6af4394
DM
957 5.8.9-RC1 2008-Nov-10
958 5.8.9-RC2 2008-Dec-06
959 5.8.9 2008-Dec-14
7277a900 960
6e40fbf9
DM
961=item *
962
a3738a12
DM
963If necessary, send an email to C<perlbug-admin at perl.org> requesting
964that new version numbers be added to the RT fields C<Perl Version> and
965C<Fixed In>.
966
967=item *
968
bc4c40f2
JV
969I<You MUST RETIRE to your preferred PUB, CAFE or SEASIDE VILLA for some
970much-needed rest and relaxation>.
8c35d285
JV
971
972Thanks for releasing perl!
973
7277a900
GS
974=back
975
b28f69c2
Z
976=head2 Building a release - the day after
977
978=over 4
979
980=item *
981
98df743a
Z
982Check your author directory under L<http://www.cpan.org/authors/id/>
983to ensure that the tarballs are available on the website.
b28f69c2
Z
984
985=item *
986
98df743a
Z
987Check C</src> on CPAN (on a fast mirror) to ensure that links to
988the new tarballs have appeared. There should be links in C</src/5.0>
989(which is accumulating all new versions), links in C</src> (which shows
990only the latest version on each branch), and an appropriate mention in
991C</src/README.html> (which describes the latest versions).
992
993These links should appear automatically, some hours after upload.
994If they don't, or the C<README.html> description is inadequate,
995ask Ask <ask@perl.org>.
b28f69c2
Z
996
997=item *
998
98df743a
Z
999Check L<http://www.cpan.org/src/> to ensure that the C</src> updates
1000have been correctly mirrored to the website.
1001If they haven't, ask Ask <ask@perl.org>.
1002
1003=item *
b28f69c2 1004
98df743a
Z
1005Check L<http://search.cpan.org> to see if it has indexed the distribution.
1006It should be visible at a URL like C<http://search.cpan.org/dist/perl-5.10.1/>.
b28f69c2
Z
1007
1008=item *
1009
98df743a
Z
1010I<This step ONLY for STABLE>
1011
1012Ask Rafael to update L<http://dev.perl.org/perl5/>.
b28f69c2
Z
1013
1014=back
1015
7277a900
GS
1016=head1 SOURCE
1017
f6af4394
DM
1018Based on
1019http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2009-05/msg00608.html,
1020plus a whole bunch of other sources, including private correspondence.
7277a900
GS
1021
1022=cut
1023