summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2021-10-09 06:39:06 +0000
committerPatrick Lauer <patrick@gentoo.org>2021-10-09 06:39:22 +0000
commit940836c2dc07c9dae733ea506df9f39e7be47aec (patch)
treee6963c9d3276cf6b9046f83a84c5d4d71aaef464 /app-text
parentapp-xemacs/leim: drop 1.24, 1.31 (diff)
downloadgentoo-940836c2dc07c9dae733ea506df9f39e7be47aec.tar.gz
gentoo-940836c2dc07c9dae733ea506df9f39e7be47aec.tar.bz2
gentoo-940836c2dc07c9dae733ea506df9f39e7be47aec.zip
app-text/build-docbook-catalog: Create missing dir needed in pkg_postinst
Since /run might be empty (chroot etc.) or missing, opportunistically create the directory if needed. Avoids failing randomly for no obvious reason. Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Patrick Lauer <patrick@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/build-docbook-catalog/build-docbook-catalog-2.1.ebuild2
1 files changed, 2 insertions, 0 deletions
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
index d3143b3652b1..87cfe4c3b89e 100644
--- a/app-text/build-docbook-catalog/build-docbook-catalog-2.1.ebuild
+++ b/app-text/build-docbook-catalog/build-docbook-catalog-2.1.ebuild
@@ -33,5 +33,7 @@ src_configure() {
pkg_postinst() {
# New version -> regen files
# See bug #816303 for rationale behind die
+ # create directory if needed
+ mkdir -p /run/lock
build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?"
}