-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial support for meson build system #216
base: main
Are you sure you want to change the base?
Conversation
ABI checking: This is all using the libabigail tooling. Some docs are here if that's helpful. SPEC file: this is downstream packaging input. We can take care of it on merge, but I think it's a pretty easy change - there are macros for autotools, and macros for meson. Some more information is in the Fedora packaging guidelines. Tests: There are a bunch of programs in tests/ that get built and run, typically generating a "result" file. Passing typically constitutes the "result" file matching the "goal" file. I don't know that this clearly maps on to how meson views testing - calling out to a shell script that does the running + comparisons after the programs have been built is probably fine. |
Meson has no feature to compare such logic. I guess you could submit a feature request to add such a feature, though I'm not sure what it would look like 🤔 so it might be better as a custom test script wrapper. |
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
c009082
to
c160db4
Compare
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
Signed-off-by: Reagan Bohan <[email protected]>
I think it would be nice to have this merged before a next efivar release. One thing I noticed while trying this is that it attempts to run the build and run the tests by default, which again hits issues in cross-compilation environments. The tests generation (during build) attempt to run About the Android.mk TODO, would it be possible at all to just keep the Android.mk for now, so this MR could get back on track? I have seen projects who transitioned to meson but ended up keeping Android.mk for a while until it was sorted out. Thanks |
I wonder why efisecdb is run at build time instead of by the test harness? The test harness for a passing test only runs cmp/diff. |
Setting exe_wrapper (qemu-user) when cross compiling allows tests to run, but for people who don't have an exe_wrapper, I will disable tests.
This is my intention, however I had to change the paths of the efivar-guids.h so I would like to change and then test the Android.mk to make sure 100% it works. I will experiment with this soon. |
Thanks for going back into this. It now skips trying to build the tests and running the target binaries. I solved it locally with:
With that, the initial meson support seems good to me. Thanks! |
TODO:
Can anyone explain how the abi checking, spec file and tests work roughly so I can implement them?