1 |
commit: cb200416b701b9c4bcbcec2dea3db8a23f3f73f0 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 7 02:47:19 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 7 02:47:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cb200416 |
7 |
|
8 |
app-text/docbook-xsl-ns-stylesheets: die on failed build-docbook-catalog |
9 |
|
10 |
Fail loudly if build-docbook-catalog wasn't successful; this is likely |
11 |
due to /run not being (bind-)mounted (in chroots/new installs). |
12 |
|
13 |
Bug: https://bugs.gentoo.org/816303 |
14 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
15 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
16 |
|
17 |
.../docbook-xsl-ns-stylesheets-1.79.1.ebuild | 6 ++++-- |
18 |
1 file changed, 4 insertions(+), 2 deletions(-) |
19 |
|
20 |
diff --git a/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild |
21 |
index 1755483b705..d45bb7f2656 100644 |
22 |
--- a/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild |
23 |
+++ b/app-text/docbook-xsl-ns-stylesheets/docbook-xsl-ns-stylesheets-1.79.1.ebuild |
24 |
@@ -72,9 +72,11 @@ EOF |
25 |
} |
26 |
|
27 |
pkg_postinst() { |
28 |
- build-docbook-catalog |
29 |
+ # See bug #816303 for rationale behind die |
30 |
+ build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?" |
31 |
} |
32 |
|
33 |
pkg_postrm() { |
34 |
- build-docbook-catalog |
35 |
+ # See bug #816303 for rationale behind die |
36 |
+ build-docbook-catalog || die "Failed to regenerate docbook catalog. Is /run mounted?" |
37 |
} |