Gentoo Archives: gentoo-dev

From: Stephan Hartmann <sultan@g.o>
To: gentoo-dev@l.g.o
Cc: chromium@g.o, Stephan Hartmann <sultan@g.o>
Subject: [gentoo-dev] [PATCH 2/3] chromium-2.eclass: update documentation
Date: Wed, 11 Aug 2021 15:29:14
Message-Id: 20210811152804.28320-3-sultan@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/3] Updates for chromium-2.eclass by Stephan Hartmann
1 Signed-off-by: Stephan Hartmann <sultan@g.o>
2 ---
3 eclass/chromium-2.eclass | 13 ++++++++++++-
4 1 file changed, 12 insertions(+), 1 deletion(-)
5
6 diff --git a/eclass/chromium-2.eclass b/eclass/chromium-2.eclass
7 index 2543078df79..b97a31e614e 100644
8 --- a/eclass/chromium-2.eclass
9 +++ b/eclass/chromium-2.eclass
10 @@ -26,7 +26,8 @@ fi
11 # @FUNCTION: chromium_suid_sandbox_check_kernel_config
12 # @USAGE:
13 # @DESCRIPTION:
14 -# Ensures the system kernel supports features needed for SUID sandbox to work.
15 +# Ensures the system kernel supports features needed for SUID and User namespaces sandbox
16 +# to work.
17 chromium_suid_sandbox_check_kernel_config() {
18 if [[ "${MERGE_TYPE}" == "source" || "${MERGE_TYPE}" == "binary" ]]; then
19 # Warn if the kernel does not support features needed for sandboxing.
20 @@ -50,6 +51,12 @@ chromium_suid_sandbox_check_kernel_config() {
21 # @DESCRIPTION:
22 # List of language packs available for this package.
23
24 +# @FUNCTION: _chromium_set_l10n_IUSE
25 +# @USAGE:
26 +# @INTERNAL
27 +# @DESCRIPTION:
28 +# Converts and adds CHROMIUM_LANGS to IUSE. Called automatically if
29 +# CHROMIUM_LANGS is defined.
30 _chromium_set_l10n_IUSE() {
31 local lang
32 for lang in ${CHROMIUM_LANGS}; do
33 @@ -105,6 +112,10 @@ chromium_remove_language_paks() {
34 done
35 }
36
37 +# @FUNCTION: chromium_pkg_die
38 +# @USAGE:
39 +# @DESCRIPTION:
40 +# EBUILD_DEATH_HOOK function to display some warnings/information about build environment.
41 chromium_pkg_die() {
42 if [[ "${EBUILD_PHASE}" != "compile" ]]; then
43 return
44 --
45 2.31.1