Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/man-db/
Date: Sat, 13 Apr 2019 14:17:29
Message-Id: 1555165036.9830c2263498a6c9c4beabbefeb3533b372e9fc0.floppym@gentoo
1 commit: 9830c2263498a6c9c4beabbefeb3533b372e9fc0
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 13 14:02:39 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 13 14:17:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9830c226
7
8 sys-apps/man-db: add /var/cache/man to SANDBOX_PREDICT
9
10 Closes: https://bugs.gentoo.org/675478
11 Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87
12 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
13
14 sys-apps/man-db/{man-db-2.8.5.ebuild => man-db-2.8.5-r1.ebuild} | 7 +++++++
15 sys-apps/man-db/man-db-9999.ebuild | 7 +++++++
16 2 files changed, 14 insertions(+)
17
18 diff --git a/sys-apps/man-db/man-db-2.8.5.ebuild b/sys-apps/man-db/man-db-2.8.5-r1.ebuild
19 similarity index 96%
20 rename from sys-apps/man-db/man-db-2.8.5.ebuild
21 rename to sys-apps/man-db/man-db-2.8.5-r1.ebuild
22 index 6935f3bcada..7c43b7e40d5 100644
23 --- a/sys-apps/man-db/man-db-2.8.5.ebuild
24 +++ b/sys-apps/man-db/man-db-2.8.5-r1.ebuild
25 @@ -73,6 +73,10 @@ src_configure() {
26 sed -i \
27 -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \
28 src/man_db.conf || die
29 +
30 + cat > 15man-db <<-EOF || die
31 + SANDBOX_PREDICT="/var/cache/man"
32 + EOF
33 }
34
35 src_install() {
36 @@ -82,6 +86,9 @@ src_install() {
37
38 exeinto /etc/cron.daily
39 newexe "${FILESDIR}"/man-db.cron-r1 man-db #289884
40 +
41 + insinto /etc/sandbox.d
42 + doins 15man-db
43 }
44
45 pkg_preinst() {
46
47 diff --git a/sys-apps/man-db/man-db-9999.ebuild b/sys-apps/man-db/man-db-9999.ebuild
48 index 6935f3bcada..7c43b7e40d5 100644
49 --- a/sys-apps/man-db/man-db-9999.ebuild
50 +++ b/sys-apps/man-db/man-db-9999.ebuild
51 @@ -73,6 +73,10 @@ src_configure() {
52 sed -i \
53 -e '/^#DEFINE.*\<[nt]roff\>/{s:^#::;s:$: -c:}' \
54 src/man_db.conf || die
55 +
56 + cat > 15man-db <<-EOF || die
57 + SANDBOX_PREDICT="/var/cache/man"
58 + EOF
59 }
60
61 src_install() {
62 @@ -82,6 +86,9 @@ src_install() {
63
64 exeinto /etc/cron.daily
65 newexe "${FILESDIR}"/man-db.cron-r1 man-db #289884
66 +
67 + insinto /etc/sandbox.d
68 + doins 15man-db
69 }
70
71 pkg_preinst() {