Repository navigation
appimage: pin the GSSAPI-free qt6 rebuild so no OpenSSL 1.1.1 ships (#2815) - #2831
Conversation
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.
|
Evidence run dispatched: appimage.yaml That is the acceptance check this draft waits on: build the AppImage from the new lock, then |
|
The evidence run is green: appimage.yaml I then checked the built bundle itself rather than trusting the build: downloaded the No OpenSSL 1.1.1 in the bundle. The only OpenSSL objects are 3.x: and every consumer links the 3.x one: A scan of every executable and The krb5 stack is gone, which is what r1 bought. Marking the PR ready. |
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.
|
Acceptance evidence, from the artifact the green run built (run 40736416916, Downloaded All 242 bundled ELFs scanned with I also dequeued the PR for a minute to land the guard the issue asks for, then it can go back in the queue:
Full local gate for this PR: With the guard in, the issue's two acceptance criteria are both met: the bundle is clean, and a reappearance fails the build. |
zackees
left a comment
There was a problem hiding this comment.
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 checkon the three Python files → clean. (ruff format --checkreports these files, but it reports the same files onorigin/master; the repo does not enforceruff formatonbuild-aux/, and the Format lane is green.)check_appdir.pyimportsfnmatch/osat the top already, and_check_eol_openssluses the same_grep_files+_relativeshape 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.1and on an ELF that only NEEDs one, and pass onlibssl.so.3/libcrypto.so.3. The acceptance artifact from appimage run 40736416916 (platform_tests=true, all five distro test jobs green) has nolib*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.
The AppImage still bundles EOL OpenSSL 1.1.1k because
libQt6Network.so.6NEEDslibgssapi_krb5.so.2, and the manylinux_2_28 base's krb5 libraries NEEDlibcrypto.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:
obs-rust/obs-studio-libs#25(merged) configures qtbase with-DFEATURE_gssapi=OFF. Qt'sqt_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 plainQNetworkAccessManagerclient, so nothing requests GSSAPI auth.-DFEATURE_openssl=ON -DFEATURE_openssl_linked=OFFis untouched.qt6 6.11.1linux r1 (obs-studio-libsreleaseqt6-6.11.1, assetqt6-6.11.1-linux-x86_64-glibc2.28-release-r1.tar.zst, sha256b33d981e0c6…99fc) inbuild-aux/appimage/manylinux/deps.lock.json, plusci/test_appimage_qt6_gssapi_deps.pyto 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):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→installagainst theassetscommit that published r1): resolves to the r1 asset, downloads it, sha256-verifies, and the extractedlibQt6Network.so.6has no krb5/gssapiNEEDEDline.Local gates:
uv run python -m unittest ci.test_appimage_qt6_gssapi_depsfails on master's lock (AssertionError: None != 'r1').ruff checkclean.docs/features.mdgets a line.Not yet run: a full
appimage.yamlbuild. This proves the dependency graph, not the shipped AppDir; the acceptance criterion in the issue (nolibssl.so.1.*/libcrypto.so.1.*in the extracted AppDir) needsappimage.yaml -f platform_tests=trueon this branch, which I will dispatch. Thecheck_appdir.pyguard from the issue is still held until then.Refs #2815