Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 905400 - distutils-r1.eclass: meson-python handling currently loses Meson logs
Summary: distutils-r1.eclass: meson-python handling currently loses Meson logs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-05-01 07:51 UTC by Sam James
Modified: 2023-05-03 16:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
0001-distutils-r1.eclass-ensure-meson-python-uses-a-stabl.patch (needs tweaking for dir though) (file_905400.txt,1.66 KB, patch)
2023-05-01 07:51 UTC, Sam James
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>