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 3/3] dependencies: Do not guarantee satisfied dependencies in pkg_*rm
Date: Thu, 04 Oct 2018 17:14:01
Message-Id: 20181004171340.14048-3-mgorny@gentoo.org
In Reply to: [gentoo-pms] [PATCH 1/3] dependencies: Permit {,B}DEPEND in source-initiated pkg_setup by "Michał Górny"
1 Remove the guarantee of RDEPEND being satisfied in pkg_{pre,post}rm.
2 The package manager implementations did not really guarantee this,
3 and packages need to be uninstallable even if their dependencies were
4 removed or broken already (either due to misordered removal or due to
5 manual user action).
6
7 Signed-off-by: Michał Górny <mgorny@g.o>
8 ---
9 dependencies.tex | 5 ++++-
10 1 file changed, 4 insertions(+), 1 deletion(-)
11
12 diff --git a/dependencies.tex b/dependencies.tex
13 index 3c5d297..69dd656 100644
14 --- a/dependencies.tex
15 +++ b/dependencies.tex
16 @@ -20,9 +20,12 @@
17 \t{src_unpack}, \t{src_prepare}, \t{src_configure}, \t{src_compile}, \t{src_test},
18 \t{src_install} & \t{DEPEND}, \t{BDEPEND} \\
19 \addlinespace
20 - \t{pkg_preinst}, \t{pkg_postinst}, \t{pkg_prerm}, \t{pkg_postrm} &
21 + \t{pkg_preinst}, \t{pkg_postinst} &
22 \t{RDEPEND} \\
23 \addlinespace
24 + \t{pkg_prerm}, \t{pkg_postrm} &
25 + None (ebuilds should account for dependencies being unmerged prior to them) \\
26 + \addlinespace
27 \t{pkg_config} & \t{RDEPEND}, \t{PDEPEND} \\
28 \bottomrule
29 \end{tabular}
30 --
31 2.19.0

Replies