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