Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude org.freedesktop.Platform.ffmpeg_full.i386 extension #152

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

wjt
Copy link
Member

@wjt wjt commented Feb 8, 2024

I learned today that, in addition to the
runtime/org.freedesktop.Platform.ffmpeg-full/$ARCH/23.08 extension that exists on
all architectures, on x86_64 there is also
runtime/org.freedesktop.Platform.ffmpeg_full.i386/x86_64/23.08 to
support 32-bit binaries in an otherwise 64-bit environment. This runtime
was not being explicitly excluded from our images.

I checked the image server database with the following query:

select
    build_id
from
    builds_manifest
where
    (data -> 'flatpak' -> 'runtimes') ?| array[
        'org.freedesktop.Platform.ffmpeg_full.i386/x86_64/20.08',
        'org.freedesktop.Platform.ffmpeg_full.i386/x86_64/21.08',
        'org.freedesktop.Platform.ffmpeg_full.i386/x86_64/22.08',
        'org.freedesktop.Platform.ffmpeg_full.i386/x86_64/23.08'
    ]
limit 1;

(object ?| keys is true if the JSON value object contains any
element of the array keys as a key.
https://www.postgresql.org/docs/13/functions-json.html)

Happily, we have never accidentally shipped this extension. Exclude it
just to be safe.

I learned today that, in addition to the
runtime/org.freedesktop.Platform.ffmpeg-full/$ARCH/23.08 extension that exists on
all architectures, on x86_64 there is also
runtime/org.freedesktop.Platform.ffmpeg_full.i386/x86_64/23.08 to
support 32-bit binaries in an otherwise 64-bit environment. This runtime
was not being explicitly excluded from our images.

I checked the image server database with the following query:

    select
        build_id
    from
        builds_manifest
    where
        (data -> 'flatpak' -> 'runtimes') ?| array[
            'org.freedesktop.Platform.ffmpeg_full.i386/x86_64/20.08',
            'org.freedesktop.Platform.ffmpeg_full.i386/x86_64/21.08',
            'org.freedesktop.Platform.ffmpeg_full.i386/x86_64/22.08',
            'org.freedesktop.Platform.ffmpeg_full.i386/x86_64/23.08'
        ]
    limit 1;

(`object ?| keys` is true if the JSON value `object` contains any
element of the array `keys` as a key.
https://www.postgresql.org/docs/13/functions-json.html)

Happily, we have never accidentally shipped this extension. Exclude it
just to be safe.
@wjt wjt merged commit 93db567 into master Feb 10, 2024
2 checks passed
@wjt wjt deleted the ffmpeg_full-i386 branch February 10, 2024 08:07
wjt added a commit that referenced this pull request Feb 10, 2024
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