Gentoo Archives: gentoo-dev

From: Justin Lecher <jlec@g.o>
To: gentoo-dev@l.g.o
Cc: Justin Lecher <jlec@g.o>
Subject: [gentoo-dev] [PATCH 3/8] virtualx.eclass: Use eqawarn instead of ewarn "QA:..."
Date: Sun, 29 Nov 2015 12:25:56
Message-Id: 1448799884-29158-4-git-send-email-jlec@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/8] virtualx.eclass updates version 3 by Justin Lecher
1 Signed-off-by: Justin Lecher <jlec@g.o>
2 ---
3 eclass/virtualx.eclass | 24 +++++++++++++-----------
4 1 file changed, 13 insertions(+), 11 deletions(-)
5
6 diff --git a/eclass/virtualx.eclass b/eclass/virtualx.eclass
7 index 8d66da0..c2bef68 100644
8 --- a/eclass/virtualx.eclass
9 +++ b/eclass/virtualx.eclass
10 @@ -22,6 +22,8 @@ case "${EAPI:-0}" in
11 ;;
12 esac
13
14 +inherit eutils
15 +
16 # @ECLASS-VARIABLE: VIRTUALX_REQUIRED
17 # @DESCRIPTION:
18 # Variable specifying the dependency on xorg-server and xhost.
19 @@ -58,15 +60,15 @@ case ${VIRTUALX_REQUIRED} in
20 ;;
21 optional|tests)
22 # deprecated section YAY.
23 - ewarn "QA: VIRTUALX_REQUIRED=optional and VIRTUALX_REQUIRED=tests are deprecated."
24 - ewarn "QA: You can drop the variable definition completely from ebuild,"
25 - ewarn "QA: because it is default behaviour."
26 + eqawarn "VIRTUALX_REQUIRED=optional and VIRTUALX_REQUIRED=tests are deprecated."
27 + eqawarn "You can drop the variable definition completely from ebuild,"
28 + eqawarn "because it is default behaviour."
29
30 if [[ -n ${VIRTUALX_USE} ]]; then
31 # so they like to specify the useflag
32 - ewarn "QA: VIRTUALX_USE variable is deprecated."
33 - ewarn "QA: Please read eclass manpage to find out how to use VIRTUALX_REQUIRED"
34 - ewarn "QA: to achieve the same behaviour."
35 + eqawarn "VIRTUALX_USE variable is deprecated."
36 + eqawarn "Please read eclass manpage to find out how to use VIRTUALX_REQUIRED"
37 + eqawarn "to achieve the same behaviour."
38 fi
39
40 [[ -z ${VIRTUALX_USE} ]] && VIRTUALX_USE="test"
41 @@ -97,9 +99,9 @@ virtualmake() {
42
43 # backcompat for maketype
44 if [[ -n ${maketype} ]]; then
45 - ewarn "QA: ebuild is exporting \$maketype=${maketype}"
46 - ewarn "QA: Ebuild should be migrated to use VIRTUALX_COMMAND=${maketype} instead."
47 - ewarn "QA: Setting VIRTUALX_COMMAND to \$maketype conveniently for now."
48 + eqawarn "ebuild is exporting \$maketype=${maketype}"
49 + eqawarn "Ebuild should be migrated to use VIRTUALX_COMMAND=${maketype} instead."
50 + eqawarn "Setting VIRTUALX_COMMAND to \$maketype conveniently for now."
51 VIRTUALX_COMMAND=${maketype}
52 fi
53
54 @@ -175,8 +177,8 @@ virtualmake() {
55 Xmake() {
56 debug-print-function ${FUNCNAME} "$@"
57
58 - ewarn "QA: you should not execute make directly"
59 - ewarn "QA: rather execute Xemake -j1 if you have issues with parallel make"
60 + eqawarn "you should not execute make directly"
61 + eqawarn "rather execute Xemake -j1 if you have issues with parallel make"
62 VIRTUALX_COMMAND="emake -j1" virtualmake "$@"
63 }
64
65 --
66 2.6.3