1 README for MAKING BINUTILS RELEASES
3 This is a collection of notes on how to perform a binutils release. A
4 lot of this information can also be found in the maintain.texi file in
7 https://www.gnu.org/software/gnulib/
9 It is useful to have a cloned copy of the sources of this project as
10 it also contains an upload script used to install tarballs on the GNU
13 Make sure that you have upload authority on sourceware and fencepost.
14 Beware - this is an involved process and can take weeks to complete.
15 See the maintain.texi file for details on how to obtain these
18 -------------------------------------------------
19 How to perform a release.
20 -------------------------------------------------
22 1. Send an email out warning contributors about the forthcoming
23 branch. Set a date for the branch (weekends are better because
26 2. When the branch date is near: Update the libiberty and config
27 directories and the top level Makefile and configure files. Also
28 consider updating the toplevel libtool files.
31 Approx time to complete from here: 2 hours ....
33 3. When branch day arrives add markers for the upcoming release to
34 the NEWS files in gas, ld, and binutils. No need to update NEWS
35 in the gold directory - it has its own release numbering.
37 Likewise for the ChangeLog files in: bfd, binutils, config, cpu,
38 elfcpp, gas, gold, gprof, include, ld, libctf, libiberty, opcodes
41 Add a note of the name of the new branch to binutils/BRANCHES.
45 4. Create the release branch using:
47 git branch binutils-2_39-branch
48 git push origin binutils-2_39-branch
50 If you get a message like:
52 remote: fatal: Invalid revision range 0000000000000000000000000000000000000000..f974f26cb16cc6fe3946f163c787a05e713fb77b
54 It appears that this can be ignored...
56 5. Make sure that the branch is there. IE check out the branch sources:
58 git clone ssh://sourceware.org/git/binutils-gdb.git -b binutils-2_39-branch 2.39
60 If you get a message about being in a "detached head" state, something
63 Keep the checked out sources - they are going to be needed in future
66 6. Update "BINUTILS_BRANCH" in gdbadmin's crontab:
68 Log in as gdbadmin on sourceware.org, and then:
72 [change BINUTILS_BRANCH]
76 If you do not have access to this account, please feel free to
77 ask Joel Brobecker <brobecker AT adacore DOT com>.
79 7. Rename the current HEAD version entry in Bugzilla, and create a
80 new one. E.g. rename "2.38 (HEAD)" to 2.38, and create
83 https://sourceware.org/bugzilla/editversions.cgi?product=binutils
85 8. Update bfd/version.m4 on HEAD to indicate that is now a snapshot
86 of the next release. Note if the release is going to be 2.39 then
87 the version number on the branch is set to 2.38.90 - ie almost, but
88 not quite at 2.39, and the version number on the mainline is set to
89 2.39.50 - ie half way to the next release after 2.39.
91 So the branch bfd/version.m4 has:
93 m4_define([BFD_VERSION], [2.38.90])
97 m4_define([BFD_VERSION], [2.39.50])
99 Regenerate various files on both branch and HEAD by configuring
100 with "--enable-maintainer-mode --enable-gold --enable-shared" and then building
101 with "make all-binutils all-gas all-gold all-gprof all-gprofng all-ld"
103 Add ChangeLog entries for the updated files. Commit the changes.
104 Make sure that this includes the .pot files as well as the
105 configure and makefiles.
107 9. Create an initial pre-release:
109 a. Remove any auto-generated files, in order to force the
110 src-release script to rebuild them.
115 b. Create a source tarball of the BRANCH sources:
117 ./src-release.sh -x binutils
119 c. Build a test target using this tarball.
121 cp binutils-2.38.90.tar.xz /dev/shm
123 tar xvf binutils-2.38.90.tar.xz
126 ../binutils-2.38.90/configure --quiet --enable-gold
130 If there are problems, fix them.
132 d. Upload the pre-release snapshot to the sourceware FTP site:
134 scp binutils-2.38.90.tar.xz sourceware.org:~ftp/pub/binutils/snapshots
135 ssh sourceware.org sha256sum ~ftp/pub/binutils/snapshots/binutils-2.38.90.tar.xz
137 e. Clean up the source directory again.
141 10. Tell the Translation Project where to find the new tarball.
142 <coordinator@translationproject.org>
143 qv: https://translationproject.org/html/maintainers.html
145 ------------------------------------------------------------------------
146 Dear Translation Project
148 The 2.39 release branch has been created for the GNU Binutils project.
150 A snapshot of the branch sources can be found here:
152 https://sourceware.org/pub/binutils/snapshots/binutils-2.38.90.tar.xz
154 We hope to make the official release of the sources on the <DATE>
155 although that could change if there are important bugs that need to
156 be fixed before the release.
157 ------------------------------------------------------------------------
159 11. Announce the availability of the snapshot and the branch on the
160 binutils mailing list. Set a date for when the release will
161 actually happen. Something like:
163 ------------------------------------------------------------------------
166 The <NEW_VERSION> branch has now been created:
168 git clone git://sourceware.org/git/binutils-gdb.git -b binutils-<NEW_VERSION>-branch
170 A snapshot of the sources is also available here:
172 https://sourceware.org/pub/binutils/snapshots/binutils-<OLD_VERSION>.90.tar.xz
174 Please could all patches for the branch be run by me.
175 The rules for the branch are:
178 * Target specific bug fixes are OK.
179 * Generic bug fixes are OK if they are important and widely tested.
180 * Documentation updates/fixes are OK.
181 * Translation updates are OK.
182 * Fixes for testsuite failures are OK.
184 Ideally I would like to make the release happen in two weeks time,
185 i.e. <DATE>. Which I hope will be enough time for everyone
186 to get their final fixes in.
187 ------------------------------------------------------------------------
189 12. Build various different toolchains, test them and nag
190 maintainers to fix any testsuite failures for their
193 ==============================================================================
195 When the time comes to actually make the release....
198 20. Make sure that the branch sources still build, test and install
199 correctly. Make sure that the sources are clean, without any
200 patch files (.reg .orig *~) left over.
205 21. a. Update the release number in bfd/version.m4 on the release
206 branch to a whole new minor version number, without a point
207 value. Eg "2.38.90" becomes "2.39".
209 b. Change bfd/development.sh to set all values to "false".
211 c. Regenerate the configure and makefiles. And *info* files.
213 d. Create a ChangeLog from the git refs for all of the commits
214 from when changelog entries were no longer required:
216 gitlog-to-changelog --since=2021-07-03 > ChangeLog.git
218 The gitlog-to-changelog script is part of the sources
219 of the "config" project.
221 e. Add ChangeLog entries for all of the updates and add a
222 "this-is-the-2.38-release" comment and commit.
224 22. Check that your file creation mask will create the
225 correct file permissions. Eg:
230 Remove any spurious autom4te.cache files left over from the
235 23. Note - check to see if any new files have been added to the top
236 level of the source directory, but which are not in the
237 DEVO_SUPPORT variable in the src-release.sh script. If they are
238 needed then add them. NB/ Add the new ChangeLog.git file.
240 Create the release tarballs:
242 ./src-release.sh -b -g -l -x binutils
244 24. Check that the files in the tarballs have the correct
247 tar tvf binutils-2.39.tar.bz2 | grep -e "---"
249 Also check that the man files are not empty. (cf PR 28144).
251 tar tvf binutils-2.39.tar.xz | grep -e "\.1"
253 25. Sanity check the release on x86_64-pc-linux-gnu by building and
254 running the testsuites (gas, gold, binutils and ld). Make the
255 source directory read-only before building. Also test
256 "make install". If necessary fix any problems.
261 tar xvf <path-to-sources>/binutils-2.*.tar.lz
262 chmod -R -w binutils-2.*
265 ../binutils-2.*/configure --quiet --enable-gold --prefix=`pwd`/install --enable-plugins --enable-shared
266 make all-gas all-gold all-ld all-binutils all-gprof all-gprofng
267 make check-gas check-binutils check-ld check-gold
268 make install-gas install-gold install-ld install-binutils
270 # Needed for step 29...
275 26. Tag the branch with the new release number:
276 [optional: add "-u XXXXX" to sign with a gpg key]
277 enter a tag message such as: "Official GNU Binutils 2.3x release"
279 git tag -a binutils-2_38 -u DD9E3C4F <=== Be careful to get the tag right
281 NB/ If you do sign the binaries make sure to use a key
282 that has been published with the FSF.
284 Then push the release:
286 git push origin binutils-2_3x
288 If you get an error message along the lines of:
289 "Invalid revision range ..." you can ignore it.
291 27. Upload the tarballs to ftp.gnu.org.
293 gnupload --to ftp.gnu.org:binutils binutils-2.3*.tar.*
295 Be prepared to provide the password for the key, if you
298 The gnupload script is in the gnulib/build-aux directory.
300 Check for an email response from the upload. If necessary
303 28. Upload the tarballs (and signatures) to sourceware.org:
306 cd /sourceware/ftp/pub/binutils/releases
307 put binutils-2.3*.tar.*
308 chmod 644 binutils-2.3x.tar.*
311 FIXME: Are the signatures (created by the gnupload script in step 27)
312 needed ? [The above commands upload them and nobody has complained,
313 so suggest that they are retained].
315 29. Update web pages. For sourceware.org:
317 Create a new documentation folder on the sourceware.org web
318 pages as /sourceware/www/sourceware/htdocs/binutils/docs-2.3x.
321 cd /sourceware/www/sourceware/htdocs/binutils
332 Update the (local copy of the) index.html file to point to the
333 new documentation and mention the new version and then upload it.
338 Make the html documentation locally with the "make html" command
339 (see step 25 above). Then upload and rename the directories as
340 needed. (sftp does not appear to support recursive uploads
341 however, so the directories had to be made by hand, as shown above).
344 lcd <build-dir>/gas/doc/as
345 put * {be patient - this takes a long time...}
351 lcd ../../bfd/doc/bfd
358 lcd ../../binutils/binutils <=== NB/ Path not like others
365 lcd ../../gprof/doc/gprof
379 Edit the top level binutils index.html file to change the links
380 to point to the new documentation.
390 Check that the new web page is correct:
392 https://sourceware.org/binutils/
394 For the www.gnu.org site you have to email webmasters@gnu.org
395 and ask them to make the change(s):
396 ---------------------------------------
399 Please could the GNU Binutils webpage at:
401 https://www.gnu.org/software/binutils/binutils.html
403 be updated to indicate that there is now a newer version available
404 (2.3x). I have already updated the related page on the sourceware
405 website so this might be useful as a template:
407 https://sourceware.org/binutils/
412 --------------------------------------
414 30. Send emails to binutils@sourceware.org, info-gnu@gnu.org and
415 David Edelsohn <dje.gcc@gmail.com> announcing the new release.
416 Sign the email and include the checksum:
418 sha256sum binutils-2.3*.tar.*
420 (The email to Davis is so that he can update the GNU Toolchain
421 social media). Something like this:
422 -----------------------------------------------------------------------
425 We are pleased to announce that version 2.3x of the GNU Binutils project
426 sources have been released and are now available for download at:
428 https://ftp.gnu.org/gnu/binutils
429 https://sourceware.org/pub/binutils/releases/
433 This release contains numerous bug fixes, and also the
434 following new features:
436 <extract info from the NEWS files>
438 Our thanks go out to all of the binutils contributors, past and
439 present, for helping to make this release possible.
441 -----------------------------------------------------------------------
443 31. Clean up the source tree:
447 32. Edit bfd/development.sh on the branch and set the development flag
448 to "true". (Leave the experimental flag set to "false"). Also bump
449 the version in bfd/version.m4 by adding a trailing .0, so that the
450 date suffix keeps the version lower than the trunk version.
451 Regenerate files. Commit these changes.
453 33. Email the binutils list telling everyone that the 2.3x branch
454 is now open for business as usual and that patches no longer
455 need special approval.
457 34. Examine the bfd/config.bfd file in the mainline sources and move
458 any pending obsolete targets into the definitely obsolete
459 section. Create a changelog entry and commit.
464 --------------------------------------------------------------------------
465 How to perform a POINT release.
466 --------------------------------------------------------------------------
468 A point release is easier than a normal release since a lot of the
469 work has already been done. The branch has been created, the
470 translations updated and the documentation uploaded. So the procedure
473 0. Decide that a point release is necessary.
475 Usually this only happens when a sufficient number of serious
476 bugs have been found and fixed since the previous release, and a
477 new official release is not imminent.
479 1. Tell the community that a point release is happening. Ask
480 maintainers to ensure that their ports are up to date on the
481 release branch. Ask the community if there are any bug fixes
482 which are missing from the branch. Allow some time for the
483 responses to this step.
485 2. Make sure that the branch sources build, test and install
488 2.5 Prepare a list of the bugs which have been fixed. This
489 will be needed for step 8.
491 3. In the branch sources:
493 a. Update the minor release number in bfd/version.m4.
494 b. Edit bfd/development.sh, set "development=false".
495 c. Regenerate the configure files.
496 d. Remove spurious autom4te.cache files:
500 e. Commit the updates along with a "this-is-the-2.3x.y-release"
501 note in all of the changelogs.
502 f. Tag the branch with the new release number:
504 git tag -a binutils-2_3x_y
505 [optional: add "-u XXXXX" to sign with a gpg key]
506 git push origin binutils-2_3x_y
508 g. Check that your file creation mask will create the
509 correct file permissions. Ie:
513 h. Create the release tarballs:
515 ./src-release -b -g -l -x binutils
517 i. Check that the files in the tarballs have the correct
520 j. Clean the source tree again
524 k. Edit bfd/development.sh and set "development=true".
525 l. Commit this change.
527 4. [If paranoid - upload the tarballs to one of the FTP servers and
528 ask people to test it before going on to step 5].
530 5. Upload the tarballs to ftp.gnu.org.
532 gnupload --to ftp.gnu.org:binutils binutils-*.tar.*
534 The gnupload script is in the gnulib/build-aux directory.
536 6. Upload the tarballs to sourceware.org:
539 cd /sourceware/ftp/pub/binutils/releases
541 chmod 644 binutils-*.tar.*
544 It is OK to upload the signatures as well.
546 7. Update web pages. For sourceware.org:
548 * Log on to sourceware.org
549 * Go to /sourceware/www/sourceware/htdocs/binutils
550 * Edit index.html and update the latest release number (if this is a latest release)
552 For the www.gnu.org site you have to email webmasters@gnu.org
553 and ask them to make the change(s).
555 8. Send an emails to the binutils list, info-gnu@gnu.org and
556 David Edelsohn <dje.gcc@gmail.com> announcing the new release.
557 (The email to Davis is so that he can update the GNU Toolchain
558 social media). Something like this:
560 ------------------------------------------------------------------------
563 We are pleased to announce that version 2.3x.y of the GNU Binutils
564 project sources have been released and are now available for download at:
566 https://ftp.gnu.org/gnu/binutils
567 https://sourceware.org/pub/binutils/releases/
569 This is a point release over the previous 2.3x version, containing bug
570 fixes but no new features.
572 Our thanks go out to all of the binutils contributors, past and
573 present, for helping to make this release possible.
575 Here is a list of the bugs that have been fixed:
580 --------------------------------------------------------------------------
582 9. Create a new Bugzilla entry for the point release.
584 https://sourceware.org/bugzilla/editversions.cgi?product=binutils
586 And a new milestone too:
588 https://sourceware.org/bugzilla/editmilestones.cgi?product=binutils
590 Copyright (C) 2017-2022 Free Software Foundation, Inc.
592 Copying and distribution of this file, with or without modification,
593 are permitted in any medium without royalty provided the copyright
594 notice and this notice are preserved.