download: don't overwrite VERSION variable
authorPaul Spooren <mail@aparcar.org>
Wed, 17 Apr 2024 05:07:41 +0000 (07:07 +0200)
committerPaul Spooren <mail@aparcar.org>
Mon, 29 Apr 2024 06:39:25 +0000 (08:39 +0200)
commit9fc79e2e262270470397f907704689915ec368b6
tree35090d324ab05bc237a017c690fd4a4ea1dc9731
parenteec18118d02fa5d095cb4035c42187e487d0e68c
download: don't overwrite VERSION variable

In package-defaults.mk the VERSION variable contains the final package
version, which is a combination of `PKG_VERSION`, `PKG_RELEASE` and if
used, parameters of `PKG_SOURCE_VERSION`. While this works fine for
building, within the package Makefile the content VERSION varies:

When building a package from a release tarball, the content of VERSION
contains the actual package version, however when building from source
(i.e. Git), the VERSION is overwritten by `PKG_SOURCE_VERSION`.

To fix the overwrite, this commit switches from `VERSION` in download.mk
to `SOURCE_VERSION` which isn't used anywhere else yet.

As a result, Makefiles may pass the package version to be included
inside the binary.

Signed-off-by: Paul Spooren <mail@aparcar.org>
include/download.mk