Bug 109325

Summary: mesa: Need ability to retrieve command line of Meson configuration
Product: Mesa Reporter: Matt Turner <mattst88>
Component: OtherAssignee: Dylan Baker <baker.dylan.c>
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 109323    

Description Matt Turner 2019-01-11 22:30:05 UTC
Similar to how the configuration command line is saved in autotools' config.log, there needs to be a way to retrieve this information from Meson.

Dylan is working on this with the upstream Meson project and has plans for a stop-gap solution as well.
Comment 1 Eric Engestrom 2019-01-31 16:16:03 UTC
There is an open issue upstream for a better solution:

https://github.com/mesonbuild/meson/issues/4637

But in the mean time, Dylan wrote a script that does it for us.

commit 4a131a13303773d8b0e4d47e917b9c52d439146a (fdo/mr/106)
Author: Dylan Baker <dylan@pnwbakers.com>
Date:   Fri Jan 11 15:36:05 2019 -0800

    meson: Add a script to extract the cmd line used for meson
    
    Upstream I'm persuing a more comprehensive solution, but this should
    prove a suitable stop-gap measure in the meantime.

The script is bin/meson-cmd-extract.py and you simply pass it the build directory, and it prints all the options back.

Marking this bug as fixed, as we have a solution for Mesa.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.