Skip to content

recipe(qt6): build Qt Network without GSSAPI (#2815) - #25

Merged
zackees merged 1 commit into
mainfrom
fix/2815-qt6-no-gssapi
Oct 28, 2026
Merged

zackees merged 1 commit into
mainfrom
fix/2815-qt6-no-gssapi

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 AlmaLinux 8 base's krb5 libraries NEED libcrypto.so.1.1. This is option 1 from obs-rust/obs-studio#2815.

The change: configure qtbase with -DFEATURE_gssapi=OFF. Qt's Network feature is qt_feature("gssapi" PUBLIC ... CONDITION NOT WIN32 AND GSSAPI_FOUND) in src/network/configure.cmake, and the auth delegate it enables is SPNEGO/Negotiate only — OBS's HTTPS use (update check, service list, remote text sources) is a plain QNetworkAccessManager client, so nothing in the tree requests GSSAPI auth. -DFEATURE_openssl=ON -DFEATURE_openssl_linked=OFF is untouched, so the TLS client stays.

Nothing else in the configure line changes, and the two submodules (qtsvg, qtwayland) are unaffected.

Evidence (local gate, the whole gate this repo has):

  • RED: uv run --group dev pytest tests/test_qt6_recipe.py fails on the old recipe — assert '-DFEATURE_gssapi=OFF' in flags.
  • GREEN: uv run --group dev pytest → 46 passed; ruff check . → All checks passed!; ruff format --check . reports only the pre-existing tests/test_openssl_recipe.py.
  • bash -n recipes/linux/qt6.sh → clean.

tests/test_qt6_recipe.py pins the flag (and that the OpenSSL client flags stay), so a future configure edit cannot quietly bring the delegate back.

Not yet proven: the rebuilt artifact. The next step is a qt6 rebuild + repack in the manylinux stack image, a new rN label, the release upload and the manifest entry on assets, then the deps.lock.json bump in obs-studio and an unpacked-AppDir check that libgssapi_krb5.so.2 and libssl/libcrypto.so.1.1 are gone. The check_appdir.py guard from the issue lands after that, when the bundle is actually clean.

Refs obs-rust/obs-studio#2815

libQt6Network.so.6 only NEEDs libgssapi_krb5.so.2 because qtbase is built with
the GSSAPI feature on, and the AlmaLinux 8 base's krb5 libraries NEED
libcrypto.so.1.1 -- which puts EOL OpenSSL 1.1.1k back into the AppImage next
to the pinned 3.5.9.

OBS makes no SPNEGO/Negotiate request, so the auth delegate is unused:
configure qtbase with -DFEATURE_gssapi=OFF and pin it in tests/test_qt6_recipe.py.

RED: the new test fails on the old recipe (no -DFEATURE_gssapi=OFF).
GREEN: 46 passed, ruff check clean.
@zackees
zackees merged commit 3ad7082 into main Oct 28, 2026
MCPVOT pushed a commit to MCPVOT/obs-studio that referenced this pull request Oct 30, 2026
…bs-rust#2815) (obs-rust#2831)

* appimage: pin the GSSAPI-free qt6 rebuild (r1) (obs-rust#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.

* docs(features): the AppImage ships no OpenSSL 1.1.1 (obs-rust#2815)

* appimage: fail the assembly on an EOL OpenSSL 1.1.1 (obs-rust#2815)

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.

---------

Co-authored-by: zackees <[email protected]>
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