[Buildroot] [git commit branch/2023.02.x] package/earlyoom: unhardcode package version in CFLAGS

Peter Korsgaard peter at korsgaard.com
Wed Jun 14 09:22:53 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=cc7beaea3d51ccf117189c83dec1aeba7ef488ea
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.02.x

'earlyoom --help' still says 'earlyoom 1.6' though it's already
version 1.7. '-DVERSION' flag value should be either unhardcoded,
either updated with each package version bump.

Signed-off-by: Sergey Bobrenok <SIBobrenok at sberdevices.ru>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
(cherry picked from commit 239dd7dcbda1b2c86a29491158fa089e06efca33)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/earlyoom/earlyoom.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/earlyoom/earlyoom.mk b/package/earlyoom/earlyoom.mk
index c7042a054e..808b9c49fa 100644
--- a/package/earlyoom/earlyoom.mk
+++ b/package/earlyoom/earlyoom.mk
@@ -11,7 +11,7 @@ EARLYOOM_LICENSE_FILES = LICENSE
 
 EARLYOOM_BUILD_TARGETS = earlyoom.service earlyoom
 EARLYOOM_INSTALL_TARGETS = install-default install-bin
-EARLYOOM_CFLAGS = '$(TARGET_CFLAGS) -std=gnu99 -DVERSION=\"1.6\"'
+EARLYOOM_CFLAGS = '$(TARGET_CFLAGS) -std=gnu99 -DVERSION=\"$(EARLYOOM_VERSION)\"'
 
 EARLYOOM_MAKE_OPTS = \
 	$(TARGET_CONFIGURE_OPTS) \



More information about the buildroot mailing list