md__2home_...e_2HACKING(3)
π md__2home_...e_2HACKING π
section 3 Β· Library Functions Manual Β· bestie edition
okay so this is the maintenance + release checklist page, and it's giving β¨project-maintainer main character energyβ¨. if you're the one keeping libConfuse alive, this is your bible. no cap.
πΈ NAME πΈ
md__2home_2runner_2work_2libconfuse_2libconfuse_2HACKING β Maintenance and Release Checklist
like, it's literally the whole vibe: how to keep the project tidy and how to ship a release without losing your mind. π«Ά
π§ Maintenance π§
day-to-day upkeep, the lowkey stuff that keeps everything slaying:
- Encourage contributors to write tests, especially for new features. tests are the moment, fr fr.
- Run tests regularly β GitHub Actions CI does this automatically, so she's already on it π
- Leverage GitHub issues for milestone planning (issues = the group chat for planning)
- Reference issues from GitHub pull requests to alert issue subscribers π
- Bump library ABI version just before release! like, right before, not randomly, bestie.
π Release Checklist π
roughly in the order they need doing (yes, order matters, do not freestyle):
- Finalize the ChangeLog entry, follow
http://keepachangelog.com/loosely π- Inform users in plain language of changes and bug fixes π£οΈ
- Do not copy-paste GIT commit logs! nobody wants that π
- Order entries according to importance, most relevant first β
- Date-stamp the top
[vX.Y][UNRELEASED]heading, point its link at the release range (vX.Y-1...vX.Y), and open a fresh[UNRELEASED]section ποΈ - The release workflow uses this top entry as the GitHub release notes π
- Bump the package version in
configure.ac:AC_INIT X.Y-dev -> X.Y(this also sets thelibconfuse.pcversion through@VERSION@) π’ - Bump the library ABI
-version-infoinsrc/Makefile.am, see the rules in Library Versioning below β¬οΈ - Refresh translations:
make -C po update-poπ - Verify the build:
make checkandmake distcheckβ- confirm every CI workflow is green: Linux, macOS, MSYS2, ASan, distcheck π
- Make at least one
-rcNrelease and test it in an actual real project π§ͺ (real project, not vibes) - Tag, signed and annotated:
git tag -s -a vX.Yπ·οΈ - Push the last commit(s) and the tag to GitHub π
The tag push triggers the Release General workflow, which builds the distribution tarballs and the Windows ZIP, and creates the GitHub release using the top ChangeLog entry as the release notes. iconic behaviour, honestly. π
Afterwards, bump configure.ac to the next X.Y+1-dev and open a fresh [UNRELEASED] section in the ChangeLog so master moves on. π
π¦ Library Versioning π¦
LibConfuse relies on GNU Libtool for building the library. For a user of the library it is important to maintain a clear ABI versioning scheme. This is not the same as the libConfuse version, but rather the library's "compatibility level". iykyk.
The libConfuse ABI version is specified in src/Makefile.am and looks like this:
libconfuse_la_LDFLAGS = -version-info 0:0:0
\ \ `-- age
\ `--- revision
`---- current
It must be updated according to the GNU Libtool recommendations:
- Start with version information of
0:0:0for each libtool library. - Update the version information only immediately before a public release of your software. More frequent updates are unnecessary, and only guarantee that the current interface number gets larger faster. πββοΈπ¨
- If the library source code has changed at all since the last update, then increment revision (
c:r:abecomesc:r+1:a). - If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to
0. - If any interfaces have been added since the last public release, then increment age.
- If any interfaces have been removed or changed since the last public release, then set age to
0.
The libtool ABI versioning logic is very confusing but works if you just disable your brain and follow the rules, one by one. π no thoughts, head empty, just follow the rules bestie.
Example #1: a new function has been added, none of the existing ones have changed. The initial version is 1:0:0, we follow the rules above to the letter: increase revision, increase current and set revision to zero, and finally increase age. This, rather confusingly, gives us 2:0:1 which libtool then translates to libconfuse.so.1.1.0. π€―
Example #2: some existing functions are changed, they now return an int instead of void. The initial version is 0:0:0, and we follow the rules again: increment revision, increment current and set revision to zero, set age to zero. This gives us 1:0:0, which is then translated to libconfuse.so.1.0.0. β¨
π Note π
Usually, non-developers have no interest in running development versions (releases are frequent enough), and developers are expected to know how to juggle versions. In such an ideal world, it is good enough to bump the library version just prior to a release, point 2. π
However, if releases are few and far between, distributors may start to use snapshots. When a distributor uses a snapshot, the distributor has to handle the library version manually. Things can get ugly when the distributor has released an intermediate version with a bumped library version, and when the official release is bumped to that version, the distributor will then have to bump the library version for the official release, and it can be confusing if someone reports bugs on versions that you didn't even know existed. ππ
The problem with bumping the version with every change is that if your interface is not finished, the version number might run away, and it looks pretty bad if a library is at version 262. It kind of tells the user that the library interface is volatile, which is not good for business. π not the 262 arc, please.
and that's the whole page, bestie β go forth and release responsibly π«Ά
this was libConfuse, Version 3.4. mwah, bye π
π¦ where this page comes from
- fedora 43: libconfuse 3.4-1.fc43 Β· ISC
- fedora 43: libconfuse 3.4-1.fc43 Β· ISC
- fedora 44: libconfuse 3.4-1.fc44 Β· ISC
- fedora 44: libconfuse 3.4-1.fc44 Β· ISC
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms