summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-05-01 00:16:57 -0400
committerSam James <sam@gentoo.org>2023-05-02 20:11:08 +0100
commit96e7f21a53c92eb4a5c4077267bb1bf1ee8accfd (patch)
tree55d139b2d22bf6d34003cd56ec4933c7b374cc3d /eclass/distutils-r1.eclass
parentapp-arch/tar: Stabilize 1.34-r3 hppa, #905287 (diff)
downloadgentoo-96e7f21a53c92eb4a5c4077267bb1bf1ee8accfd.tar.gz
gentoo-96e7f21a53c92eb4a5c4077267bb1bf1ee8accfd.tar.bz2
gentoo-96e7f21a53c92eb4a5c4077267bb1bf1ee8accfd.zip
distutils-r1.eclass: ensure meson-python uses a stable build directory
When not passing an explicit build directory, meson-python configures meson into a build directory that is rooted in a tempdir with a random suffix. This results in unstable paths, which currently disappear after meson-python completes (either with success or failure). It doesn't handle incremental or resumed builds, and it's very difficult to debug -- for example by inspecting the logfile that meson itself prints out when the configure stage fails. Bug: https://bugs.gentoo.org/905396 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r--eclass/distutils-r1.eclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 4346a86c2097..57c0548e28ff 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1305,6 +1305,7 @@ distutils_pep517_install() {
fi
local root=${1}
+ export BUILD_DIR
local -x WHEEL_BUILD_DIR=${BUILD_DIR}/wheel
mkdir -p "${WHEEL_BUILD_DIR}" || die
@@ -1326,6 +1327,7 @@ distutils_pep517_install() {
ninjaopts = shlex.split(os.environ["NINJAOPTS"])
print(json.dumps({
+ "builddir": "${BUILD_DIR}",
"setup-args": sys.argv[1:],
"compile-args": ["-v"] + ninjaopts,
}))
@@ -1341,6 +1343,7 @@ distutils_pep517_install() {
ninjaopts = shlex.split(os.environ["NINJAOPTS"])
print(json.dumps({
+ "builddir": "${BUILD_DIR}",
"setup-args": sys.argv[1:],
"compile-args": [
"-v",