README-how-to-make-a-release 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594
  1. README for MAKING BINUTILS RELEASES
  2. This is a collection of notes on how to perform a binutils release. A
  3. lot of this information can also be found in the maintain.texi file in
  4. the gnulib project:
  5. https://www.gnu.org/software/gnulib/
  6. It is useful to have a cloned copy of the sources of this project as
  7. it also contains an upload script used to install tarballs on the GNU
  8. FTP server.
  9. Make sure that you have upload authority on sourceware and fencepost.
  10. Beware - this is an involved process and can take weeks to complete.
  11. See the maintain.texi file for details on how to obtain these
  12. permissions.
  13. -------------------------------------------------
  14. How to perform a release.
  15. -------------------------------------------------
  16. 1. Send an email out warning contributors about the forthcoming
  17. branch. Set a date for the branch (weekends are better because
  18. they are less busy).
  19. 2. When the branch date is near: Update the libiberty and config
  20. directories and the top level Makefile and configure files. Also
  21. consider updating the toplevel libtool files.
  22. Approx time to complete from here: 2 hours ....
  23. 3. When branch day arrives add markers for the upcoming release to
  24. the NEWS files in gas, ld, and binutils. No need to update NEWS
  25. in the gold directory - it has its own release numbering.
  26. Likewise for the ChangeLog files in: bfd, binutils, config, cpu,
  27. elfcpp, gas, gold, gprof, gprofng, include, ld, libctf, libiberty, opcodes
  28. and toplevel.
  29. Add a note of the name of the new branch to binutils/BRANCHES.
  30. Commit these changes.
  31. 4. Create the release branch using:
  32. git branch binutils-2_39-branch
  33. git push origin binutils-2_39-branch
  34. If you get a message like:
  35. remote: fatal: Invalid revision range 0000000000000000000000000000000000000000..f974f26cb16cc6fe3946f163c787a05e713fb77b
  36. It appears that this can be ignored...
  37. 5. Make sure that the branch is there. IE check out the branch sources:
  38. git clone ssh://sourceware.org/git/binutils-gdb.git -b binutils-2_39-branch 2.39
  39. If you get a message about being in a "detached head" state, something
  40. has gone wrong...
  41. Keep the checked out sources - they are going to be needed in future
  42. steps.
  43. 6. Update "BINUTILS_BRANCH" in gdbadmin's crontab:
  44. Log in as gdbadmin on sourceware.org, and then:
  45. $ cd crontab
  46. $ vi crontab
  47. [change BINUTILS_BRANCH]
  48. $ cvs ci crontab
  49. $ crontab crontab
  50. If you do not have access to this account, please feel free to
  51. ask Joel Brobecker <brobecker AT adacore DOT com>.
  52. 7. Rename the current HEAD version entry in Bugzilla, and create a
  53. new one. E.g. rename "2.38 (HEAD)" to 2.38, and create
  54. "2.39 (HEAD)":
  55. https://sourceware.org/bugzilla/editversions.cgi?product=binutils
  56. 8. Update bfd/version.m4 on HEAD to indicate that is now a snapshot
  57. of the next release. Note if the release is going to be 2.39 then
  58. the version number on the branch is set to 2.38.90 - ie almost, but
  59. not quite at 2.39, and the version number on the mainline is set to
  60. 2.39.50 - ie half way to the next release after 2.39.
  61. So the branch bfd/version.m4 has:
  62. m4_define([BFD_VERSION], [2.38.90])
  63. and the mainline has:
  64. m4_define([BFD_VERSION], [2.39.50])
  65. Regenerate various files on both branch and HEAD by configuring
  66. with "--enable-maintainer-mode --enable-gold --enable-shared" and then building
  67. with "make all-binutils all-gas all-gold all-gprof all-gprofng all-ld"
  68. Add ChangeLog entries for the updated files. Commit the changes.
  69. Make sure that this includes the .pot files as well as the
  70. configure and makefiles.
  71. 9. Create an initial pre-release:
  72. a. Remove any auto-generated files, in order to force the
  73. src-release script to rebuild them.
  74. cd <branch-sources>
  75. git clean -fdx
  76. b. Create a source tarball of the BRANCH sources:
  77. ./src-release.sh -x binutils
  78. c. Build a test target using this tarball.
  79. cp binutils-2.38.90.tar.xz /dev/shm
  80. pushd /dev/shm
  81. tar xvf binutils-2.38.90.tar.xz
  82. mkdir build
  83. cd build
  84. ../binutils-2.38.90/configure --quiet --enable-gold
  85. make
  86. popd
  87. If there are problems, fix them.
  88. d. Upload the pre-release snapshot to the sourceware FTP site:
  89. scp binutils-2.38.90.tar.xz sourceware.org:~ftp/pub/binutils/snapshots
  90. ssh sourceware.org sha256sum ~ftp/pub/binutils/snapshots/binutils-2.38.90.tar.xz
  91. e. Clean up the source directory again.
  92. git clean -fdx
  93. 10. Tell the Translation Project where to find the new tarball.
  94. <coordinator@translationproject.org>
  95. qv: https://translationproject.org/html/maintainers.html
  96. ------------------------------------------------------------------------
  97. Dear Translation Project
  98. The 2.39 release branch has been created for the GNU Binutils project.
  99. A snapshot of the branch sources can be found here:
  100. https://sourceware.org/pub/binutils/snapshots/binutils-2.38.90.tar.xz
  101. We hope to make the official release of the sources on the <DATE>
  102. although that could change if there are important bugs that need to
  103. be fixed before the release.
  104. ------------------------------------------------------------------------
  105. 11. Announce the availability of the snapshot and the branch on the
  106. binutils mailing list. Set a date for when the release will
  107. actually happen. Something like:
  108. ------------------------------------------------------------------------
  109. Hi Everyone,
  110. The <NEW_VERSION> branch has now been created:
  111. git clone git://sourceware.org/git/binutils-gdb.git -b binutils-<NEW_VERSION>-branch
  112. A snapshot of the sources is also available here:
  113. https://sourceware.org/pub/binutils/snapshots/binutils-<OLD_VERSION>.90.tar.xz
  114. Please could all patches for the branch be run by me.
  115. The rules for the branch are:
  116. * No new features.
  117. * Target specific bug fixes are OK.
  118. * Generic bug fixes are OK if they are important and widely tested.
  119. * Documentation updates/fixes are OK.
  120. * Translation updates are OK.
  121. * Fixes for testsuite failures are OK.
  122. Ideally I would like to make the release happen in two weeks time,
  123. i.e. <DATE>. Which I hope will be enough time for everyone
  124. to get their final fixes in.
  125. ------------------------------------------------------------------------
  126. 12. Build various different toolchains, test them and nag
  127. maintainers to fix any testsuite failures for their
  128. architectures...
  129. ==============================================================================
  130. When the time comes to actually make the release....
  131. 20. Make sure that the branch sources still build, test and install
  132. correctly. Make sure that the sources are clean, without any
  133. patch files (.reg .orig *~) left over.
  134. cd <branch>
  135. git clean -fdx
  136. 21. a. Update the release number in bfd/version.m4 on the release
  137. branch to a whole new minor version number, without a point
  138. value. Eg "2.38.90" becomes "2.39".
  139. b. Change bfd/development.sh to set all values to "false".
  140. c. Regenerate the configure and makefiles. And *info* files.
  141. d. Create a ChangeLog from the git refs for all of the commits
  142. from when changelog entries were no longer required:
  143. gitlog-to-changelog --since=2021-07-03 > ChangeLog.git
  144. The gitlog-to-changelog script is part of the sources
  145. of the "config" project.
  146. e. Add ChangeLog entries for all of the updates and add a
  147. "this-is-the-2.38-release" comment and commit.
  148. 22. Check that your file creation mask will create the
  149. correct file permissions. Eg:
  150. % umask
  151. 22
  152. Remove any spurious autom4te.cache files left over from the
  153. reconfiguring:
  154. git clean -fdx
  155. 23. Note - check to see if any new files have been added to the top
  156. level of the source directory, but which are not in the
  157. DEVO_SUPPORT variable in the src-release.sh script. If they are
  158. needed then add them. NB/ Add the new ChangeLog.git file.
  159. Create the release tarballs:
  160. ./src-release.sh -b -g -l -x binutils
  161. 24. Check that the files in the tarballs have the correct
  162. permissions.
  163. tar tvf binutils-2.39.tar.bz2 | grep -e "---"
  164. Also check that the man files are not empty. (cf PR 28144).
  165. tar tvf binutils-2.39.tar.xz | grep -e "\.1"
  166. 25. Sanity check the release on x86_64-pc-linux-gnu by building and
  167. running the testsuites (gas, gold, binutils and ld). Make the
  168. source directory read-only before building. Also test
  169. "make install". If necessary fix any problems.
  170. pushd /dev/shm
  171. mkdir delme
  172. cd delme
  173. tar xvf <path-to-sources>/binutils-2.*.tar.lz
  174. chmod -R -w binutils-2.*
  175. mkdir build
  176. cd build
  177. ../binutils-2.*/configure --quiet --enable-gold --prefix=`pwd`/install --enable-plugins --enable-shared
  178. make all-gas all-gold all-ld all-binutils all-gprof all-gprofng
  179. make check-gas check-binutils check-ld check-gold
  180. make install-gas install-gold install-ld install-binutils
  181. # Needed for step 29...
  182. make html pdf
  183. popd
  184. 26. Tag the branch with the new release number:
  185. [optional: add "-u XXXXX" to sign with a gpg key]
  186. enter a tag message such as: "Official GNU Binutils 2.3x release"
  187. git tag -a binutils-2_38 -u DD9E3C4F <=== Be careful to get the tag right
  188. NB/ If you do sign the binaries make sure to use a key
  189. that has been published with the FSF.
  190. Then push the release:
  191. git push origin binutils-2_3x
  192. If you get an error message along the lines of:
  193. "Invalid revision range ..." you can ignore it.
  194. 27. Upload the tarballs to ftp.gnu.org.
  195. gnupload --to ftp.gnu.org:binutils binutils-2.3*.tar.*
  196. Be prepared to provide the password for the key, if you
  197. signed the binaries.
  198. The gnupload script is in the gnulib/build-aux directory.
  199. Check for an email response from the upload. If necessary
  200. fix any problems.
  201. 28. Upload the tarballs (and signatures) to sourceware.org:
  202. sftp sourceware.org
  203. cd /sourceware/ftp/pub/binutils/releases
  204. put binutils-2.3*.tar.*
  205. chmod 644 binutils-2.3x.tar.*
  206. quit
  207. FIXME: Are the signatures (created by the gnupload script in step 27)
  208. needed ? [The above commands upload them and nobody has complained,
  209. so suggest that they are retained].
  210. 29. Update web pages. For sourceware.org:
  211. Create a new documentation folder on the sourceware.org web
  212. pages as /sourceware/www/sourceware/htdocs/binutils/docs-2.3x.
  213. sftp sourceware.org
  214. cd /sourceware/www/sourceware/htdocs/binutils
  215. mkdir docs-2.3x
  216. cd docs-2.3x
  217. mkdir as
  218. mkdir bfd
  219. mkdir binutils
  220. mkdir gprof
  221. mkdir ld
  222. cd ../docs-2.3(x-1)
  223. get index.html
  224. Update the (local copy of the) index.html file to point to the
  225. new documentation and mention the new version and then upload it.
  226. cd ../docs-2.3x
  227. put index.html
  228. Make the html documentation locally with the "make html" command
  229. (see step 25 above). Then upload and rename the directories as
  230. needed. (sftp does not appear to support recursive uploads
  231. however, so the directories had to be made by hand, as shown above).
  232. cd as
  233. lcd <build-dir>/gas/doc/as
  234. put * {be patient - this takes a long time...}
  235. lcd ..
  236. cd ..
  237. put as.html
  238. put as.pdf
  239. cd bfd
  240. lcd ../../bfd/doc/bfd
  241. put *
  242. cd ..
  243. lcd ..
  244. put bfd.html
  245. put bfd.pdf
  246. cd binutils
  247. lcd ../../binutils/binutils <=== NB/ Path not like others
  248. put *
  249. cd ..
  250. lcd ../doc
  251. put binutils.html
  252. put binutils.pdf
  253. cd gprof
  254. lcd ../../gprof/doc/gprof
  255. put *
  256. cd ..
  257. lcd ../..
  258. put gprof.html
  259. put gprof.pdf
  260. cd ld
  261. lcd ../ld/doc/ld
  262. put *
  263. cd ..
  264. lcd ../..
  265. put ld.html
  266. put ld.pdf
  267. Edit the top level binutils index.html file to change the links
  268. to point to the new documentation.
  269. cd ../..
  270. get index.html
  271. [edit]
  272. put index.html
  273. rm docs
  274. ln -s docs-2.3x docs
  275. quit
  276. Check that the new web page is correct:
  277. https://sourceware.org/binutils/
  278. For the www.gnu.org site you have to email webmasters@gnu.org
  279. and ask them to make the change(s):
  280. ---------------------------------------
  281. Hi FSF Webmasters,
  282. Please could the GNU Binutils webpage at:
  283. https://www.gnu.org/software/binutils/binutils.html
  284. be updated to indicate that there is now a newer version available
  285. (2.3x). I have already updated the related page on the sourceware
  286. website so this might be useful as a template:
  287. https://sourceware.org/binutils/
  288. Thanks very much.
  289. Cheers
  290. --------------------------------------
  291. 30. Send emails to binutils@sourceware.org, info-gnu@gnu.org and
  292. David Edelsohn <dje.gcc@gmail.com> announcing the new release.
  293. Sign the email and include the checksum:
  294. sha256sum binutils-2.3*.tar.*
  295. (The email to Davis is so that he can update the GNU Toolchain
  296. social media). Something like this:
  297. -----------------------------------------------------------------------
  298. Hi Everyone,
  299. We are pleased to announce that version 2.3x of the GNU Binutils project
  300. sources have been released and are now available for download at:
  301. https://ftp.gnu.org/gnu/binutils
  302. https://sourceware.org/pub/binutils/releases/
  303. checksums: xxxx
  304. This release contains numerous bug fixes, and also the
  305. following new features:
  306. <extract info from the NEWS files>
  307. Our thanks go out to all of the binutils contributors, past and
  308. present, for helping to make this release possible.
  309. -----------------------------------------------------------------------
  310. 31. Clean up the source tree:
  311. git clean -fdx .
  312. 32. Edit bfd/development.sh on the branch and set the development flag
  313. to "true". (Leave the experimental flag set to "false"). Also bump
  314. the version in bfd/version.m4 by adding a trailing .0, so that the
  315. date suffix keeps the version lower than the trunk version.
  316. Regenerate files. Commit these changes.
  317. 33. Email the binutils list telling everyone that the 2.3x branch
  318. is now open for business as usual and that patches no longer
  319. need special approval.
  320. 34. Examine the bfd/config.bfd file in the mainline sources and move
  321. any pending obsolete targets into the definitely obsolete
  322. section. Create a changelog entry and commit.
  323. --------------------------------------------------------------------------
  324. How to perform a POINT release.
  325. --------------------------------------------------------------------------
  326. A point release is easier than a normal release since a lot of the
  327. work has already been done. The branch has been created, the
  328. translations updated and the documentation uploaded. So the procedure
  329. looks like this:
  330. 0. Decide that a point release is necessary.
  331. Usually this only happens when a sufficient number of serious
  332. bugs have been found and fixed since the previous release, and a
  333. new official release is not imminent.
  334. 1. Tell the community that a point release is happening. Ask
  335. maintainers to ensure that their ports are up to date on the
  336. release branch. Ask the community if there are any bug fixes
  337. which are missing from the branch. Allow some time for the
  338. responses to this step.
  339. 2. Make sure that the branch sources build, test and install
  340. correctly.
  341. 2.5 Prepare a list of the bugs which have been fixed. This
  342. will be needed for step 8.
  343. 3. In the branch sources:
  344. a. Update the minor release number in bfd/version.m4.
  345. b. Edit bfd/development.sh, set "development=false".
  346. c. Regenerate the configure files.
  347. d. Remove spurious autom4te.cache files:
  348. git clean -fdx
  349. e. Commit the updates along with a "this-is-the-2.3x.y-release"
  350. note in all of the changelogs.
  351. f. Tag the branch with the new release number:
  352. git tag -a binutils-2_3x_y
  353. [optional: add "-u XXXXX" to sign with a gpg key]
  354. git push origin binutils-2_3x_y
  355. g. Check that your file creation mask will create the
  356. correct file permissions. Ie:
  357. umask 022
  358. h. Create the release tarballs:
  359. ./src-release -b -g -l -x binutils
  360. i. Check that the files in the tarballs have the correct
  361. permissions.
  362. j. Clean the source tree again
  363. git clean -fdx
  364. k. Edit bfd/development.sh and set "development=true".
  365. l. Commit this change.
  366. 4. [If paranoid - upload the tarballs to one of the FTP servers and
  367. ask people to test it before going on to step 5].
  368. 5. Upload the tarballs to ftp.gnu.org.
  369. gnupload --to ftp.gnu.org:binutils binutils-*.tar.*
  370. The gnupload script is in the gnulib/build-aux directory.
  371. 6. Upload the tarballs to sourceware.org:
  372. sftp sourceware.org
  373. cd /sourceware/ftp/pub/binutils/releases
  374. put binutils-*.tar.*
  375. chmod 644 binutils-*.tar.*
  376. quit
  377. It is OK to upload the signatures as well.
  378. 7. Update web pages. For sourceware.org:
  379. * Log on to sourceware.org
  380. * Go to /sourceware/www/sourceware/htdocs/binutils
  381. * Edit index.html and update the latest release number (if this is a latest release)
  382. For the www.gnu.org site you have to email webmasters@gnu.org
  383. and ask them to make the change(s).
  384. 8. Send an emails to the binutils list, info-gnu@gnu.org and
  385. David Edelsohn <dje.gcc@gmail.com> announcing the new release.
  386. (The email to Davis is so that he can update the GNU Toolchain
  387. social media). Something like this:
  388. ------------------------------------------------------------------------
  389. Hi Everyone,
  390. We are pleased to announce that version 2.3x.y of the GNU Binutils
  391. project sources have been released and are now available for download at:
  392. https://ftp.gnu.org/gnu/binutils
  393. https://sourceware.org/pub/binutils/releases/
  394. This is a point release over the previous 2.3x version, containing bug
  395. fixes but no new features.
  396. Our thanks go out to all of the binutils contributors, past and
  397. present, for helping to make this release possible.
  398. Here is a list of the bugs that have been fixed:
  399. xx
  400. xx
  401. xx
  402. xx
  403. --------------------------------------------------------------------------
  404. 9. Create a new Bugzilla entry for the point release.
  405. https://sourceware.org/bugzilla/editversions.cgi?product=binutils
  406. And a new milestone too:
  407. https://sourceware.org/bugzilla/editmilestones.cgi?product=binutils
  408. Copyright (C) 2017-2022 Free Software Foundation, Inc.
  409. Copying and distribution of this file, with or without modification,
  410. are permitted in any medium without royalty provided the copyright
  411. notice and this notice are preserved.