Github messages for voidlinux
 help / color / mirror / Atom feed
From: subnut <subnut@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] runit: fix default service path in manpages
Date: Wed, 22 Jun 2022 12:19:01 +0200	[thread overview]
Message-ID: <20220622101901.ldciXKwHn9-8CdA61iH7afUZEYTfyGT0D_cgk7kvQgE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-37639@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1254 bytes --]

There is an updated pull request by subnut against master on the void-packages repository

https://github.com/subnut/void-packages runit
https://github.com/void-linux/void-packages/pull/37639

runit: fix default service path in manpages
<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **briefly**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/37639.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-runit-37639.patch --]
[-- Type: text/x-diff, Size: 3292 bytes --]

From f3534956944da8db35c33514a652be8f9744a616 Mon Sep 17 00:00:00 2001
From: Subhaditya Nath <sn03.general@gmail.com>
Date: Wed, 22 Jun 2022 11:40:31 +0530
Subject: [PATCH] runit: added patch to change default service path

---
 srcpkgs/runit/patches/default_svdir.patch | 76 +++++++++++++++++++++++
 srcpkgs/runit/template                    |  4 +-
 2 files changed, 77 insertions(+), 3 deletions(-)
 create mode 100644 srcpkgs/runit/patches/default_svdir.patch

diff --git a/srcpkgs/runit/patches/default_svdir.patch b/srcpkgs/runit/patches/default_svdir.patch
new file mode 100644
index 000000000000..e94f327788ee
--- /dev/null
+++ b/srcpkgs/runit/patches/default_svdir.patch
@@ -0,0 +1,76 @@
+Set default service path to /var/service
+
+--- runit-2.1.2/src/sv.c
++++ runit-2.1.2/src/sv.c
+@@ -32,7 +32,7 @@
+ char *progname;
+ char *action;
+ char *acts;
+-char *varservice ="/service/";
++char *varservice ="/var/service/";
+ char **service;
+ char **servicex;
+ unsigned int services;
+--- runit-2.1.2/man/sv.8
++++ runit-2.1.2/man/sv.8
+@@ -30,7 +30,7 @@
+ .I service
+ doesn't start with a dot or slash and doesn't end with a slash, it is
+ searched in the default services directory
+-.IR /service/ ,
++.IR /var/service/ ,
+ otherwise relative to the current directory.
+ .P
+ .I command
+@@ -232,7 +232,7 @@
+ .TP
+ .B SVDIR
+ The environment variable $SVDIR overrides the default services directory
+-.IR /service/ .
++.IR /var/service/ .
+ .TP
+ .B SVWAIT
+ The environment variable $SVWAIT overrides the default 7 seconds to wait
+--- runit-2.1.2/man/runsvchdir.8
++++ runit-2.1.2/man/runsvchdir.8
+@@ -27,13 +27,13 @@
+ .IR dir .
+ .P
+ Normally 
+-.I /service
++.I /var/service
+ is a symlink to
+ .IR current ,
+ and
+ .BR runsvdir (8)
+ is running
+-.IR /service/ .
++.IR /var/service/ .
+ .SH EXIT CODES
+ .B runsvchdir
+ prints an error message and exits 111 on error.
+--- runit-2.1.2/man/utmpset.8
++++ runit-2.1.2/man/utmpset.8
+@@ -34,7 +34,7 @@
+ .I finish
+ scripts, e.g.:
+ .P
+- $ cat /service/getty-5/finish
++ $ cat /var/service/getty-5/finish
+  #!/bin/sh
+  exec utmpset \-w tty5
+  $
+--- runit-2.1.2/man/runsv.8
++++ runit-2.1.2/man/runsv.8
+@@ -157,9 +157,9 @@
+ .IR service /log/supervise/control.
+ .P
+ Example: to send a TERM signal to the socklog-unix service, either do
+-  # sv term /service/socklog-unix
++  # sv term /var/service/socklog-unix
+  or
+-  # printf t >/service/socklog-unix/supervise/control
++  # printf t >/var/service/socklog-unix/supervise/control
+ .P
+ .BR printf (1)
+ usually blocks if no
diff --git a/srcpkgs/runit/template b/srcpkgs/runit/template
index 68b400c1ef5c..36bbb3cae6c5 100644
--- a/srcpkgs/runit/template
+++ b/srcpkgs/runit/template
@@ -1,7 +1,7 @@
 # Template file for 'runit'
 pkgname=runit
 version=2.1.2
-revision=11
+revision=12
 build_style="gnu-makefile"
 wrksrc="admin"
 build_wrksrc="${pkgname}-${version}/src"
@@ -25,8 +25,6 @@ pre_build() {
 
 	echo "$CC -D_GNU_SOURCE $CFLAGS" >conf-cc
 	echo "$CC $LDFLAGS -Wl,-z -Wl,noexecstack" >conf-ld
-	# set default service path to /var/service
-	sed -i -e 's:^char \*varservice ="/service/";$:char \*varservice ="/var/service/";:' sv.c
 	# change type short to gid_t for getgroups(2) and setgroups(2)
 	sed -i -e 's:short x\[4\];$:gid_t x[4];:' chkshsgr.c
 }

  parent reply	other threads:[~2022-06-22 10:19 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-22  8:24 [PR PATCH] " subnut
2022-06-22  8:25 ` subnut
2022-06-22  8:58 ` classabbyamp
2022-06-22  8:58 ` classabbyamp
2022-06-22 10:15 ` [PR PATCH] [Updated] " subnut
2022-06-22 10:15 ` subnut
2022-06-22 10:16 ` subnut
2022-06-22 10:18 ` [PR PATCH] [Updated] " subnut
2022-06-22 10:19 ` subnut [this message]
2022-09-21  2:15 ` github-actions
2022-09-24 16:15 ` [PR PATCH] [Updated] " subnut
2022-09-24 16:18 ` subnut
2022-10-02 13:45 ` leahneukirchen
2022-10-18 10:17 ` [PR PATCH] [Updated] " subnut
2022-10-18 12:42 ` [PR PATCH] [Merged]: " leahneukirchen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220622101901.ldciXKwHn9-8CdA61iH7afUZEYTfyGT0D_cgk7kvQgE@z \
    --to=subnut@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).