Skip to content

appimage: Qt Network's krb5/GSSAPI dependency keeps EOL OpenSSL 1.1.1 in the bundle #2815

Closed

Description

@zackees

What happened

The AppImage still bundles the manylinux base's EOL OpenSSL 1.1.1k next to the pinned 3.5.9, because libQt6Network.so.6 links libgssapi_krb5.so.2 and the base's krb5 libraries need libcrypto.so.1.1.

Unpacking the artifact of run 40704567551 (--appimage-extract):

usr/lib/libssl.so.1.1     -> OpenSSL 1.1.1k  FIPS 25 Mar 2021
usr/lib/libcrypto.so.1.1  -> OpenSSL 1.1.1k  FIPS 25 Mar 2021
usr/lib/libQt6Network.so.6: NEEDED libgssapi_krb5.so.2
usr/lib/libkrb5.so.3, libk5crypto.so.3, libkrb5support.so.0, libgssapi_krb5.so.2: NEEDED libcrypto.so.1.1

The libdatachannel half of this (NEEDED libssl.so.1.1) is fixed in #2814 / obs-studio-libs#24. These four are the remaining source.

What should happen

One of:

  1. Build Qt with -DFEATURE_gssapi=OFF (preferred): OBS makes HTTP requests (update check, service list, remote text) and never uses SPNEGO/Negotiate, so the GSSAPI auth delegate is dead weight — dropping it removes libgssapi_krb5 and with it the krb5 stack and the 1.1.1 TLS libraries. Requires a recipes/linux/qt6.sh change in obs-studio-libs, a Qt rebuild and a republished qt6 artifact, then the deps.lock.json bump here.
  2. Add a pinned krb5 recipe built against /opt/obs-deps/openssl (more work, keeps a library OBS does not use).

Then land the guard that should have caught this: check_appdir.py fails the AppDir assembly when any libssl.so.1.* / libcrypto.so.1.* file is bundled, or any bundled ELF has a NEEDED on it (patch drafted with this issue's evidence; the gate is held until the bundle is actually clean, or it fails every AppImage build).

Version / context

Activity

  1. added
    bug
    on Oct 28, 2026
  2. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    /ready

    Meets the definition of Ready: the reproduction is the unpacked artifact of run 40704567551 with the NEEDED chain spelled out (libQt6Network.so.6 -> libgssapi_krb5.so.2 -> libcrypto.so.1.1), the acceptance criteria are concrete (the AppDir carries no libssl.so.1.* / libcrypto.so.1.* file and no bundled ELF NEEDEDs one, with check_appdir.py failing the assembly if it reappears), and the scope is the preferred option 1: -DFEATURE_gssapi=OFF in recipes/linux/qt6.sh in obs-studio-libs, a Qt rebuild, a republished qt6 artifact and the deps.lock.json bump here. No open Decision needed: — the issue names option 1 as preferred and option 2 as the fallback.

    Two scoping notes for whoever claims it:

    • The check_appdir.py guard is part of the same task, but it can only be switched on once the bundle is clean (the issue says so): land it in the same PR behind the clean bundle, not before.
    • Option 2 (a pinned krb5 built against /opt/obs-deps/openssl) is explicitly the more expensive fallback and not the scope; if option 1 turns out not to be buildable with the pinned Qt, that is a new Decision needed: on this issue rather than a silent switch.

    Labels: ready, P2, size:L — the recipe change is small, the Qt rebuild and artifact republish are what make it several days.

  3. added
    ready
    P2
    size:L
    on Oct 28, 2026
  4. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Claiming: appimage: drop Qt Network's krb5/GSSAPI dependency to remove EOL OpenSSL 1.1.1 from the bundle

    Plan (option 1 from the issue):

    1. recipes/linux/qt6.sh in obs-rust/obs-studio-libs: configure Qt with -DFEATURE_gssapi=OFF (OBS never uses SPNEGO/Negotiate), one PR there; local gate is uv run --group dev pytest + ruff check/ruff format --check.
    2. Rebuild the qt6 recipe in the manylinux stack image, pack as a new rN label, publish the release asset and add the manifest entry on the assets branch; verify the pinned flavor.
    3. Bump deps.lock.json here to the new qt6 pin, then prove with the unpacked AppDir that libgssapi_krb5.so.2 and libssl/libcrypto.so.1.1 are gone (readelf -d over usr/lib/*.so*).
    4. check_appdir.py guard lands only once the bundle is actually clean, as the issue says.

    Expect the first PR shortly; the artifact rebuild is the long pole.

  5. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Progress (worker tick, 2026-10-28):

    • obs-rust/obs-studio-libs#25 — merged: recipes/linux/qt6.sh now configures qtbase with -DFEATURE_gssapi=OFF (the auth delegate is SPNEGO/Negotiate only; OBS makes no such request). Pinned by tests/test_qt6_recipe.py there.
    • Rebuilt qt6 in the manylinux_2_28 stack image and republished the Linux build as r1 beside the original (release qt6-6.11.1, asset qt6-6.11.1-linux-x86_64-glibc2.28-release-r1.tar.zst, sha256 b33d981e0c6…99fc); the assets catalog entry and the root index descriptor are live.
    • Library-level proof: readelf -d out/qt6/lib/libQt6Network.so.6 now lists only libQt6Core, libpthread, libz, libresolv, libstdc++, libm, libgcc_s, libc — no libgssapi_krb5.so.2, and no Qt library in the prefix NEEDs krb5.
    • obs-rust/obs-studio#2831 (draft) pins the r1 flavor in build-aux/appimage/manylinux/deps.lock.json with ci/test_appimage_qt6_gssapi_deps.py (RED on master's lock, GREEN locally) and adds the docs/features.md line.

    Running now: appimage run 40736416916 with platform_tests=true — the extracted-AppDir check that libssl.so.1.* / libcrypto.so.1.* are gone. The check_appdir.py guard lands once that is confirmed clean, as the issue says.

  6. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Both acceptance criteria are now met on #2831 (queued for merge):

    1. The bundle is clean. appimage.yaml -f platform_tests=true run 40736416916 is green on all five platform jobs; extracting its obs-studio-appimage artifact shows usr/lib with only libcrypto.so.3 / libssl.so.3 (plus Mbed TLS), no libssl.so.1* / libcrypto.so.1* / *krb5* / libgssapi* file, and readelf -d over all 242 bundled ELFs finds no NEEDED on any of them.
    2. A reappearance fails the build. build-aux/appimage/check_appdir.py now rejects libssl.so.1.* / libcrypto.so.1.* in the AppDir or a NEEDED on either soname; it passes on that extracted AppDir and fails on a copy with a libcrypto.so.1.1 added, and the three cases are pinned in ci/test_check_appdir.py.

    The publish chain: obs-rust/obs-studio-libs#25 (recipe) → qt6 r1 Linux asset + assets catalog entry (baecd50) → this lock bump.

  7. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Independent verification of the r1 artifact (not just the recipe diff):

    Rebuilt from the merged recipe. recipes/linux/qt6.sh at obs-studio-libs main 3ad7082 (-DFEATURE_gssapi=OFF) was rebuilt in obs-studio-libs-linux:openssl (manylinux_2_28, glibc 2.28), install prefix out/qt6:

    $ readelf -d out/qt6/lib/libQt6Network.so.6 | grep NEEDED
     libQt6Core.so.6  libpthread.so.0  libz.so.1  libresolv.so.2
     libstdc++.so.6   libm.so.6        libgcc_s.so.1  libc.so.6
    

    No libgssapi_krb5.so.2, and a readelf -d sweep over every lib/*.so* in the prefix finds no NEEDED on libgssapi_krb5, libssl.so.1.1 or libcrypto.so.1.1.

    The flag is what does it. A first build from a checkout still on the pre-fix branch (57b677e, no -DFEATURE_gssapi=OFF) produced a libQt6Network.so.6 with NEEDED libgssapi_krb5.so.2 — same source, same image, one configure flag apart.

    The published asset matches. Downloaded qt6-6.11.1-linux-x86_64-glibc2.28-release-r1.tar.zst from the release, sha256 b33d981e0c6ab0877e183e2c8d06d2dbc64dc26f60b88cbd42d3ba96aeca99fc (the sha #2831 pins), unpacked it, and libQt6Network.so.6 there has the same eight NEEDED entries and no krb5. The catalog on assets (qt6/manifest.json, flavor r1) carries that sha, so a consumer resolving the pin fetches a GSSAPI-free Qt.

    Status: #2831 (deps.lock pin + ci/test_appimage_qt6_gssapi_deps.py) is green and queued. Left on this issue: the check_appdir.py gate, which can only be switched on once an AppImage built from the r1 pin is itself clean (it would fail every AppImage build before that).

  8. zackees commented on Oct 28, 2026

    @zackees
    MemberAuthor

    Closing this out: both acceptance criteria are on master and verified there today (1b6e49289, the merge of #2831).

    1. The AppDir carries no EOL OpenSSL. build-aux/appimage/manylinux/deps.lock.json pins the GSSAPI-free qt6 rebuild (flavor: r1), and the appimage.yaml -f platform_tests=true run 40736416916 extracted AppDir holds only libcrypto.so.3 / libssl.so.3 — no libssl.so.1*, libcrypto.so.1*, *krb5* or libgssapi* file, and no bundled ELF with a NEEDED on one.
    2. A reappearance fails the build. build-aux/appimage/check_appdir.py rejects libssl.so.1.* / libcrypto.so.1.* in the AppDir or a NEEDED on either soname; it is called from assemble_appdir.py (so the assembly fails, not just the test) and again from test-appimage.sh. Locally on master: uv run --no-project pytest -q ci/test_check_appdir.py ci/test_appimage_qt6_gssapi_deps.py → 32 passed.
    3. docs/features.md carries the user-visible line ("The Linux AppImage no longer bundles OpenSSL 1.1.1: Qt is built without …").

    The publish chain is obs-rust/obs-studio-libs#25 (recipe, merged) → qt6 r1 Linux asset + assets catalog entry → this repo's lock pin.

    No remaining work here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2bugreadysize:L

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions