1 |
On Mon, 2021-08-02 at 01:28 -0700, Georgy Yakovlev wrote: |
2 |
> it can actually check if ebuild calls tmpfiles_process, not only |
3 |
> inherit. |
4 |
> something like: |
5 |
> |
6 |
> local pkg_postinst_body="$(declare -fp pkg_postinst)" |
7 |
> if [[ ! ${pkg_postinst_body} == *tmpfiles_process* ]]; then |
8 |
> eqawarn "QA Notice: package is installing tmpfiles without |
9 |
> calling |
10 |
> eqawarn "tmpfiles_process in pkg_postinst phase" |
11 |
> fi |
12 |
> |
13 |
> ofc accounting for edge cases floppym mentioned. |
14 |
|
15 |
This is going to cause false positives if tmpfiles_process is called via |
16 |
another function. |
17 |
|
18 |
-- |
19 |
Best regards, |
20 |
Michał Górny |