Gentoo Archives: gentoo-pms

From: "Michał Górny" <mgorny@g.o>
To: gentoo-pms@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-pms] [PATCH 1/2] dependencies: Indicate that in pkg_*rm phases dep info is advisory
Date: Tue, 24 Dec 2019 09:13:08
Message-Id: 20191224091238.142793-1-mgorny@gentoo.org
1 Indicate that the depenendency information for pkg_*rm phases is only
2 advisory. This could happen e.g. if dependencies are unmerged manually.
3 Since the PM can not rely on being able to reinstall them in general,
4 ebuilds must be able to handle them gracefully during uninstalls.
5
6 Signed-off-by: Michał Górny <mgorny@g.o>
7 ---
8 dependencies.tex | 6 ++++--
9 1 file changed, 4 insertions(+), 2 deletions(-)
10
11 diff --git a/dependencies.tex b/dependencies.tex
12 index 44382d1..c128f62 100644
13 --- a/dependencies.tex
14 +++ b/dependencies.tex
15 @@ -20,8 +20,10 @@
16 \t{src_unpack}, \t{src_prepare}, \t{src_configure}, \t{src_compile}, \t{src_test},
17 \t{src_install} & \t{DEPEND}, \t{BDEPEND} \\
18 \addlinespace
19 - \t{pkg_preinst}, \t{pkg_postinst}, \t{pkg_prerm}, \t{pkg_postrm} &
20 - \t{RDEPEND} \\
21 + \t{pkg_preinst}, \t{pkg_postinst} & \t{RDEPEND} \\
22 + \addlinespace
23 + \t{pkg_prerm}, \t{pkg_postrm} & \t{RDEPEND} (advisory only, ebuilds must handle any errors
24 + due to missing dependencies gracefully) \\
25 \addlinespace
26 \t{pkg_config} & \t{RDEPEND}, \t{PDEPEND} \\
27 \bottomrule
28 --
29 2.24.1

Replies