Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 905400

Summary: distutils-r1.eclass: meson-python handling currently loses Meson logs
Product: Gentoo Linux Reporter: Sam James <sam>
Component: EclassesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: eschwartz, mgorny
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=905396
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: 0001-distutils-r1.eclass-ensure-meson-python-uses-a-stabl.patch (needs tweaking for dir though)

Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-01 07:51:33 UTC
Created attachment 860984 [details, diff]
0001-distutils-r1.eclass-ensure-meson-python-uses-a-stabl.patch (needs tweaking for dir though)

See https://bugs.gentoo.org/905396#c4 and:

[06:51:19]  <@sam_> mgorny, ztrawhcse: http://sprunge.us/YD7KGa works for me (s/BUILD_DIR/WHEEL_BUILD_DIR/) (easy tester is to try emerge scipy[fortran] w/ meson-python installed but not pythran). but i don't think we want to do WHEEL_BUILD_DIR, so I guess our choices are WHEEL_BUILD_DIR/.. or export BUILD_DIR as well. i prefer the latter
[06:51:29]  <@sam_> anyway please push it once you decide what you prefer
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-05-03 16:48:34 UTC
commit 96e7f21a53c92eb4a5c4077267bb1bf1ee8accfd
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2023-05-01 06:16:57 +0200
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-05-02 21:11:08 +0200

    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>