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