Skip to content

Conversation

@stephanlachnit
Copy link
Contributor

@stephanlachnit stephanlachnit commented Oct 1, 2025

This PR:

  • Cleans up the build files, e.g. by removing unnecessary clang-format runs or adding compiler warnings (should be done via warning_level or manually via compile args, but really in a subproject this doesn't make a lot of sense)
  • Reduces the required Meson version to 0.59.0, in order to be able to use this on Ubuntu 22.04 LTS - this version ignores the cpp_std default argument, but I don't think this is an issue.

@stephanlachnit
Copy link
Contributor Author

What I haven't checked if we can run unbundled gtest, and the tests don't run as part of the CI.

@stephanlachnit stephanlachnit marked this pull request as ready for review October 1, 2025 08:30
Copy link
Member

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I haven't checked if we can run unbundled gtest, and the tests don't run as part of the CI.

Can't we just configure this in ci_config.json? It should have always been enabled, as soon as the option was added, imo.

@stephanlachnit stephanlachnit force-pushed the p-yaml-cpp-meson-0-61 branch 2 times, most recently from b252b76 to 10b004c Compare October 1, 2025 14:16
@stephanlachnit
Copy link
Contributor Author

Can't we just configure this in ci_config.json? It should have always been enabled, as soon as the option was added, imo.

Tried but:

  • doesn't compile due to warnings on arm (and those were not the ignored ones)
  • does not compile on windows (I think due to bundled gtest)

I don't care enough about the test to take the time to fix the tests - if you don't mind, I would merge as is and leave this open for someone else to fix. The PR already improve the quality of the wrap.

@eli-schwartz
Copy link
Member

The PR already improve the quality of the wrap.

"Cleaning up" is also not high priority to merge though, since it doesn't really affect things? But besides, I do think that the fact that part of this wrap doesn't successfully compile because it isn't enabled in CI is a good reason to not keep skipping a resolution.

@simonspa
Copy link

simonspa commented Oct 2, 2025

One thing this would solve is that currently this wrap does not work under Ubuntu 22.04 LTS due to the meson version requirement:

Run-time dependency yaml-cpp found: NO (tried pkgconfig and cmake)
Looking for a fallback subproject for the dependency yaml-cpp
Downloading yaml-cpp source from https://github.com/jbeder/yaml-cpp/archive/refs/tags/0.8.0.zip
Download size: 1308318
Downloading: ..........
Downloading yaml-cpp patch from https://wrapdb.mesonbuild.com/v2/yaml-cpp_0.8.0-1/get_patch
Download size: 4073
Downloading: ..........
Executing subproject yaml-cpp 
subprojects/yaml-cpp-0.8.0/meson.build:1:0: ERROR: Meson version is 0.61.2 but project requires >=0.63.0

@stephanlachnit
Copy link
Contributor Author

@eli-schwartz how about:

  • I removed the tests for now and we merge this
  • I will open a new PR where I re-add the tests with wrapdb gtest and we go from there?

@stephanlachnit
Copy link
Contributor Author

@eli-schwartz another reason to drop the tests: yaml-cpp 0.8 is so old that gtest 1.17 does not work at all. When trying to build from wrapdb (meson setup build -Dwraps=yaml-cpp -Dyaml-cpp:tests=enabled), I was not able to get gtest 1.11 even with version restrictions in the call to dependency('gmock', version: '1.11.0')

@stephanlachnit
Copy link
Contributor Author

@eli-schwartz I managed to fix the tests by switching the default to C++17

@neheb
Copy link
Collaborator

neheb commented Oct 9, 2025

0.63.0: cpp_std in subproject default_options

this gets avoided with override_options.

@stephanlachnit
Copy link
Contributor Author

0.63.0: cpp_std in subproject default_options

this gets avoided with override_options.

Done!

@eli-schwartz
Copy link
Member

@eli-schwartz I managed to fix the tests by switching the default to C++17

Do they run in CI?

@stephanlachnit stephanlachnit force-pushed the p-yaml-cpp-meson-0-61 branch 3 times, most recently from f1e748c to ff8925f Compare October 13, 2025 11:54
@stephanlachnit
Copy link
Contributor Author

Do they run in CI?

Sorry forgot, now they do!

@stephanlachnit
Copy link
Contributor Author

@eli-schwartz can we merge this now?

@neheb neheb merged commit 2b73c64 into mesonbuild:master Oct 23, 2025
16 checks passed
@stephanlachnit stephanlachnit deleted the p-yaml-cpp-meson-0-61 branch October 23, 2025 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants