]> git.99rst.org Git - openwrt-packages.git/commit
olsrd: report the packaged version in the binary
authorJosef Schlehofer <redacted>
Thu, 6 Aug 2026 12:21:13 +0000 (14:21 +0200)
committerNick Hainke <redacted>
Thu, 13 Aug 2026 21:21:19 +0000 (23:21 +0200)
commit9c79e6bed31119abc517612ddb8a35af616b0d35
tree290b19aa10c4665c4a233fa97db2d5de95ea1dfa
parentd52765005c75b829ae3b75ee27ac79e8da847723
olsrd: report the packaged version in the binary

olsrd builds its version banner from the VERS make variable, which
defaults to the upstream development version "pre-0.9.9", so
`olsrd -v` never mentioned the version the package was built from.
The source tarball carries no git metadata either, so the git hash
in that string is always zero:

    olsr.org - pre-0.9.9-git_0000000-hash_5fd8976...

Pass PKG_VERSION as VERS, the same way alfred and batctl already
pass REVISION, so the banner identifies the packaged revision. This
also lets test-version.sh check the real version instead of merely
confirming that the binary starts.

Signed-off-by: Josef Schlehofer <redacted>
Co-authored-by: Claude Fable 5 <redacted>
net/olsrd/Makefile
net/olsrd/test-version.sh
git clone https://git.99rst.org/PROJECT