Skip to content

Fix: update meson options to avoid deprecation warnings#764

Merged
mvandervoord merged 2 commits into
ThrowTheSwitch:masterfrom
dloidolt:fix-meson-depreciation
Mar 27, 2026
Merged

Fix: update meson options to avoid deprecation warnings#764
mvandervoord merged 2 commits into
ThrowTheSwitch:masterfrom
dloidolt:fix-meson-depreciation

Conversation

@dloidolt
Copy link
Copy Markdown

@Letme
Copy link
Copy Markdown
Contributor

Letme commented Mar 27, 2026

@lovetheguitar also approved this (thumbs-up), so I am not sure what are conflicts remaining but @mvandervoord can probably merge it.

@lovetheguitar
Copy link
Copy Markdown

@lovetheguitar also approved this (thumbs-up), so I am not sure what are conflicts remaining but @mvandervoord can probably merge it.

Yes, totally works to get rid of the warning 👍

@mvandervoord mvandervoord merged commit 6502a67 into ThrowTheSwitch:master Mar 27, 2026
4 checks passed
mvandervoord pushed a commit that referenced this pull request May 22, 2026
Commit 6502a67 (merge of PR #764) accidentally downgraded the
`extension_memory` option from `type: 'feature'` to `type: 'boolean'`
during conflict resolution. The PR itself just removed quotes around
boolean values (the Meson 1.1 deprecation fix), but its branch was
based on an older master where extension_memory was still boolean;
the merge resolution chose that stale version over master's `feature`.

meson.build still calls `build_memory.enabled()` and `.auto()`, which
are feature-option methods; on a boolean option they raise:

    ERROR: Unknown method "enabled" in object
    <[BooleanHolder] holds [bool]: False> of type BooleanHolder.

Restore the `type: 'feature', value: 'auto'` declaration that existed
on master before the merge. No change needed in meson.build; its usage
of enabled() + auto() is correct for a feature option.

Verified:
  - `meson setup` now succeeds (pre-fix: failed with the error above)
  - `meson configure -Dextension_memory=enabled` applies cleanly
  - `ninja -C build` builds libunity.a including the memory extension
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