release_method(3avr)

πŸ“¦
version 2.0.0+Atmel3.7.0 Β· 2 versions
, in ubuntu noble

πŸ’– NAME πŸ’–

release_method β€” Release Numbering and Methodology, bestie. This is the avr-libc page release_method(3avr), and it's literally the whole lore of how this library gets numbered and shipped. Grab a snack, we're going behind the scenes. 🎬


🌈 Release Version Numbering Scheme 🌈

Okay so first thing: release numbers have three parts β€” a major number, a minor number, and a revision number β€” and each one is separated by a dot. Periodt. πŸ’…

The major number is currently 2, and the reason is that the multilib layout got adapted to the fairly different one used starting with AVR-GCC version 5. But ngl, it's still believed to be generally API-compatible with release versions 1.x. So like, glow-up on the outside, same soul on the inside. πŸ¦‹

Now for the history lesson, because it's giving drama. In the past (up to 1.6.x), even minor numbers meant 'stable' releases, and odd minor numbers were reserved for development branches/versions. The way that the latter was never really used... πŸ’€ and maintaining a stable branch that eventually became effectively the same as the development version proved to be just a cumbersome and tedious job. So that scheme got given up in early 2010. Starting with 1.7.0, every minor number will be used. Minor numbers get bumped upon judgement of the development team, whenever it seems appropriate β€” but at least in cases where some API was changed. Not me explaining branch policy like it's a group chat receipt. πŸ™ˆ

Starting with version 1.4.0, a file <avr/version.h> indicates the library version of an installed library tree. Iconic little file, does so much. ✨


πŸ”₯ Releasing AVR Libc πŸ”₯

Heads up bestie: the info in this section is only relevant to AVR Libc developers and can be ignored by end users. If that's not you, you can scroll away guilt-free. 🫢

Note β€” In what follows, I assume you know how to use SVN and how to checkout multiple source trees in a single directory without having them clobber each other. If you don't know how to do this, you probably shouldn't be making releases or cutting branches. No cap, this is the vibe check. 🚨

πŸŽ€ Creating an SVN branch πŸŽ€

The following steps should be taken to cut a branch in SVN (assuming $username is set to your savannah username):

  1. Check out a fresh source tree from SVN trunk.
  2. Update the NEWS file with pending release number and commit to SVN trunk:

Change Changes since avr-libc-<last_release>: to Changes in avr-libc-<this_relelase>.

  1. Set the branch-point tag (setting <major> and <minor> accordingly):
svn copy svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/trunk svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/tags/avr-libc-<major>_<minor>-branchpoint
  1. Create the branch:
svn copy svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/trunk svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/branches/avr-libc-<major>_<minor>-branch
  1. Update the package version in configure.ac and commit configure.ac to SVN trunk:

Change minor number to next odd value.

  1. Update the NEWS file and commit to SVN trunk:

Add Changes since avr-libc-<this_release>:

  1. Check out a new tree for the branch:
svn co svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/branches/avr-libc-<major>_<minor>-branch
  1. Update the package version in configure.ac and commit configure.ac to SVN branch:

Change the patch number to 90 to denote that this now a branch leading up to a release. Be sure to leave the <date> part of the version.

  1. Bring the build system up to date by running bootstrap and configure.
  2. Perform a 'make distcheck' and make sure it succeeds. This will create the snapshot source tarball. This should be considered the first release candidate. ✨
  3. Upload the snapshot tarball to savannah.
  4. Update the bug tracker interface on Savannah: Bugs ---> Edit field values ---> Release / Fixed Release
  5. Announce the branch and the branch tag to the avr-libc-dev list so other developers can checkout the branch.

πŸ’œ Making a release πŸ’œ

A stable release will only be done on a branch, not from the SVN trunk. Say it with me. πŸ“’

The following steps should be taken when making a release:

  1. Make sure the source tree you are working from is on the correct branch:
svn switch svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/branches/avr-libc-<major>_<minor>-branch
  1. Update the package version in configure.ac and commit it to SVN.
  2. Update the gnu tool chain version requirements in the README and commit to SVN.
  3. Update the ChangeLog file to note the release and commit to SVN on the branch:

Add Released avr-libc-<this_release>.

  1. Update the NEWS file with pending release number and commit to SVN:

Change Changes since avr-libc-<last_release>: to Changes in avr-libc-<this_relelase>:.

  1. Bring the build system up to date by running bootstrap and configure.
  2. Perform a 'make distcheck' and make sure it succeeds. This will create the source tarball. πŸ”₯
  3. Tag the release:
svn copy . svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/tags/avr-libc-<major>_<minor>_<patch>-release

or

svn copy svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/branches/avr-libc-<major>_<minor>-branch svn+ssh://$username@svn.savannah.nongnu.org/avr-libc/tags/avr-libc-<major>_<minor>_<patch>-release
  1. Upload the tarball to savannah.
  2. Update the NEWS file, and commit to SVN:

Add Changes since avr-libc-<major>_<minor>_<patch>:

  1. Update the bug tracker interface on Savannah: Bugs ---> Edit field values ---> Release / Fixed Release
  2. Generate the latest documentation and upload to savannah.
  3. Announce the release. πŸŽ‰ main character moment fr fr.

The following hypothetical diagram should help clarify version and branch relationships. πŸ‘‘


And that's a wrap on release_method(3avr) from avr-libc! This whole page came to you courtesy of Version 2.0.0, dated Fri Nov 24 2023 23:59:10, and honestly? Slay. Timestamped, archived, iconic. πŸ’–βœ¨ Go cut a branch, bestie. πŸŽ€

πŸ“¦ where this page comes from