1 |
commit: 940836c2dc07c9dae733ea506df9f39e7be47aec |
2 |
Author: Patrick Lauer <patrick <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 9 06:39:06 2021 +0000 |
4 |
Commit: 罗百科 <patrick <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 9 06:39:22 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=940836c2 |
7 |
|
8 |
app-text/build-docbook-catalog: Create missing dir needed in pkg_postinst |
9 |
|
10 |
Since /run might be empty (chroot etc.) or missing, opportunistically |
11 |
create the directory if needed. Avoids failing randomly for no |
12 |
obvious reason. |
13 |
|
14 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
15 |
Signed-off-by: Patrick Lauer <patrick <AT> gentoo.org> |
16 |
|
17 |
app-text/build-docbook-catalog/build-docbook-catalog-2.1.ebuild | 2 ++ |
18 |
1 file changed, 2 insertions(+) |
19 |
|
20 |
diff --git a/app-text/build-docbook-catalog/build-docbook-catalog-2.1.ebuild b/app-text/build-docbook-catalog/build-docbook-catalog-2.1.ebuild |
21 |
index d3143b3652b..87cfe4c3b89 100644 |
22 |
--- a/app-text/build-docbook-catalog/build-docbook-catalog-2.1.ebuild |
23 |
+++ b/app-text/build-docbook-catalog/build-docbook-catalog-2.1.ebuild |
24 |
@@ -33,5 +33,7 @@ src_configure() { |
25 |
pkg_postinst() { |
26 |
# New version -> regen files |
27 |
# See bug #816303 for rationale behind die |
28 |
+ # create directory if needed |
29 |
+ mkdir -p /run/lock |
30 |
build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?" |
31 |
} |