distutils-r1.eclass: Handle missing BUILD_DIR for any-r1 API
authorMichał Górny <mgorny@gentoo.org>
Sun, 1 Dec 2019 16:12:55 +0000 (17:12 +0100)
committerMichał Górny <mgorny@gentoo.org>
Sun, 1 Dec 2019 20:19:34 +0000 (21:19 +0100)
commitf9b70d39ab2c06e476f3e8dc09d1d8f16e74e099
treeecbdfb341770c2a5289c872ecca41c03c8acd563
parent1a16ffb7d32edfb47d422fd07d15909a56bc64c0
distutils-r1.eclass: Handle missing BUILD_DIR for any-r1 API

When any-r1 API is used for *_all sub-phases, an implementation that
was not selected by the user may be used.  In this case,
DISTUTILS_IN_SOURCE_BUILD will not create the BUILD_DIR for this
implementation; however, the phase runner will still try to enter it
and fail.  Handle this gracefully by falling back to ${S}.

Closes: https://bugs.gentoo.org/701506
Signed-off-by: Michał Górny <mgorny@gentoo.org>
eclass/distutils-r1.eclass