Package: runit / 2.2.0-6

Metadata

Package Version Patches format
runit 2.2.0-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0001 default directory for services on Debian is etc servi.diff | (download)

runit-2.2.0/man/runsv.8 | 4 2 + 2 - 0 !
runit-2.2.0/man/runsvchdir.8 | 4 2 + 2 - 0 !
runit-2.2.0/man/sv.8 | 4 2 + 2 - 0 !
runit-2.2.0/src/sv.c | 2 1 + 1 - 0 !
4 files changed, 7 insertions(+), 7 deletions(-)

 [patch] default directory for services on debian is /etc/service/,
 not /service/


0004 src Makefile don t use static to link runit runit ini.diff | (download)

runit-2.2.0/src/Makefile | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 [patch] src/makefile: don't use -static to link runit,
 runit-init on Debian


0010 make build system print compilatio.patch | (download)

runit-2.2.0/src/warn-auto.sh | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] make build system print compilation commands


0012 fix spin lock on systems with poor.patch | (download)

runit-2.2.0/src/svlogd.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] fix spin lock on systems with poor clock
Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23878476


0013 Shutdown when runit init receices SIGPWR.patch | (download)

runit-2.2.0/doc/runit.8.html | 10 8 + 2 - 0 !
runit-2.2.0/man/runit.8 | 15 14 + 1 - 0 !
runit-2.2.0/src/runit.c | 37 34 + 3 - 0 !
runit-2.2.0/src/runit.h | 1 1 + 0 - 0 !
runit-2.2.0/src/sig.c | 5 5 + 0 - 0 !
runit-2.2.0/src/sig.h | 1 1 + 0 - 0 !
6 files changed, 63 insertions(+), 6 deletions(-)

 shutdown when runit-init receices sigpwr
Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=%23923924


0018 fix resource leaks and other issues as reported by i.patch | (download)

runit-2.2.0/src/fd_move.c | 5 4 + 1 - 0 !
runit-2.2.0/src/runit-init.c | 6 3 + 3 - 0 !
2 files changed, 7 insertions(+), 4 deletions(-)

 fix: resource leaks and other issues as reported by infer

 to run infer static code analyzer (fbinfer.com):
 cd src; infer run -- make

 - fix: fd_move.c resource leak - close file handle
 - fix: runit-init.c resource leak - close file handle
 

0019 Make runsvdir 8 rescan directory on SIGALARM.patch | (download)

runit-2.2.0/src/Makefile | 4 2 + 2 - 0 !
runit-2.2.0/src/runsvdir.c | 40 38 + 2 - 0 !
2 files changed, 40 insertions(+), 4 deletions(-)

 make runsvdir(8) rescan directory on sigalarm + fix 1 second delay in forced-rescan implementation

This patch squash patches 0023 into patch 0019
Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933078
Ref: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933078#40

Generally runsvdir(8) rescans service directory every 5 seconds. This patch
makes it possbile to force rescan by sending SIGALARM.

This feature is wanted by maintainer scripts of packages that want to perform
some action after service was started. Obliviously, hanging installation
process for 5 seconds is sub-optimal in such situation.

0020 Add regression test for forced rescan feature.patch | (download)

runit-2.2.0/src/Makefile | 4 4 + 0 - 0 !
runit-2.2.0/src/runsvdir-rescan.test | 65 65 + 0 - 0 !
2 files changed, 69 insertions(+)

 <0026-clean up at the end of forced rescan test>
0021 Make pid1 forward sigalarm to stage2 process.patch | (download)

runit-2.2.0/src/runit.c | 20 17 + 3 - 0 !
1 file changed, 17 insertions(+), 3 deletions(-)

 make pid1 forward sigalarm to stage2 process


0025 Update runit manpage for runitdir env.patch | (download)

runit-2.2.0/man/runit.8 | 31 31 + 0 - 0 !
1 file changed, 31 insertions(+)

 update runit manpage for runitdir env
0026 runsvchdir get dir from env.patch | (download)

runit-2.2.0/doc/runsvchdir.8.html | 27 17 + 10 - 0 !
runit-2.2.0/man/runsvchdir.8 | 11 8 + 3 - 0 !
runit-2.2.0/src/runsvchdir.c | 7 5 + 2 - 0 !
3 files changed, 30 insertions(+), 15 deletions(-)

---
0027 runsv.c sv.c properly wait for log on exit.patch | (download)

runit-2.2.0/man/runsv.8 | 1 1 + 0 - 0 !
runit-2.2.0/man/sv.8 | 1 1 + 0 - 0 !
runit-2.2.0/src/runsv.c | 40 23 + 17 - 0 !
runit-2.2.0/src/sv.c | 5 4 + 1 - 0 !
4 files changed, 29 insertions(+), 18 deletions(-)

 runsv.c, sv.c: on exit, properly wait for log service to terminate.
 When runsv is told to exit, it now no longer processes any control
 characters read from the control pipe (it still does for the log
 service).  It waits until the log service has terminated and then
 exits.  The sv program now properly reports this through the status
command.
0028 sv.c man sv.8 exit 111 on timeout check wait for req status.patch | (download)

runit-2.2.0/man/sv.8 | 19 14 + 5 - 0 !
runit-2.2.0/src/sv.c | 15 10 + 5 - 0 !
2 files changed, 24 insertions(+), 10 deletions(-)

 sv.c, man/sv.8: exit 111 on timeout
 sv: exit 111 on timeout for one or more services when waiting
 for the command to take effect; on command check properly wait
 for the requested state up, down, or exit.
0029 fix build with gcc15.patch | (download)

runit-2.2.0/src/alloc.h | 6 3 + 3 - 0 !
runit-2.2.0/src/buffer.c | 2 1 + 1 - 0 !
runit-2.2.0/src/buffer.h | 6 3 + 3 - 0 !
runit-2.2.0/src/buffer_get.c | 2 1 + 1 - 0 !
runit-2.2.0/src/buffer_put.c | 2 1 + 1 - 0 !
runit-2.2.0/src/buffer_write.c | 2 1 + 1 - 0 !
runit-2.2.0/src/byte.h | 12 6 + 6 - 0 !
runit-2.2.0/src/pathexec_env.c | 2 1 + 1 - 0 !
runit-2.2.0/src/runit.c | 10 5 + 5 - 0 !
runit-2.2.0/src/runsv.c | 4 2 + 2 - 0 !
runit-2.2.0/src/runsvdir.c | 6 3 + 3 - 0 !
runit-2.2.0/src/select.h1 | 2 1 + 1 - 0 !
runit-2.2.0/src/select.h2 | 2 1 + 1 - 0 !
runit-2.2.0/src/sig.c | 4 2 + 2 - 0 !
runit-2.2.0/src/sig.h | 6 3 + 3 - 0 !
runit-2.2.0/src/sig_catch.c | 2 1 + 1 - 0 !
runit-2.2.0/src/svlogd.c | 8 4 + 4 - 0 !
runit-2.2.0/src/wait.h | 4 2 + 2 - 0 !
18 files changed, 41 insertions(+), 41 deletions(-)

 [patch 2/4] fix build with gcc15

In C23 f() means f(void), consequently signal handler functions now
are f(int), alloc_free() parameter needs cast, buffer_unixwrite()
removes "const" from parameter.

https://gcc.gnu.org/gcc-15/changes.html

0030 C23 swap ANSI K R style decl.patch | (download)

runit-2.2.0/src/alloc.c | 6 2 + 4 - 0 !
runit-2.2.0/src/alloc_re.c | 5 1 + 4 - 0 !
runit-2.2.0/src/buffer_0.c | 2 1 + 1 - 0 !
runit-2.2.0/src/byte.h | 10 5 + 5 - 0 !
runit-2.2.0/src/byte_chr.c | 5 1 + 4 - 0 !
runit-2.2.0/src/byte_copy.c | 5 1 + 4 - 0 !
runit-2.2.0/src/byte_cr.c | 5 1 + 4 - 0 !
runit-2.2.0/src/byte_diff.c | 5 1 + 4 - 0 !
runit-2.2.0/src/byte_rchr.c | 5 1 + 4 - 0 !
runit-2.2.0/src/select.h2 | 1 0 + 1 - 0 !
runit-2.2.0/src/wait.h | 2 0 + 2 - 0 !
runit-2.2.0/src/wait_nohang.c | 2 1 + 1 - 0 !
runit-2.2.0/src/wait_pid.c | 4 2 + 2 - 0 !
13 files changed, 17 insertions(+), 40 deletions(-)

 [patch 3/4] c23: swap ansi for remaining k&r-style declarations