Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/sysvinit/
Date: Tue, 29 Mar 2022 16:20:29
Message-Id: 1648570752.facc002a10724a0e31e298ccad90a3a3797f566a.ionen@gentoo
1 commit: facc002a10724a0e31e298ccad90a3a3797f566a
2 Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 29 16:06:46 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 29 16:19:12 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=facc002a
7
8 sys-apps/sysvinit: fix build by skipping missing man pages
9
10 Don't want to leave this broken for too long, nor do Revert Revert,
11 so quickfixing myself.
12
13 Unsure if ideal given several man pages are missing (perhaps
14 man-pages-l10n was better).
15
16 Bug: https://bugs.gentoo.org/836353
17 Closes: https://bugs.gentoo.org/836371
18 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
19
20 sys-apps/sysvinit/sysvinit-3.02-r3.ebuild | 7 ++++---
21 1 file changed, 4 insertions(+), 3 deletions(-)
22
23 diff --git a/sys-apps/sysvinit/sysvinit-3.02-r3.ebuild b/sys-apps/sysvinit/sysvinit-3.02-r3.ebuild
24 index 2310e55f9f0a..19908235ef90 100644
25 --- a/sys-apps/sysvinit/sysvinit-3.02-r3.ebuild
26 +++ b/sys-apps/sysvinit/sysvinit-3.02-r3.ebuild
27 @@ -142,9 +142,10 @@ src_install() {
28
29 if use nls && [[ -n "$(plocale_get_locales)" ]] ; then
30 install_locale_man_pages() {
31 - local locale=${1}
32 -
33 - doman -i18n=${locale} man/po/${locale}/*
34 + local man=( man/po/${1}/* )
35 + if [[ -e ${man[0]} ]]; then #836353,836371
36 + doman -i18n=${1} "${man[@]}"
37 + fi
38 }
39
40 plocale_for_each_locale install_locale_man_pages