Gentoo Archives: gentoo-dev

From: Michael Orlitzky <mjo@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Common options missed in OpenRC declarative scripts and how to improve them
Date: Thu, 02 Dec 2021 18:06:01
Message-Id: YakK/8PDrrenlZ9H@stitch
In Reply to: Re: [gentoo-dev] Common options missed in OpenRC declarative scripts and how to improve them by Alec Warner
1 On 2021-12-02 08:12:55, Alec Warner wrote:
2 >
3 > Can we automate any of it? Emit QA warnings? etc.
4 >
5
6 I would love to be proven wrong, but I don't think so. We have two
7 main problems. First, The service scripts are POSIX sh, which is
8 better than bash, but still can't easily be parsed for semantic
9 information.
10
11 Second, if the daemon is "special," then the service script is
12 justified in being similarly unconventional. Unusual runtime behavior
13 can't be statically detected, and I doubt that the well-behaved
14 portion of daemons in the tree is large enough that we can warn about
15 every script that smells a little bit fishy.

Replies