Repository navigation
[BUILD] Update the vendored SQLite to 3.53.1 and use vcpkg's in the Linux and Windows wheels - #10342
Conversation
src/openms/extern/SQLiteCpp/sqlite3 held the amalgamation of SQLite 3.49.2, which CVE-2025-6965 (NVD 7.7 HIGH, fixed in 3.50.2) affects. Builds with USE_EXTERNAL_SQLITECPP=OFF, the default, compile it into libOpenMS; the release-readiness check of the 2026-09-29 nightly found it in all four pyOpenMS wheels. sqlite3.c and sqlite3.h are those of sqlite-amalgamation-3530100.zip from sqlite.org; its sqlite3.c has the SHA3-256 that the 3.53.1 release notes publish (414432ae5719f6cdc485f3927e12c7ad107e2b8c6b434e5df2eadb5312bfabb5). 3.53.1 is the version the pinned vcpkg builds for the packages. The replaced files were identical to the 3.49.2 amalgamation, so no local changes are lost. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
… SQLite The packages and the main CI take SQLiteCpp and SQLite from vcpkg (USE_EXTERNAL_SQLITECPP and the feature sqlitecpp in the ci-base preset). The Linux and Windows wheels, built with vcpkg since #10331 and #10333, still compiled the copies vendored in src/openms/extern; they now do the same as the packages, so SQLite follows the vcpkg baseline in all of them. On Linux the opentims port links vcpkg's SQLite, so libOpenMS was linked against the vendored SQLite and vcpkg's; now there is one. On Windows the fetched opentims keeps compiling against the vendored sqlite3.h, which is the same version as vcpkg's. SQLiteCpp is a private dependency of libOpenMS, so the pyOpenMS build needs nothing new. The macOS wheel is built with Homebrew and keeps the vendored copies. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (6)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe bundled SQLite amalgamation is updated from version 3.49.2 to 3.53.1. Linux and Windows wheel builds now use SQLiteCpp and SQLite from vcpkg. The macOS wheel retains the vendored copies. ChangesSQLite wheel configuration
Priority: ⬆️ High Change: Other Merge Risk: ⚪ Minimal · up to This change updates SQLite to 3.53.1 and points the Linux and Windows wheels at vcpkg's copy. The supplied evidence shows the configuration is consistent, and no merge-blocking risk was found. The wheels themselves have not yet been inspected for the SQLite version. Architecture SummaryArchitecture risk: 🔵 Low · up to The change affects 3 systems. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. A rabbit checks the SQLite trail, Comment |
Description
The release-readiness check of the 2026-09-29 nightly found SQLite 3.49.2 in libOpenMS of all four pyOpenMS wheels (check F6). CVE-2025-6965 (NVD 7.7 HIGH, fixed in 3.50.2) affects that version. The copy is the SQLite amalgamation vendored with SQLiteCpp in
src/openms/extern/SQLiteCpp/sqlite3, which every build withUSE_EXTERNAL_SQLITECPP=OFF(the default) compiles in. The packages don't have it: they take SQLiteCpp 3.3.3 and SQLite 3.53.1 from vcpkg (ci-basepreset).That nightly was built before the wheels moved to vcpkg. The wheels of develop since #10331 and #10333, as built in the CI of #10292 (cb3ae54), contain:
1. The vendored SQLite is updated to 3.53.1, the version the pinned vcpkg builds.
sqlite3.candsqlite3.hcome fromsqlite-amalgamation-3530100.zipon sqlite.org. Itssqlite3.chas the SHA3-256 published in the 3.53.1 release notes.USE_EXTERNAL_SQLITECPP.2. The Linux and Windows wheels take SQLiteCpp and SQLite from vcpkg, as the packages do: the feature
sqlitecppandUSE_EXTERNAL_SQLITECPP=ONintools/ci/build_openms_manylinux.shand in the Windows configure step. SQLite then follows the vcpkg baseline in the packages and in these wheels.sqlite3.h, which is now the same version as vcpkg's library.sqlite3.h, so pyOpenMS needs no change.With both changes, all four wheels contain SQLite 3.53.1. Neither SQLite build enables FTS5, so CVE-2026-11822 and CVE-2026-11824, which affect FTS5 in 3.53.1, don't apply.
Not covered: sqlite.org's current patch release is 3.53.4, with fixes made after 3.53.1. Moving to it would also need a vcpkg override so that the packages match; this PR stays with the version the packages ship.
Validation
SQLITECPP_BUILD_TESTS) against the 3.53.1 amalgamation: 49 of 49 pass, and SQLiteCpp and SQLite compile without warnings (GCC 13.3).USE_EXTERNAL_SQLITECPP=OFF(Ubuntu 24.04, GCC 13.3, develop 9eb5c17; the tree also had [BUILD] Ship the third-party licenses with packages and wheels; drop ProteoWizard and SpectraST #10292, which doesn't touch SQLite):2026-05-05 10:34:17 c88b2201…, and no dynamic libsqlite3.USE_EXTERNAL_SQLITECPP=ON. opentims is fetched and compiled against the vendoredsqlite3.h, as in the Windows wheel (Ubuntu 24.04, GCC 13.3). Results:libsqlite3.a.sqlite_source_idstrings in libOpenMS of [BUILD] Ship the third-party licenses with packages and wheels; drop ProteoWizard and SpectraST #10292's CI wheels (3.53.1:2026-05-05 10:34:17 c88b2201…, 3.49.2:2025-05-07 10:39:52 17144570…).External 'SQLiteCpp' at: '/project/vcpkg_installed/x64-linux/share/sqlitecpp') and added vcpkg's sqlite3 to opentims. libOpenMS contains one SQLite source id, 3.53.1's, and auditwheel grafted no SQLite.x64-windows-static-md-release. Configure found SQLiteCpp invcpkg_installedand fetched opentims. The build had compiled 589 of 795 steps without an error when it was cancelled.pyopenms.libs/libOpenMS-*.so.x64-windows-static-md-release, configure used vcpkg's SQLiteCpp (External 'SQLiteCpp' at: '.../vcpkg_installed/x64-windows-static-md-release/share/SQLiteCpp'), and the build compiled no vendoredsqlite3.c. The library ispyopenms.libs/OpenMS-*.dll.pyopenms/.dylibs/libOpenMS.dylib.🤖 Generated with Claude Code
https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7