Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 5/6] ltprune.eclass: Deprecate it verbosely
Date: Tue, 06 Mar 2018 17:27:58
Message-Id: 20180306172543.26683-6-mgorny@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/6] EAPI 7 eclass deprecations by "Michał Górny"
1 ---
2 eclass/ltprune.eclass | 7 +++++++
3 1 file changed, 7 insertions(+)
4
5 diff --git a/eclass/ltprune.eclass b/eclass/ltprune.eclass
6 index a8bb4c842bc0..f1dd795aea2a 100644
7 --- a/eclass/ltprune.eclass
8 +++ b/eclass/ltprune.eclass
9 @@ -17,6 +17,8 @@ if [[ -z ${_LTPRUNE_ECLASS} ]]; then
10
11 case ${EAPI:-0} in
12 0|1|2|3|4|5|6)
13 + # for eqawarn
14 + [[ -z ${_EUTILS_ECLASS} ]] && inherit eutils
15 ;;
16 *)
17 die "${ECLASS}: banned in EAPI=${EAPI}; use 'find' instead";;
18 @@ -52,6 +54,11 @@ inherit toolchain-funcs
19 prune_libtool_files() {
20 debug-print-function ${FUNCNAME} "$@"
21
22 + eqawarn "prune_libtool_files is deprecated. Please use the following one-liner"
23 + eqawarn "instead:"
24 + eqawarn
25 + eqawarn " find "${D}" -name '*.la' -delete || die"
26 +
27 local removing_all removing_modules opt
28 for opt; do
29 case "${opt}" in
30 --
31 2.16.2