diff options
author | 2014-06-28 19:46:57 -0700 | |
---|---|---|
committer | 2014-06-28 19:46:57 -0700 | |
commit | 9e8bb7a327a7457001dde5f7ddbf1edf43be96b6 (patch) | |
tree | 7983fb447c00a8e9a467160f30d4dbbd90126efe | |
parent | package.{un,}mask: mask/unmask pairs (diff) | |
download | gmt-9e8bb7a327a7457001dde5f7ddbf1edf43be96b6.tar.gz gmt-9e8bb7a327a7457001dde5f7ddbf1edf43be96b6.tar.bz2 gmt-9e8bb7a327a7457001dde5f7ddbf1edf43be96b6.zip |
eclass/multilib-build: crashing bad, don't.
During multilib_get_enabled_abi_pairs, we employ the use helper to
determine whether a particular flag is enabled. All well and good,
except that this crashes with a QA thingy (maybe only on developer
profiles?) when that flag is not in IUSE, which, notably, is not
a requirement; indeed, we have a feature in there to create precisely
this circumstance by design.
Easy solution: use use_if_iuse instead.
Signed-off-by: Gregory M. Tuner <gmt@be-evil.net>
-rw-r--r-- | eclass/multilib-build.eclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass index d948e54..ce0d60e 100644 --- a/eclass/multilib-build.eclass +++ b/eclass/multilib-build.eclass @@ -264,7 +264,7 @@ multilib_get_enabled_abi_pairs() { # paludis is broken (bug #486592), and switching it locally # for the split is more complex than cheating like this for m_abi in ${m_abis//,/ }; do - if [[ ${m_abi} == ${abi} ]] && use "${m_flag}"; then + if [[ ${m_abi} == ${abi} ]] && use_if_iuse "${m_flag}"; then echo "${m_flag}.${abi}" found=1 break 2 |