Skip to content

Conversation

@bonzini
Copy link
Collaborator

@bonzini bonzini commented Dec 18, 2025

Since commit 56e84d3, add_wrap is called instead of using setdefault() by hand. However, this causes the error for "Multiple wrap files provide..." to trigger incorrectly. To avoid this add a flag to add_wrap() that signals that the add is part of _merge_wraps.

However, like after commit 56e84d3, do not add the "provides" unless the wrap itself is used. This ensures that the "provides" set is synchronized with the meson.build file that will be used.

Testcase by George Sedov.

Fixes: #15175

Since commit 56e84d3, add_wrap is called instead of using setdefault()
by hand.  However, this causes the error for "Multiple wrap files provide..."
to trigger incorrectly.  To avoid this add a flag to add_wrap() that signals
that the add is part of _merge_wraps.

However, like after commit 56e84d3, do not add the "provides" unless the
wrap itself is used.  This ensures that the "provides" set is synchronized
with the meson.build file that will be used.

Testcase by George Sedov.

Fixes: mesonbuild#15175
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

multiple wrap files error starting with meson 1.9.0

1 participant