Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script
@ 2023-05-29 13:43 Sergey Bobrenok via buildroot
  2023-05-29 13:44 ` [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message " Sergey Bobrenok via buildroot
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Sergey Bobrenok via buildroot @ 2023-05-29 13:43 UTC (permalink / raw)
  To: buildroot@buildroot.org; +Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

earlyoom.mk file explicitly sets 'PREFIX=/usr', and the init script
fails to start earlyoom because of a nonexistent executable path:

  # /etc/init.d/S02earlyoom start
  start-stop-daemon: unable to stat /bin/earlyoom (No such file or directory)
  FAIL

Signed-off-by: Sergey Bobrenok <SIBobrenok@sberdevices.ru>
---
 package/earlyoom/S02earlyoom | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/earlyoom/S02earlyoom b/package/earlyoom/S02earlyoom
index c02495af90..35624f3c72 100644
--- a/package/earlyoom/S02earlyoom
+++ b/package/earlyoom/S02earlyoom
@@ -9,7 +9,7 @@ EARLYOOM_ARGS=""
 
 start() {
 	printf() 'Starting %s: ' "$DAEMON"
-	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/bin/$DAEMON" \
+	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
 	       -- $EARLYOOM_ARGS
 	status=$?
 	if [ "$status" -eq 0 ]; then

base-commit: c765ac9c02dbddd53cf6813cf59c8f265b043caf
-- 
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message in the init script
  2023-05-29 13:43 [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script Sergey Bobrenok via buildroot
@ 2023-05-29 13:44 ` Sergey Bobrenok via buildroot
  2023-06-02 19:25   ` Peter Korsgaard
  2023-06-14  9:23   ` Peter Korsgaard
  2023-05-29 13:44 ` [Buildroot] [PATCH 3/3] package/earlyoom: unhardcode package version in CFLAGS Sergey Bobrenok via buildroot
                   ` (2 subsequent siblings)
  3 siblings, 2 replies; 9+ messages in thread
From: Sergey Bobrenok via buildroot @ 2023-05-29 13:44 UTC (permalink / raw)
  To: buildroot@buildroot.org; +Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

'/etc/init.d/S02earlyoom start' simply prints 'OK' instead of
'Starting earlyoom: OK' because of a typo in the printf function call.

Signed-off-by: Sergey Bobrenok <SIBobrenok@sberdevices.ru>
---
 package/earlyoom/S02earlyoom | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/package/earlyoom/S02earlyoom b/package/earlyoom/S02earlyoom
index 35624f3c72..ac1734109e 100644
--- a/package/earlyoom/S02earlyoom
+++ b/package/earlyoom/S02earlyoom
@@ -8,7 +8,7 @@ EARLYOOM_ARGS=""
 [ -r "/etc/default/$DAEMON" ] && . "/etc/default/$DAEMON"
 
 start() {
-	printf() 'Starting %s: ' "$DAEMON"
+	printf 'Starting %s: ' "$DAEMON"
 	start-stop-daemon -b -m -S -q -p "$PIDFILE" -x "/usr/bin/$DAEMON" \
 	       -- $EARLYOOM_ARGS
 	status=$?
-- 
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [Buildroot] [PATCH 3/3] package/earlyoom: unhardcode package version in CFLAGS
  2023-05-29 13:43 [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script Sergey Bobrenok via buildroot
  2023-05-29 13:44 ` [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message " Sergey Bobrenok via buildroot
@ 2023-05-29 13:44 ` Sergey Bobrenok via buildroot
  2023-06-02 19:25   ` Peter Korsgaard
  2023-06-14  9:23   ` Peter Korsgaard
  2023-06-02 19:25 ` [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script Peter Korsgaard
  2023-06-14  9:23 ` Peter Korsgaard
  3 siblings, 2 replies; 9+ messages in thread
From: Sergey Bobrenok via buildroot @ 2023-05-29 13:44 UTC (permalink / raw)
  To: buildroot@buildroot.org; +Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

'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@sberdevices.ru>
---
 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) \
-- 
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script
  2023-05-29 13:43 [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script Sergey Bobrenok via buildroot
  2023-05-29 13:44 ` [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message " Sergey Bobrenok via buildroot
  2023-05-29 13:44 ` [Buildroot] [PATCH 3/3] package/earlyoom: unhardcode package version in CFLAGS Sergey Bobrenok via buildroot
@ 2023-06-02 19:25 ` Peter Korsgaard
  2023-06-14  9:23 ` Peter Korsgaard
  3 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2023-06-02 19:25 UTC (permalink / raw)
  To: Sergey Bobrenok via buildroot
  Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

>>>>> "Sergey" == Sergey Bobrenok via buildroot <buildroot@buildroot.org> writes:

 > earlyoom.mk file explicitly sets 'PREFIX=/usr', and the init script
 > fails to start earlyoom because of a nonexistent executable path:

 >   # /etc/init.d/S02earlyoom start
 >   start-stop-daemon: unable to stat /bin/earlyoom (No such file or directory)
 >   FAIL

 > Signed-off-by: Sergey Bobrenok <SIBobrenok@sberdevices.ru>

Committed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message in the init script
  2023-05-29 13:44 ` [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message " Sergey Bobrenok via buildroot
@ 2023-06-02 19:25   ` Peter Korsgaard
  2023-06-14  9:23   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2023-06-02 19:25 UTC (permalink / raw)
  To: Sergey Bobrenok via buildroot
  Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

>>>>> "Sergey" == Sergey Bobrenok via buildroot <buildroot@buildroot.org> writes:

 > '/etc/init.d/S02earlyoom start' simply prints 'OK' instead of
 > 'Starting earlyoom: OK' because of a typo in the printf function call.

 > Signed-off-by: Sergey Bobrenok <SIBobrenok@sberdevices.ru>

Committed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 3/3] package/earlyoom: unhardcode package version in CFLAGS
  2023-05-29 13:44 ` [Buildroot] [PATCH 3/3] package/earlyoom: unhardcode package version in CFLAGS Sergey Bobrenok via buildroot
@ 2023-06-02 19:25   ` Peter Korsgaard
  2023-06-14  9:23   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2023-06-02 19:25 UTC (permalink / raw)
  To: Sergey Bobrenok via buildroot
  Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

>>>>> "Sergey" == Sergey Bobrenok via buildroot <buildroot@buildroot.org> writes:

 > '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@sberdevices.ru>

Committed, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script
  2023-05-29 13:43 [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script Sergey Bobrenok via buildroot
                   ` (2 preceding siblings ...)
  2023-06-02 19:25 ` [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script Peter Korsgaard
@ 2023-06-14  9:23 ` Peter Korsgaard
  3 siblings, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2023-06-14  9:23 UTC (permalink / raw)
  To: Sergey Bobrenok via buildroot
  Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

>>>>> "Sergey" == Sergey Bobrenok via buildroot <buildroot@buildroot.org> writes:

 > earlyoom.mk file explicitly sets 'PREFIX=/usr', and the init script
 > fails to start earlyoom because of a nonexistent executable path:

 >   # /etc/init.d/S02earlyoom start
 >   start-stop-daemon: unable to stat /bin/earlyoom (No such file or directory)
 >   FAIL

 > Signed-off-by: Sergey Bobrenok <SIBobrenok@sberdevices.ru>

Committed to 2023.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message in the init script
  2023-05-29 13:44 ` [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message " Sergey Bobrenok via buildroot
  2023-06-02 19:25   ` Peter Korsgaard
@ 2023-06-14  9:23   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2023-06-14  9:23 UTC (permalink / raw)
  To: Sergey Bobrenok via buildroot
  Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

>>>>> "Sergey" == Sergey Bobrenok via buildroot <buildroot@buildroot.org> writes:

 > '/etc/init.d/S02earlyoom start' simply prints 'OK' instead of
 > 'Starting earlyoom: OK' because of a typo in the printf function call.

 > Signed-off-by: Sergey Bobrenok <SIBobrenok@sberdevices.ru>

Committed to 2023.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Buildroot] [PATCH 3/3] package/earlyoom: unhardcode package version in CFLAGS
  2023-05-29 13:44 ` [Buildroot] [PATCH 3/3] package/earlyoom: unhardcode package version in CFLAGS Sergey Bobrenok via buildroot
  2023-06-02 19:25   ` Peter Korsgaard
@ 2023-06-14  9:23   ` Peter Korsgaard
  1 sibling, 0 replies; 9+ messages in thread
From: Peter Korsgaard @ 2023-06-14  9:23 UTC (permalink / raw)
  To: Sergey Bobrenok via buildroot
  Cc: Joseph Kogut, Sergey Bobrenok, sdfw_system_team

>>>>> "Sergey" == Sergey Bobrenok via buildroot <buildroot@buildroot.org> writes:

 > '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@sberdevices.ru>

Committed to 2023.02.x, thanks.

-- 
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-06-14  9:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-29 13:43 [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script Sergey Bobrenok via buildroot
2023-05-29 13:44 ` [Buildroot] [PATCH 2/3] package/earlyoom: restore missing startup message " Sergey Bobrenok via buildroot
2023-06-02 19:25   ` Peter Korsgaard
2023-06-14  9:23   ` Peter Korsgaard
2023-05-29 13:44 ` [Buildroot] [PATCH 3/3] package/earlyoom: unhardcode package version in CFLAGS Sergey Bobrenok via buildroot
2023-06-02 19:25   ` Peter Korsgaard
2023-06-14  9:23   ` Peter Korsgaard
2023-06-02 19:25 ` [Buildroot] [PATCH 1/3] package/earlyoom: fix daemon executable path in the init script Peter Korsgaard
2023-06-14  9:23 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox