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>
MAKE_FLAGS+= \
NO_DEBUG_MESSAGES=1 \
+ VERS="$(PKG_VERSION)" \
OS="linux" \
DESTDIR="$(PKG_INSTALL_DIR)" \
STRIP="true" \
case "$PKG_NAME" in
olsrd)
- # The version of olsrd is derived from the source date and git
- # hash, which the binary does not report. Check that the binary
- # starts and prints its version banner instead.
- olsrd -v 2>&1 | grep -F "olsr.org"
+ olsrd -v 2>&1 | grep -F "$PKG_VERSION"
;;
olsrd-mod-*)