Skip to content

Fix regression installing NoRuntime extensions such as openh264 - #6587

Merged
smcv merged 3 commits into
flatpak:mainfrom
smcv:no-runtime
Apr 10, 2026
Merged

smcv merged 3 commits into
flatpak:mainfrom
smcv:no-runtime

Conversation

@smcv

@smcv smcv commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator

smcv added 2 commits April 9, 2026 18:48
When FlatpakDir runs extra-data helpers in apply_extra_data(),
if the helper is statically linked, it might not need a runtime at all.
For example the helper for openh264 falls into this category.

Fixes: ac62ebe "run: Use O_PATH fds for the runtime and app deploy directories"
Helps: flatpak#6583
Signed-off-by: Simon McVittie <[email protected]>
org.freedesktop.Platform.openh264 is one example of an extension that
runs a statically-linked extra-data helper, with no runtime. Only open
the runtime if there is one.

Fixes: ac62ebe "run: Use O_PATH fds for the runtime and app deploy directories"
Resolves: flatpak#6583
Signed-off-by: Simon McVittie <[email protected]>
@smcv

smcv commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

Not tested yet, but I think this is the right fix.

@smcv smcv added ready-for-review and removed WIP labels Apr 9, 2026
@smcv
smcv requested a review from swick April 9, 2026 17:53
@smcv

smcv commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

Not tested yet, but I think this is the right fix.

Yes, seems to work. Most easily tested with

sudo env DEBUG_INVOCATION=1 G_DEBUG=fatal-criticals ./_build/system-helper/flatpak-system-helper -vr

on a sufficiently expendable test machine.

@smcv
smcv marked this pull request as ready for review April 9, 2026 18:40
@smcv

smcv commented Apr 9, 2026

Copy link
Copy Markdown
Collaborator Author

cc @bertogg fyi

@bbhtt

bbhtt commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

It would be useful to have tests for the NoRuntime extra-data.

@bbhtt

bbhtt commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator

here is a quick attempt to test this 37ad30e

@smcv

smcv commented Apr 10, 2026

Copy link
Copy Markdown
Collaborator Author

here is a quick attempt to test this 37ad30e

Good thinking, I added it to this branch.

@smcv
smcv added this pull request to the merge queue Apr 10, 2026
Merged via the queue into flatpak:main with commit 79cb10e Apr 10, 2026
11 checks passed
@smcv
smcv deleted the no-runtime branch April 10, 2026 11:45
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.

[Bug]: 1.16.5: Failed to apply extra-data: "Bad address" when installing org.freedesktop.Platform.openh264

3 participants