During stage building, there are times when $ROOT does NOT contain any Python binary. dev-libs/libxml2-2.7.7 exhibited this problem, where the call was: python_execute_function -f -q econf ${myconf} Since there is no Python installed, iterated_PYTHON_ABIS is completely empty, and the arguments given are NEVER called. Additionally, since it never entered the loop, it returns successfully, when it clearly should not. Additional caveats: - Due to stage building requirements, we CANNOT bring in dev-lang/python at this phase. So do NOT add it to non-conditional DEPEND of any ebuild/eclass. Changes requested: 1. Check if the iterated_PYTHON_ABIS is empty before attempting to iterate it. die if this is the case. 2. Everywhere that you are fixing calls by just adding python_execute_function in front, consider what happens if Python is NOT available or desired. I fixed libxml by changing it to: + if use python; then python_execute_function -f -q econf ${myconf} + else + econf ${myconf} + fi
FYI: We already ran into this for bug 317891
Fixed.