Debian Patches

Status for runit/2.1.2-60

Patch Description Author Forwarded Bugs Origin Last update
0001-default-directory-for-services-on-Debian-is-etc-servi.diff [PATCH] default directory for services on Debian is /etc/service/, not /service/ Gerrit Pape <pape@smarden.org> invalid 2008-05-07
0002-support-etc-runit-nosync-file-to-make-sync-on-shutdow.diff [PATCH] support /etc/runit/nosync file to make sync on shutdown/reboot optional

https://bugs.debian.org/695281
Andras Korn <korn-debbugs@elan.rulez.org> invalid 2012-12-06
0003-utmpset.c-mixes-int32_t-and-time_t.diff [PATCH] utmpset.c: mixes "int32_t *" and "time_t *"
Don't pass int32_t to time(), thx Lorenzo Beretta,
https://bugs.debian.org/754849
Gerrit Pape <pape@smarden.org> no 2014-07-31
0004-src-Makefile-don-t-use-static-to-link-runit-runit-ini.diff [PATCH] src/Makefile: don't use -static to link runit, runit-init on Debian Gerrit Pape <pape@smarden.org> invalid 2014-07-31
0006-make-buildsystem-respect-CFLAGS.patch Make buildsystem respect dpkg-buildflags Dmitry Bogatov <KAction@gnu.org> invalid 2016-06-01
0007-move-communication-files.patch Move communication files under /run

Runit by default uses files /etc/runit/stop and /etc/runit/reboot.
This configuration will not work when /etc is mounted read-only,
as such this patch renames this files into /run/runit.stop and
/run/runit.reboot
Dmitry Bogatov <KAction@gnu.org> no 2016-06-02
0009-fix-error-in-manpage.patch Fix factual error in manpage.

Log ./finish script is not actually invoked. It is not clear, whether this
limitation is worth lifting.
Dmitry Bogatov <KAction@gnu.org> no 2016-08-31
0010-make-build-system-print-compilatio.patch [PATCH] Make build system print compilation commands Dmitry Bogatov <KAction@gnu.org> invalid 2018-04-10
0011-disable-chkshgrp-test-that-fails-i.patch [PATCH] Disable chkshgrp test, that fails in whalebuilder Dmitry Bogatov <KAction@gnu.org> invalid 2018-05-13
0012-fix-spin-lock-on-systems-with-poor.patch [PATCH] Fix spin lock on systems with poor clock Dmitry Bogatov <KAction@gnu.org> invalid 2018-05-28
0013-Shutdown-when-runit-init-receices-SIGPWR.patch Shutdown when runit-init receices SIGPWR Dmitry Bogatov <KAction@debian.org> invalid 2019-03-12
0014-fix-implicit-declarations-incompatible-types-argv-ty.patch fix: implicit declarations, incompatible types, argv type
Fixed a few compiler warnings:

prot.c:13:7: warning: implicit declaration of function ‘setgroups’ [-Wimplicit-function-declaration]
chpst.c:80:7: warning: implicit declaration of function ‘setgroups’; did you mean ‘getgroups’? [-Wimplicit-function-declaration]
- added #include <grp.h>, see: https://linux.die.net/man/2/setgroups

chkshsgr.c:11:19: warning: passing argument 2 of ‘getgroups’ from incompatible pointer type [-Wincompatible-pointer-types]
- change 'short' to 'gid_t', see: https://linux.die.net/man/2/setgroups

pathexec_run.c:18:5: warning: implicit declaration of function ‘execve’ [-Wimplicit-function-declaration]
- add #include <unistd.h>, see: http://man7.org/linux/man-pages/man2/execve.2.html

prot.c:17:10: warning: implicit declaration of function ‘setgid’; did you mean ‘getgrgid’? [-Wimplicit-function-declaration]
- add #include <unistd.h>, see: https://linux.die.net/man/3/setgid

seek_set.c:9:7: warning: implicit declaration of function ‘lseek’ [-Wimplicit-function-declaration]
- add #include <unistd.h>, see: https://linux.die.net/man/2/lseek
Jan <cloux@rote.ch> no 2019-03-02
0015-fix-34-cases-of-Wmisleading-indentation-warnings.patch fix: 34 cases of -Wmisleading-indentation warnings
- fixed misleading indentation as reported by gcc 8.2.0
Jan <cloux@rote.ch> no 2019-03-02
0016-fix-warning-for-undefined-operation-on-sequence-poin.patch fix: warning for undefined operation on sequence point in chpst.c
chpst.c:312:33: warning: operation on ‘subgetoptarg’ may be undefined [-Wsequence-point]
if (optarg[scan_ulong(++optarg, &ul)]) usage();

see accepted answer on:
https://stackoverflow.com/questions/10623114/operation-on-may-be-undefined

see also http://c-faq.com/expr/seqpoints.html :
"... This rule effectively constrains legal expressions to those in which the
accesses demonstrably precede the modification."
Jan <cloux@rote.ch> no 2019-03-02
0017-fix-replace-obsolete-usleep-with-nanosleep.patch fix: replace obsolete usleep with nanosleep
POSIX.1-2001 declares usleep obsolete,
POSIX.1-2008 removes the specification of usleep,
see https://linux.die.net/man/3/usleep
Jan <cloux@rote.ch> no 2019-03-06
0018-fix-resource-leaks-and-other-issues-as-reported-by-i.patch 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
- fix: svlogd.c dead storage - value never used
- fix: x86cpuid.c uninitialized value read
- fix: package/install-man - do not use unreliable symlinks
Jan <cloux@rote.ch> no 2019-03-08
0019-Make-runsvdir-8-rescan-directory-on-SIGALARM.patch Make runsvdir(8) rescan directory on SIGALARM
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.
Dmitry Bogatov <KAction@debian.org> no 2019-07-15
0020-Add-regression-test-for-forced-rescan-feature.patch Add regression test for forced-rescan feature Dmitry Bogatov <KAction@debian.org> invalid 2019-07-26
0021-Make-pid1-forward-sigalarm-to-stage2-process.patch Make pid1 forward sigalarm to stage2 process Dmitry Bogatov <KAction@debian.org> invalid 2019-08-25
0022-Check-force-rescan-delay-more-precisely.patch Check force-rescan delay more precisely
Use `data +%s%N` in src/t/runtest.sh to check with nano-second precision
how much time pass between SIGALRM sent and control pipe of new service
appear.
Dmitry Bogatov <KAction@debian.org> no 2019-09-15
0023-Fix-1-second-delay-in-forced-rescan-implementation.patch Fix 1 second delay in forced-rescan implementation Dmitry Bogatov <KAction@debian.org> invalid 2019-09-15
0024-Fix-forced-rescan-test-adding-runsv-path.patch Fix test failure on sbuild The test fails in sbuild or in any other environment where runit is not installed
because runsvdir can't find runsv in PATH. The fix adds the build directory at the
beginning of PATH in order to make sure that runsvdir pick the right runsv when the
test is done on machine where runit is installed.
<Lorenzo Puliti plorenzo@disroot.org> invalid 2020-04-11
0025-Update-runit-manpage-for-runitdir-env.patch Update runit manpage for runitdir env <Lorenzo Puliti plorenzo@disroot.org> invalid 2020-05-17
0026-Clean-up-at-the-end-of-rescan-test.patch <Clean up at the end of forced rescan test> <Lorenzo Puliti plorenzo@disroot.org> invalid 2020-09-24
0027-Add-missing-options-to-chpst-manpage.patch Add missing options to chpst man page> Add options -t and -V to chpst man page; ignore -r since it's obsolete. <Lorenzo Puliti, Mike Pomraning 'Pilcrow'> invalid <Mike Pomraning 'Pilcrow'>, <https://github.com/pilcrow/runit> 2022-01-03
0027-Clarify-runsv-8-control-dx.patch <Clarify runsv.8 control/dx> <Clarify in runsv.8 manpage how signal override works with control/dx> Andras Korn <korn-debbugs@elan.rulez.org> invalid debian 2022-03-08
0028-Disable-sv-test <Disable the sv upstream test> <Disable the sv test that fails on Hurd> <Lorenzo Puliti plorenzo@disroot.org> no debian
0029-fix-ftbfs-with-gcc14.patch <Fix FTBFS with gcc-14> <fix implicit declaration of function ‘sigpause’ error, see #1075484>
Bug-<Vendor>: <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1075484>
<plorenzo@disroot.org> no 2024-07-06

All known versions for source package 'runit'

Links