Skip to content

Fix build with debug logging disabled - #802

Merged
smcv merged 2 commits into
containers:mainfrom
smcv:debug
Sep 21, 2026
Merged

smcv merged 2 commits into
containers:mainfrom
smcv:debug

Conversation

@smcv

@smcv smcv commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator
  • utils: Fix the build with debugging disabled

    When debug-level log messages weren't enabled at compile-time, we
    can't look at bwrap_is_debugging, because it doesn't exist.

    Fixes: fd73997 "Add a mechanism to enable debug() at compile-time"

  • build: Fix enablement of debug logging

    Instead of the intended debug_logging option (which is about
    debug-level log messages), the build-system switch was using Meson's
    built-in debug option (which is about emitting debug symbols for gdb).

    Fixes: fd73997 "Add a mechanism to enable debug() at compile-time"


cc @cgwalters @alexlarsson @swick

I'd like to get a 0.13.0 release out with #756 included, but this is a blocker for that.

When debug-level log messages weren't enabled at compile-time, we
can't look at `bwrap_is_debugging`, because it doesn't exist.

Fixes: fd73997 "Add a mechanism to enable debug() at compile-time"
Signed-off-by: Simon McVittie <smcv@collabora.com>
Instead of the intended `debug_logging` option (which is about
debug-level log messages), the build-system switch was using Meson's
built-in `debug` option (which is about emitting debug symbols for gdb).

Fixes: fd73997 "Add a mechanism to enable debug() at compile-time"
Signed-off-by: Simon McVittie <smcv@collabora.com>
@smcv
smcv merged commit 8e5e757 into containers:main Sep 21, 2026
4 checks passed
@smcv

smcv commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator Author

I'll aim to get this released tomorrow.

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.

2 participants