Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: Gentoo Dev <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] [PATCH] metadata/install-qa-check.d: add 60tmpfiles-path QA check
Date: Sun, 01 Aug 2021 16:42:38
Message-Id: CAJ0EP40vS_rTU3mQ2OfqRE0ivCPStYYttkD0O05oHGsSb-jOpA@mail.gmail.com
In Reply to: [gentoo-dev] [PATCH] metadata/install-qa-check.d: add 60tmpfiles-path QA check by Sam James
1 On Sat, Jul 31, 2021 at 7:56 PM Sam James <sam@g.o> wrote:
2 >
3 > This adds two tmpfiles related QA checks:
4 > 1) Verify packages don't install tmpfiles to /etc/tmpfiles.d, which
5 > is a deprecated location;
6
7 sys-apps/systemd calls keepdir /etc/tmpfiles.d so that users don't get
8 confused by a missing directory.
9
10 How would you suggest I avoid this QA warning?
11
12 > 2) Check whether packages inherit tmpfiles.eclass if they're
13 > installing files to /usr/lib/tmpfiles.d.
14 >
15 > (This helps to catch packages not calling tmpfiles_process
16 > in pkg_postinst).
17
18 sys-apps/systemd installs many files in /usr/lib/tmpfiles.d, but
19 calling tmpfiles_process would probably not make much sense.
20
21 How would you suggest I avoid this QA warning?

Replies