diff options
author | Michał Górny <mgorny@gentoo.org> | 2014-04-28 17:38:21 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2014-04-28 17:38:21 +0000 |
commit | a4667153e4e36a7636ecb5bd7c337495e1a0157f (patch) | |
tree | d2ab47bb9941b006fe1e60545fe6fc5ecfa5cb3c /eclass/multilib-build.eclass | |
parent | Backport use of multilib_native_use_enable from the newer version, fix whites... (diff) | |
download | gentoo-2-a4667153e4e36a7636ecb5bd7c337495e1a0157f.tar.gz gentoo-2-a4667153e4e36a7636ecb5bd7c337495e1a0157f.tar.bz2 gentoo-2-a4667153e4e36a7636ecb5bd7c337495e1a0157f.zip |
Deprecate multilib_build_binaries, and switch the code to use multilib_is_native_abi.
Diffstat (limited to 'eclass/multilib-build.eclass')
-rw-r--r-- | eclass/multilib-build.eclass | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass index 0ba54bfb8349..2ca8d82a6f9a 100644 --- a/eclass/multilib-build.eclass +++ b/eclass/multilib-build.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.39 2014/04/22 20:12:53 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.40 2014/04/28 17:38:21 mgorny Exp $ # @ECLASS: multilib-build.eclass # @MAINTAINER: @@ -394,7 +394,7 @@ _EOF_ mv "${root}/${f}" "${root}/${dir}/${CHOST}-${fn}" || die # symlink the native one back - if multilib_build_binaries; then + if multilib_is_native_abi; then ln -s "${CHOST}-${fn}" "${root}/${f}" || die fi done @@ -439,7 +439,9 @@ multilib_install_wrappers() { multilib_is_native_abi() { debug-print-function ${FUNCNAME} "${@}" - multilib_build_binaries "${@}" + [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments" + + [[ ${COMPLETE_MULTILIB} == yes || ${ABI} == ${DEFAULT_ABI} ]] } # @FUNCTION: multilib_build_binaries @@ -455,20 +457,21 @@ multilib_is_native_abi() { multilib_build_binaries() { debug-print-function ${FUNCNAME} "${@}" - [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments" + eqawarn "QA warning: multilib_build_binaries is deprecated. Please use the equivalent" + eqawarn "multilib_is_native_abi function instead." - [[ ${COMPLETE_MULTILIB} == yes || ${ABI} == ${DEFAULT_ABI} ]] + multilib_is_native_abi "${@}" } # @FUNCTION: multilib_native_use_with # @USAGE: <flag> [<opt-name> [<opt-value>]] # @DESCRIPTION: # Output --with configure option alike use_with if USE <flag> is enabled -# and executables are being built (multilib_build_binaries is true). +# and executables are being built (multilib_is_native_abi is true). # Otherwise, outputs --without configure option. Arguments are the same # as for use_with in the EAPI. multilib_native_use_with() { - if multilib_build_binaries; then + if multilib_is_native_abi; then use_with "${@}" else echo "--without-${2:-${1}}" @@ -479,11 +482,11 @@ multilib_native_use_with() { # @USAGE: <flag> [<opt-name> [<opt-value>]] # @DESCRIPTION: # Output --enable configure option alike use_with if USE <flag> -# is enabled and executables are being built (multilib_build_binaries +# is enabled and executables are being built (multilib_is_native_abi # is true). Otherwise, outputs --disable configure option. Arguments are # the same as for use_enable in the EAPI. multilib_native_use_enable() { - if multilib_build_binaries; then + if multilib_is_native_abi; then use_enable "${@}" else echo "--disable-${2:-${1}}" @@ -495,13 +498,13 @@ multilib_native_use_enable() { # @DESCRIPTION: # Output the concatenation of <true1> (or 'yes' if unspecified) # and <true2> if USE <flag> is enabled and executables are being built -# (multilib_build_binaries is true). Otherwise, output the concatenation +# (multilib_is_native_abi is true). Otherwise, output the concatenation # of <false1> (or 'no' if unspecified) and <false2>. Arguments # are the same as for usex in the EAPI. # # Note: in EAPI 4 you need to inherit eutils to use this function. multilib_native_usex() { - if multilib_build_binaries; then + if multilib_is_native_abi; then usex "${@}" else echo "${3-no}${5}" |