1 |
commit: 7c7f1bcbfbedf8181a40c6de460a15d9988de8cc |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Jul 31 03:16:52 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 31 22:13:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c7f1bcb |
7 |
|
8 |
sys-apps/man-db: [QA] call tmpfiles_process in pkg_postinst |
9 |
|
10 |
This is needed to actually apply the tmpfiles configuration |
11 |
we've installed in the ebuild. See tmpfiles.eclass documentation. |
12 |
|
13 |
Revbump because the new tmpfiles inherit adds a new dependency |
14 |
(virtual/tmpfiles). |
15 |
|
16 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
17 |
|
18 |
sys-apps/man-db/{man-db-2.9.4.ebuild => man-db-2.9.4-r1.ebuild} | 4 +++- |
19 |
sys-apps/man-db/man-db-9999.ebuild | 4 +++- |
20 |
2 files changed, 6 insertions(+), 2 deletions(-) |
21 |
|
22 |
diff --git a/sys-apps/man-db/man-db-2.9.4.ebuild b/sys-apps/man-db/man-db-2.9.4-r1.ebuild |
23 |
similarity index 98% |
24 |
rename from sys-apps/man-db/man-db-2.9.4.ebuild |
25 |
rename to sys-apps/man-db/man-db-2.9.4-r1.ebuild |
26 |
index ee7a1ac42db..3bdd29d11b1 100644 |
27 |
--- a/sys-apps/man-db/man-db-2.9.4.ebuild |
28 |
+++ b/sys-apps/man-db/man-db-2.9.4-r1.ebuild |
29 |
@@ -3,7 +3,7 @@ |
30 |
|
31 |
EAPI=7 |
32 |
|
33 |
-inherit systemd prefix |
34 |
+inherit systemd prefix tmpfiles |
35 |
|
36 |
DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" |
37 |
HOMEPAGE="http://www.nongnu.org/man-db/" |
38 |
@@ -192,6 +192,8 @@ pkg_preinst() { |
39 |
} |
40 |
|
41 |
pkg_postinst() { |
42 |
+ tmpfiles_process man-db.conf |
43 |
+ |
44 |
if [[ $(ver_cut 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then |
45 |
einfo "Rebuilding man-db from scratch with new database format!" |
46 |
su man -s /bin/sh -c 'mandb --quiet --create' 2>/dev/null |
47 |
|
48 |
diff --git a/sys-apps/man-db/man-db-9999.ebuild b/sys-apps/man-db/man-db-9999.ebuild |
49 |
index f5b96175573..66b83690c0b 100644 |
50 |
--- a/sys-apps/man-db/man-db-9999.ebuild |
51 |
+++ b/sys-apps/man-db/man-db-9999.ebuild |
52 |
@@ -3,7 +3,7 @@ |
53 |
|
54 |
EAPI=7 |
55 |
|
56 |
-inherit systemd prefix |
57 |
+inherit systemd prefix tmpfiles |
58 |
|
59 |
DESCRIPTION="a man replacement that utilizes berkdb instead of flat files" |
60 |
HOMEPAGE="http://www.nongnu.org/man-db/" |
61 |
@@ -192,6 +192,8 @@ pkg_preinst() { |
62 |
} |
63 |
|
64 |
pkg_postinst() { |
65 |
+ tmpfiles_process man-db.conf |
66 |
+ |
67 |
if [[ $(ver_cut 2 ${REPLACING_VERSIONS}) -lt 7 ]] ; then |
68 |
einfo "Rebuilding man-db from scratch with new database format!" |
69 |
su man -s /bin/sh -c 'mandb --quiet --create' 2>/dev/null |