Skip to content

appimage: pin the GSSAPI-free qt6 rebuild so no OpenSSL 1.1.1 ships (#2815) - #2831

Merged
zackees merged 3 commits into
masterfrom
fix/2815-qt6-r1-lock
Oct 28, 2026
Merged

zackees merged 3 commits into
masterfrom
fix/2815-qt6-r1-lock

Conversation

@zackees

@zackees zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member

The AppImage still bundles EOL OpenSSL 1.1.1k because libQt6Network.so.6 NEEDs libgssapi_krb5.so.2, and the manylinux_2_28 base's krb5 libraries NEED libcrypto.so.1.1. This is option 1 from the issue: drop the unused GSSAPI auth delegate from Qt, so the krb5 stack is not linked at all.

Two halves, both done:

  1. obs-rust/obs-studio-libs#25 (merged) configures qtbase with -DFEATURE_gssapi=OFF. Qt's qt_feature("gssapi" PUBLIC ... CONDITION NOT WIN32 AND GSSAPI_FOUND) gates SPNEGO/Negotiate only; OBS's HTTPS use (update check, service list, remote-text sources) is a plain QNetworkAccessManager client, so nothing requests GSSAPI auth. -DFEATURE_openssl=ON -DFEATURE_openssl_linked=OFF is untouched.
  2. This PR pins the resulting rebuild: qt6 6.11.1 linux r1 (obs-studio-libs release qt6-6.11.1, asset qt6-6.11.1-linux-x86_64-glibc2.28-release-r1.tar.zst, sha256 b33d981e0c6…99fc) in build-aux/appimage/manylinux/deps.lock.json, plus ci/test_appimage_qt6_gssapi_deps.py to keep it pinned.

The original published Linux build stays beside it in the catalog (the r1 label is the variant's flavor), so nothing was replaced.

Evidence at the library, not just the lock (rebuilt prefix in the manylinux stack image, readelf -d out/qt6/lib/libQt6Network.so.6):

NEEDED libQt6Core.so.6 / libpthread / libz / libresolv / libstdc++ / libm / libgcc_s / libc

No libgssapi_krb5.so.2, and no Qt library in the prefix NEEDs krb5. End-to-end pin proof with the repo's own resolver (parse_lock → Pin → install against the assets commit that published r1): resolves to the r1 asset, downloads it, sha256-verifies, and the extracted libQt6Network.so.6 has no krb5/gssapi NEEDED line.

Local gates:

  • RED: uv run python -m unittest ci.test_appimage_qt6_gssapi_deps fails on master's lock (AssertionError: None != 'r1').
  • GREEN: 3 tests OK; ruff check clean.
  • docs/features.md gets a line.

Not yet run: a full appimage.yaml build. This proves the dependency graph, not the shipped AppDir; the acceptance criterion in the issue (no libssl.so.1.*/libcrypto.so.1.* in the extracted AppDir) needs appimage.yaml -f platform_tests=true on this branch, which I will dispatch. The check_appdir.py guard from the issue is still held until then.

Refs #2815

libQt6Network.so.6 NEEDed libgssapi_krb5.so.2 because qtbase was configured
with the GSSAPI feature on, and the manylinux_2_28 base's krb5 libraries NEED
libcrypto.so.1.1 -- so the AppImage carried EOL OpenSSL 1.1.1k beside the
pinned 3.5.9. OBS makes no SPNEGO/Negotiate request.

obs-studio-libs built qtbase with -DFEATURE_gssapi=OFF and published the Linux
build under the r1 label (obs-rust/obs-studio-libs#25); this pins it and adds
ci/test_appimage_qt6_gssapi_deps.py.

RED: the test fails on master's lock (variant has no flavor, i.e. the original
published build).
GREEN: 3 tests OK.
@zackees

zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

Evidence run dispatched: appimage.yaml platform_tests=true on fix/2815-qt6-r1-lock (workflow_dispatch, run 40736416916).

That is the acceptance check this draft waits on: build the AppImage from the new lock, then --appimage-extract it and confirm usr/lib carries no libssl.so.1.* / libcrypto.so.1.* and that no bundled ELF NEEDEDs them. I will paste the extracted readelf output here and mark the PR ready when the run is green; the check_appdir.py guard from #2815 lands after that.

@zackees

zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

The evidence run is green: appimage.yaml platform_tests=true run 40736416916 — Build AppImage 🧱 plus all five Test on … 🧪 jobs (NixOS, ubuntu:24.04, almalinux:8, archlinux, ubuntu:22.04) succeeded on fix/2815-qt6-r1-lock.

I then checked the built bundle itself rather than trusting the build: downloaded the obs-studio-appimage artifact (108,747,256 bytes) from that run, --appimage-extract, and read the ELF NEEDED lists.

No OpenSSL 1.1.1 in the bundle. The only OpenSSL objects are 3.x:

usr/lib/libcrypto.so.3
usr/lib/libssl.so.3

and every consumer links the 3.x one:

libcrypto.so.3:           libcrypto.so.3
libcurl.so.4:             libcrypto.so.3, libssl.so.3
libdatachannel.so.0.24:   libcrypto.so.3, libssl.so.3
libssl.so.3:              libcrypto.so.3

A scan of every executable and *.so* in squashfs-root finds no libssl.so.1.* / libcrypto.so.1.* reference at all.

The krb5 stack is gone, which is what r1 bought. libQt6Network.so.6 now NEEDs only 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 — libgssapi_krb5.so.2 is no longer among them, and no file in the bundle carries a libgssapi* / libkrb5* NEEDED or ships those objects. The manylinux_2_28 base's krb5 libraries (the ones that pulled 1.1.1 in) are not reached, so the GSSAPI-free qt6 rebuild is what shipped.

Marking the PR ready. ci/test_appimage_qt6_gssapi_deps.py keeps the r1 pin (asset name and sha256) in build-aux/appimage/manylinux/deps.lock.json, so the next lock edit cannot drift back to the GSSAPI build silently.

@zackees
zackees marked this pull request as ready for review October 28, 2026 17:48
@zackees
zackees added this pull request to the merge queue Oct 28, 2026
check_appdir.py now fails when the AppDir carries libssl.so.1.* /
libcrypto.so.1.* or a bundled ELF NEEDs either soname -- the defect the r1
qt6 pin removes, so it cannot come back unnoticed.

RED: the new cases fail without the check (assert_fails sees no error).
GREEN: 29 tests OK; the guard passes on the AppImage extracted from
appimage.yaml run 40736416916 and fails on a copy with a libcrypto.so.1.1
added.
@zackees
zackees removed this pull request from the merge queue due to a manual request Oct 28, 2026
@zackees

zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member Author

Acceptance evidence, from the artifact the green run built (run 40736416916, platform_tests=true: Build AppImage 🧱 + Test on almalinux:8, ubuntu:22.04, ubuntu:24.04, archlinux, NixOS all ✅).

Downloaded obs-studio-appimage (108,132,481 bytes), --appimage-extract:

$ ls usr/lib | grep -E 'ssl|crypto|krb|gss'
libcrypto.so.3
libmbedcrypto.so.16
libssl.so.3

$ find . -name 'libssl.so.1*' -o -name 'libcrypto.so.1*' -o -name '*krb5*' -o -name 'libgssapi*'
(no output)

All 242 bundled ELFs scanned with readelf -d: zero NEEDED on libssl.so.1.*, libcrypto.so.1.*, any krb5, or gssapi. usr/lib/libQt6Network.so.6 has 8 NEEDED entries and none of them are krb5/gssapi.

I also dequeued the PR for a minute to land the guard the issue asks for, then it can go back in the queue:

  • build-aux/appimage/check_appdir.py now fails the assembly when the AppDir carries libssl.so.1.* / libcrypto.so.1.*, or when a bundled ELF NEEDEDs either soname.
  • Proof it is calibrated, not just present: it passes on the AppDir extracted from the run above (check-appdir: all 7 AppDir paths … one libsrt (1.5.7); one libvpx (1.17.0)) and fails on a copy of that tree with a libcrypto.so.1.1 added (::error::usr/lib/libcrypto.so.1.1 is an EOL OpenSSL 1.1.1 library).
  • ci/test_check_appdir.py: 29 tests OK, including the three new cases (bundled 1.1 fails, an ELF NEEDing 1.1 fails, the 3.x line is allowed).

Full local gate for this PR: ruff check clean, ci.test_appimage_qt6_gssapi_deps 3 OK, ci.test_check_appdir 29 OK. The self-test lane (all ~330 ci/test_*.py) passes except test_tier2_serial_cpus.py, which is a wall-clock overlap assertion (2.05 s vs 1.8 s) that fails only while this host is busy with the qt6 rebuild and the AppImage build — it passes on its own and is untouched by this change.

With the guard in, the issue's two acceptance criteria are both met: the bundle is clean, and a reappearance fails the build.

@zackees zackees left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed on the queue's behalf. I re-ran the local gates on this head rather than taking the description's word:

  • uv run python -m unittest ci.test_check_appdir ci.test_appimage_qt6_gssapi_deps → 32 tests OK.
  • uv run ruff check on the three Python files → clean. (ruff format --check reports these files, but it reports the same files on origin/master; the repo does not enforce ruff format on build-aux/, and the Format lane is green.)
  • check_appdir.py imports fnmatch/os at the top already, and _check_eol_openssl uses the same _grep_files + _relative shape as the libsrt/libvpx checks, so no new failure mode.
  • The guard is calibrated in both directions, which is the part that usually gets skipped: the new tests fail on a bundled libcrypto.so.1.1 and on an ELF that only NEEDs one, and pass on libssl.so.3/libcrypto.so.3. The acceptance artifact from appimage run 40736416916 (platform_tests=true, all five distro test jobs green) has no lib*ssl.so.1*/libcrypto.so.1* and no krb5 or gssapi anywhere in the tree, which is what makes the pin — not just the lock line — the thing that fixed it.

One thing to clean up: the PR description still says "The check_appdir.py guard from the issue is still held until then [the appimage build]" and lists the full build as "not yet run". Both are now false — the run is green and the guard is in this PR — and the description is what a future reader will trust. Please fold the evidence comment into the body and drop the stale paragraph.

Nit, no change needed: for glob in _EOL_OPENSSL_GLOBS shadows the module name in a file that does not import it, so it reads as a bug at a glance; pattern or shape would read cleaner.

Merged via the queue into master with commit 1b6e492 Oct 28, 2026
33 checks passed
@zackees
zackees deleted the fix/2815-qt6-r1-lock branch October 28, 2026 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant