Skip to content

fix(release): move WFWEB_VERSION into a header so bumps actually rebuild#65

Merged
adecarolis merged 2 commits into
masterfrom
fix/version-header
May 9, 2026
Merged

fix(release): move WFWEB_VERSION into a header so bumps actually rebuild#65
adecarolis merged 2 commits into
masterfrom
fix/version-header

Conversation

@adecarolis

Copy link
Copy Markdown
Owner

Summary

  • Move `WFWEB_VERSION` from a `-D` flag in `wfweb.pro` to `include/wfweb_version.h`, and add it to `HEADERS` so qmake emits a real dependency. Make's header-dep tracking now forces a rebuild of every consumer when the version is bumped.
  • Bumps to v0.7.2 to ship a binary where the version is self-consistent across the splash, `--version`, FreeDV Reporter auth, and PSK Reporter spots.

Why

v0.7.1 was a `DEFINES`-only change. Make tracks file mtimes, not compiler flags, so `make` after the bump rebuilt nothing — except for files whose mtimes happened to change for unrelated reasons. Result: `webserver.o` / `main.o` were rebuilt with WFWEB_VERSION="0.7.1" while `freedvreporter.o` / `pskreporter.o` stayed compiled against "0.7.0". The splash showed v0.7.1 but the FreeDV Reporter session announced `wfweb 0.7.0`. `strings -e l freedvreporter.o` confirmed the stale UTF-16 literal in the .o.

Changes

  • New: `include/wfweb_version.h` — single source of truth, named `wfweb_version.h` (not `version.h`) because `resources/direwolf/src/version.h` sits earlier on the include path and would shadow ours.
  • `wfweb.pro`: drops the `WFWEB_VERSION` `DEFINES` line; adds the new header to `HEADERS`.
  • `src/{freedvreporter,webserver,pskreporter,main}.cpp`: `#include "wfweb_version.h"`.
  • `tools/build-static.sh` and `.github/workflows/build.yml` (3 grep sites): read the version from the header instead of `wfweb.pro`.
  • `.claude/commands/release.md`: release flow now edits the header, with a back-reference to the v0.7.1 incident.
  • `CHANGELOG`: v0.7.2 entry.

Test plan

  • Clean rebuild (`make clean && qmake && make`) succeeds
  • `./wfweb --version` reports `0.7.2`
  • Every `0.7.x` literal in the binary is `0.7.2` (verified across `strings -e {s,b,l,B,L}` encodings — no stale 0.7.0 / 0.7.1 anywhere)
  • Header-dep tracking works: `touch include/wfweb_version.h && make` triggers rebuild of the four consumers and relinks `wfweb`
  • Both grep patterns (`tools/build-static.sh`, `.github/workflows/build.yml`) extract `0.7.2` from the header
  • Confirm in real session that FreeDV Reporter announces `wfweb 0.7.2` (requires running build against qso.freedv.org)

🤖 Generated with Claude Code

adecarolis and others added 2 commits May 8, 2026 20:05
Bumping WFWEB_VERSION via a -D flag in wfweb.pro silently leaves stale
.o files behind: Make tracks file mtimes, not changes to compiler flags.
v0.7.1 hit this — webserver.o and main.o happened to rebuild from
unrelated touches and embedded "0.7.1", but freedvreporter.o /
pskreporter.o stayed at "0.7.0", so the splash showed v0.7.1 while the
FreeDV Reporter session announced wfweb 0.7.0.

Move the macro to include/wfweb_version.h, add it to HEADERS so qmake
emits a real dependency, and #include it from the four consumers
(freedvreporter, pskreporter, webserver, main). Touching the header now
forces every consumer to rebuild and the binary version stays
self-consistent across all surfaces.

Named wfweb_version.h, not version.h, because resources/direwolf/src
ships its own version.h earlier on the include path and would shadow
ours.

Updated tools/build-static.sh and .github/workflows/build.yml (3 jobs)
to grep the new file, and rewrote .claude/commands/release.md so future
release work points at the header. Bumps to v0.7.2.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
#64 (rigctld) and #63 (CW decoder leaves CW) both landed on master after
this branch was cut. Roll their entries into the v0.7.2 section so the
final release notes cover everything shipping in 0.7.2, not just the
version-header fix.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@adecarolis adecarolis force-pushed the fix/version-header branch from 7be47a3 to 4587848 Compare May 9, 2026 00:06
@adecarolis adecarolis merged commit 4db5d91 into master May 9, 2026
@adecarolis adecarolis deleted the fix/version-header branch May 9, 2026 00:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant