Skip to content

[CI] Build the Linux pyOpenMS wheels with vcpkg in the stock manylinux images - #10333

Merged
timosachsenberg merged 4 commits into
developfrom
claude/a2-linux-wheels-vcpkg
Sep 29, 2026
Merged

timosachsenberg merged 4 commits into
developfrom
claude/a2-linux-wheels-vcpkg

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Description

Part of #10327 (step A2).

Both Linux wheel jobs (build-wheels-linux, x86_64, and build-wheels-linux-arm, aarch64) now build without contrib:

  • Images. Both phases use the stock quay.io/pypa/manylinux_2_34_{x86_64,aarch64} images instead of ghcr.io/openms/contrib_manylinux_2_34. The GHCR login is gone. The defaults in src/pyOpenMS/pyproject.toml and the example in src/pyOpenMS/README.md are updated to match.
  • Phase 1 is now one script, tools/ci/build_openms_manylinux.sh, which both jobs run with docker run. It replaces the two duplicated single-quoted bash -c '…' blocks, so the apostrophe problem is gone as well. The script:
    • installs the tools the vcpkg ports need that the image lacks: ninja-build zip autoconf-archive flex, the perl modules OpenSSL's Configure uses, and libicu for .NET. They all come from the AlmaLinux repositories. EPEL is disabled for the install, because its aarch64 mirrors served out-of-sync metadata in the first run. The image already has gcc-toolset-14 with gfortran (needed by lapack-reference), CMake 4.4, git, curl, pkg-config, bison and recent autotools;
    • installs the pinned .NET SDK (install_dotnet_sdk_linux.sh, unchanged);
    • configures with the vcpkg submodule, VCPKG_TARGET_TRIPLET=x64-linux or arm64-linux (the static overlay triplets), VCPKG_MANIFEST_FEATURES=openms-thermo-bridge;opentims and ARROW_USE_STATIC=ON;
    • installs the same components as before, then loads libOpenMS.so and libOpenSwathAlgo.so with RTLD_NOW. An unresolved symbol, which a shared-library link still accepts, therefore fails here and not at the wheel's import. The build tree and vcpkg's staging directories are deleted afterwards, so cibuildwheel's copy of /project stays small.
    • USE_EXTERNAL_* stays OFF (vendored libraries), as in the contrib wheels. So the options match today's except that the dependencies come from vcpkg.
  • cmake/Modules/FindCOIN.cmake (outside the Linux-only files, needed for any static coin-or). The first run failed with libOpenMS.so: undefined symbol: dgetrf_.
    • Cause: CoinOR::CoinOR put BLAS::BLAS LAPACK::LAPACK ahead of the coin-or libraries, and listed those alphabetically (OsiClp after Clp). The linker had passed LAPACK and Clp before anything asked for them.
    • Fix: each imported coin-or target now declares its dependencies: Cbc → Cgl → OsiClp → Clp, Osi → CoinUtils. With vcpkg, CoinUtils also depends on LAPACK, BLAS, zlib and bzip2. CMake then orders the libraries correctly.
    • Shared builds (main CI, Homebrew) link the same libraries as before.
    • I checked it with a small CMake project of fake static archives chained the same way. The old module reproduces the undefined references (-Wl,--no-undefined), and the new one links and loads.
  • Thermo. The bridge (native and managed) now comes from the openms-thermo-bridge vcpkg port. fetch_thermo_assets.sh is kept in the build jobs only for the RAW test file, and OPENMS_THERMO_BRIDGE_PREBUILT_MANAGED_DIR is no longer passed. The port is dynamic-only on Linux, so auditwheel grafts libopenms_thermo_bridge.so. It finds it through libOpenMS's RPATH to vcpkg_installed/<triplet>/lib, which the top-level CMakeLists.txt adds for vcpkg builds.
  • Binary cache. The main CI's rsync cache (OpenMS/ci-tools/actions/rsync-cache, same pin and same ARCHIVE_RRSYNC_* secrets as test.yml) now has its own key per architecture: manylinux_2_34-<runner.arch>-vcpkg-<hash of vcpkg.json and vcpkg-configuration.json>.
    • The cache lives in $RUNNER_TEMP, so cibuildwheel does not copy it.
    • The key has to be separate. The gcc-toolset in the image never matches Ubuntu's compiler, and the action's save runs rsync --delete-before, so sharing a key would wipe the main CI's cache.
    • The action saves only when the whole job succeeds, so the cache fills on the first green run.
    • rsync and rclone are installed on the runner; rclone is the action's read-only fallback for fork PRs.
  • Phase 2 (cibuildwheel):
    • CMAKE_PREFIX_PATH=/project/vcpkg_installed/<triplet>:/project/install.
    • CIBW_BEFORE_ALL is now dnf install -y --disablerepo='epel*' ninja-build dotnet-runtime-8.0; libcurl-devel is dropped.
    • [tool.cibuildwheel.linux.config-settings] adds cmake.options.ARROW_USE_STATIC=ON, so _arrow_zerocopy also links vcpkg's static Arrow. The standalone pyOpenMS build does not include cmake/build_system_macros.cmake, where that option defaults to ON. This table replaces the global one on Linux, so it repeats NO_DEPENDENCIES and PYOPENMS_PREPARE_WHEEL_REPAIR; I checked the result with cibuildwheel 3.3.1's options printout.
  • Diagnostics. A new step prints auditwheel show and the grafted pyopenms.libs/ contents of the repaired wheel. On failure, the vcpkg build logs are uploaded as vcpkg-logs-linux-{x64,arm64}.
  • Other changes:
    • A step frees disk on the runner (Android SDK, host .NET, GHC, CodeQL), because a cold vcpkg build is large.
    • A CHANGELOG entry covers the library versions that change for wheel users.
  • aarch64: VCPKG_FORCE_SYSTEM_BINARIES is not needed. At the pinned vcpkg baseline, bootstrap-vcpkg.sh downloads vcpkg-glibc-arm64, and scripts/vcpkg-tools.json has linux-aarch64 CMake and Ninja. That matches the main CI's ubuntu-24.04-arm job, which does not set it either. The first aarch64 run confirmed it: the full cold vcpkg build succeeded.
  • pyarrow in the same process is already covered by src/pyOpenMS/tests/unittests/test_pyarrow_compatibility.py, which test-wheels runs. It imports in both orders, each in a fresh interpreter.

Expected auditwheel result

With static dependencies, the wheel should graft only:

  • OpenMS's own libraries: libOpenMS, libOpenSwathAlgo, libopenms_thermo_bridge;
  • system runtime libraries: libgomp, and now libgfortran/libquadmath as well, because vcpkg's coin-or chain uses lapack-reference.

I'll confirm this from the new step's output once CI has run.

Overlaps

Validation

  • I ran phase 1 locally in quay.io/pypa/manylinux_2_34_x86_64. The dnf install, the .NET SDK install, the vcpkg bootstrap and dependency resolution (116 ports) succeed. The port builds themselves could not run there, because the sandbox's egress policy blocks GitHub source archives. The resolved port list is how I found the missing flex (needed by thrift).
  • In CI, the aarch64 phase 1 (cold vcpkg build plus the OpenMS core) passed. Phase 2 then hit the FindCOIN link-order bug described above.
  • shellcheck passes on the script. actionlint reports no new findings on the workflow (two fewer than before). The YAML and TOML both parse.
  • The full cold and warm build timings will come from this PR's CI runs. I'll post them here.

Notes for maintainers

  • The images are unpinned (latest), as requested. vcpkg's ABI hash includes the compiler, so an image update that changes gcc-toolset makes the binary cache miss once.
  • The overlay triplets build debug and release. A release-only triplet (VCPKG_BUILD_TYPE release) for the wheels would roughly halve the cold build and the cache. I did not add one, because the decision names the existing triplets.

Checklist

  • Make sure that you are listed in the AUTHORS file
  • Add relevant changes and new features to the CHANGELOG file
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes (CI-only change apart from FindCOIN; the wheel jobs, test-wheels and build-and-test are the test)
  • Updated or added python bindings for changed or new classes (Tick if no updates were necessary.)

🤖 Generated with Claude Code

https://claude.ai/code/session_01Cu2vTH24nJQmhaDDngsoFz

Summary by CodeRabbit

  • New Features
    • Linux Python wheels are now built for x86_64 and ARM64 using manylinux 2.34 images.
  • Updates
    • Linux wheels bundle updated library versions, including bzip2 1.0.8, Xerces-C 3.3.0, libsvm 3.35, and Arrow 24. These changes affect the libraries included with the wheels; they do not add new application functionality.

…x images

Both Linux wheel jobs (x86_64 and aarch64) now build the OpenMS core in
quay.io/pypa/manylinux_2_34_{x86_64,aarch64} against static vcpkg libraries
(overlay triplets x64-linux / arm64-linux), and run cibuildwheel in the same
images, instead of the contrib_manylinux_2_34 images and /contrib-build.

- tools/ci/build_openms_manylinux.sh: the in-container phase 1, shared by
  both jobs (replaces the duplicated single-quoted bash -c blocks). Installs
  the tools the vcpkg ports need, the pinned .NET SDK, and builds with the
  openms-thermo-bridge and opentims manifest features.
- vcpkg binary cache on the rsync archive under its own key per architecture
  (manylinux_2_34-<arch>-vcpkg-<manifest hash>).
- cibuildwheel finds OpenMS and the vcpkg tree via CMAKE_PREFIX_PATH; the
  libcurl-devel installs and the GHCR login are gone.
- pyproject.toml: stock images as defaults; Linux config-settings pass
  ARROW_USE_STATIC=ON so _arrow_zerocopy links the same static Arrow.

Part of #10327 (step A2).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cu2vTH24nJQmhaDDngsoFz
@coderabbitai

coderabbitai Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

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 configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 213ff413-0a1a-46d6-bdb6-48f78a225e7a

📥 Commits

Reviewing files that changed from the base of the PR and between 353d74c and 0523e67.

📒 Files selected for processing (6)
  • .github/workflows/pyopenms-wheels-cibuildwheel.yml
  • CHANGELOG
  • cmake/Modules/FindCOIN.cmake
  • src/pyOpenMS/README.md
  • src/pyOpenMS/pyproject.toml
  • tools/ci/build_openms_manylinux.sh

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.


📝 Walkthrough

Walkthrough

Linux x86_64 and aarch64 pyOpenMS wheels now use stock manylinux 2.34 images. A new script builds and installs OpenMS and OpenSwathAlgo with vcpkg dependencies. CI runs the script before wheel creation. The change also updates Coin link dependencies and documents bundled library versions.

Changes

Linux wheel build

Layer / File(s) Summary
Build setup and Coin linking
tools/ci/build_openms_manylinux.sh, cmake/Modules/FindCOIN.cmake
The new script selects an architecture-specific vcpkg triplet, configures and builds OpenMS and OpenSwathAlgo, installs them, and checks that their shared libraries load. FindCOIN.cmake adds vcpkg dependencies and explicit link ordering for Coin targets.
Architecture-specific CI builds
.github/workflows/pyopenms-wheels-cibuildwheel.yml
The x86_64 and aarch64 jobs configure vcpkg binary caching and run the build script in matching manylinux containers. Wheel jobs set the vcpkg install path, install build tools and the .NET runtime, and report bundled libraries with auditwheel.
Wheel configuration and build notes
src/pyOpenMS/pyproject.toml, src/pyOpenMS/README.md, CHANGELOG
Linux wheel settings select stock manylinux 2.34 images and enable static Arrow. The README describes the x86_64 image change. The changelog lists bundled library versions.

Suggested reviewers: cbielow

Priority: ⬇️ Low

Change: Other

Merge Risk: ⚪ Minimal · up to 0523e

This change moves Linux wheel builds to stock manylinux images with vcpkg-built dependencies. No concrete merge-blocking issue has been identified; CI results will confirm the full build.

Security Architecture Review

Security architecture risk: 🟡 Moderate · up to 0523e

The new build path adds a shared cache of compiled dependencies to the wheel supply chain. The jobs limit credential exposure and check that the resulting libraries load, but the provenance of cached binaries needs confirmation.

Retained concerns

  • Medium · security · inferred: The new shared binary cache is a persistent source of native dependencies for distributable wheels. Its access controls and artifact-identity guarantees are not established by the inspected configuration; a compromised cache could affect subsequent builds without appearing as a source change.
Security review details

Security Blast Radius

  • inferred — Compromise of a dependency source accepted by this build could affect the native contents of either Linux wheel architecture and, if those artifacts are subsequently published, downstream wheel users. The inspected path does not show such a compromise.

Security Findings and Attack Paths

  • inferred — The new archive-backed cache is a trust transition from stored native binaries into the wheel build. The evidence does not establish an attacker able to write accepted cache entries or a failure of vcpkg's identity checks.

Trust Boundaries and Controls

  • observed — Repository build code runs in a root container with a writable workspace, as inline commands did previously. The new workflow does not pass registry or archive secrets into that container; its comments describe a read-only cache fallback for forks.

Resilience and Maintainability Implications

  • observed — Immediate native-library loading, enabled RAW-file wheel tests, failure-log upload, and post-build library reporting provide checks before normal artifact upload. These checks do not establish cached-binary provenance.

Hardening Proposals

  • proposed — Confirm who can populate the shared cache and how cached binaries are bound to the selected vcpkg revision, triplets, and image toolchain; consider immutable image references if repeatable rollback and provenance are required.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: building Linux pyOpenMS wheels with vcpkg in stock manylinux images.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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.

❤️ Share

A rabbit checks the wheels in flight,
Stock Linux builds them left and right.
Vcpkg brings the parts in line,
Static Arrow joins the design.
“All set!” says Bun, and hops away.

Comment @coderabbitai help to get the list of available commands.

The aarch64 job failed in dnf because EPEL's mirrors served metadata whose
filelists were missing (404 on every mirror). None of the packages come
from EPEL, so leave it out in the phase-1 script and in CIBW_BEFORE_ALL.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cu2vTH24nJQmhaDDngsoFz
@timosachsenberg timosachsenberg mentioned this pull request Sep 29, 2026
17 of 20 tasks
timosachsenberg and others added 2 commits September 29, 2026 10:03
…for static linking

The Linux wheels link vcpkg's static coin-or, and libOpenMS.so failed to load
with "undefined symbol: dgetrf_". CoinOR::CoinOR listed BLAS and LAPACK ahead
of the coin-or libraries, and the libraries themselves in alphabetical order
(OsiClp after Clp), so the linker had passed LAPACK and Clp before anything
asked for their symbols; a shared library links regardless and the error only
surfaced at import. Give each imported coin-or target its dependencies
(Cbc -> Cgl -> OsiClp -> Clp/Osi -> CoinUtils -> LAPACK, BLAS, zlib, bzip2 with
vcpkg) so CMake orders them. Shared builds are unaffected.

The manylinux build script now loads the installed libraries with RTLD_NOW,
so an unresolved symbol fails phase 1 instead of the wheel build.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cu2vTH24nJQmhaDDngsoFz
Resolve CHANGELOG: keep develop's Windows-wheel entry (#10331), which replaces
the libcurl one, followed by the Linux-wheel entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Cu2vTH24nJQmhaDDngsoFz

Copy link
Copy Markdown
Contributor Author

First full run is green (head 0523e67, run 36553133539): both Linux wheel jobs and all 16 test-wheels jobs passed. test-wheels covers Python 3.11 to 3.14 on every platform, including the pyarrow import-order tests and the Thermo RAW smoke test.

Cold build timings (empty vcpkg cache)

x86_64 (ubuntu-latest) aarch64 (ubuntu-22.04-arm)
vcpkg install, 155 ports 55 min 42 min
OpenMS core (configure, build, install) ~20 min ~15 min
Phase 1 total (docker run step) 1 h 15 min 57 min
cibuildwheel (build, repair, in-image test suite) 5.5 min 6 min
Whole job 1 h 25 min 1 h 06 min
Binary cache saved 441 MB 435 MB

Both caches are now on the archive under manylinux_2_34-{X64,ARM64}-vcpkg-7f02a30e…. The next run on this PR (the develop merge, 96f68e6) is the warm one; I'll add its timings when it finishes.

auditwheel show

Both wheels are manylinux_2_34_{x86_64,aarch64}. pyopenms.libs/ contains only OpenMS's own libraries and GCC runtime libraries:

x86_64:
 86338161  pyopenms.libs/libOpenMS-14185b2a.so
   124889  pyopenms.libs/libOpenSwathAlgo-fdf0fbba.so
  1322961  pyopenms.libs/libopenms_thermo_bridge-c274e066.so
   313825  pyopenms.libs/libgomp-2af01464.so.1.0.0
  3027193  pyopenms.libs/libgfortran-3f600444.so.5.0.0
   307297  pyopenms.libs/libquadmath-bfd9a0db.so.0.0.0

aarch64:
 76051153  pyopenms.libs/libOpenMS-02ac3cc8.so
   337881  pyopenms.libs/libOpenSwathAlgo-e526c230.so
  1453985  pyopenms.libs/libopenms_thermo_bridge-87941df8.so
   346417  pyopenms.libs/libgomp-5cc794a4.so.1.0.0
  1620681  pyopenms.libs/libgfortran-bf725d3c.so.5.0.0
  • Every vcpkg dependency (Arrow with the AWS SDK, Boost, Xerces-C, coin-or, OpenSSL, curl, …) is linked statically into libOpenMS.
  • libgfortran (and libquadmath on x86_64) come from lapack-reference, which coin-or uses.
  • There is no libquadmath on aarch64, because GCC has no __float128 there.
  • The wheels are 45.1 MB (x86_64) and 41.0 MB (aarch64).

Merged develop

develop (#10331, #10330, #10328) is merged in 96f68e6.

  • CHANGELOG: develop's Windows-wheel entry replaces the libcurl entry, and the Linux entry follows it.
  • The workflow merged without conflicts. A1 only touches the Windows job, and its vcpkg cache key (Windows-X64-cl.exe-…) differs from the Linux keys.
  • actionlint reports nothing new compared with develop.

Generated by Claude Code

Copy link
Copy Markdown
Contributor Author

Warm run is green too (head 96f68e6, the develop merge; run 36562365414). Both runs used the same vcpkg cache key, since vcpkg.json and vcpkg-configuration.json did not change.

x86_64 aarch64
vcpkg: packages restored from the cache 155 of 155, 7 s 155 of 155, 6 s
vcpkg install step 2 s (cold: 55 min) 2 s (cold: 42 min)
Phase 1 total (almost all of it the OpenMS core build) ~22 min (cold: 1 h 15 min) ~15 min (cold: 57 min)
cibuildwheel ~5.5 min ~6 min
Whole job 31 min (cold: 1 h 25 min) 23 min (cold: 1 h 06 min)
  • The cache save at the end sent only 14 KB, because nothing changed.
  • The wheels bundle the same libraries as in the cold run.

All other checks on this head that have finished passed. The Windows wheel job, part of #10331 and not changed here, is still running.


Generated by Claude Code

@timosachsenberg
timosachsenberg merged commit a9603cd into develop Sep 29, 2026
31 checks passed
@timosachsenberg
timosachsenberg deleted the claude/a2-linux-wheels-vcpkg branch September 29, 2026 12:35
timosachsenberg pushed a commit that referenced this pull request Sep 29, 2026
develop builds the Linux and Windows wheels against static vcpkg libraries
instead of the contrib (#10331, #10333). The Linux wheel jobs conflicted:
develop replaced the build in the contrib image, to which this branch had
added the license collector, with tools/ci/build_openms_manylinux.sh. The
resolution takes develop's jobs. The next commit gives these wheels the
license texts of the vcpkg ports instead of the contrib's.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
timosachsenberg pushed a commit that referenced this pull request Sep 29, 2026
…ports

The Linux and Windows wheels link their dependencies statically from vcpkg
now (#10331, #10333), so the texts they need are the copyright files of the
vcpkg ports, as for the packages. openms_install_vcpkg_licenses() installs
LICENSES/vcpkg/<port>.txt for every installation built with vcpkg, not only
for packages, and records the files for THIRD-PARTY-NOTICES.txt.

- No wheel or package uses the contrib any more (#10328), so
  openms_install_contrib_licenses(), LICENSES/contrib/ and its group in the
  notices are gone, and the contrib submodule stays at develop's revision.
- Linux wheels: tools/ci/build_openms_manylinux.sh collects the licenses of
  the system libraries auditwheel grafts (GCC's libgomp, libgfortran and
  libquadmath), skipping the vcpkg tree, and writes THIRD-PARTY-NOTICES.txt
  again.
- The Windows wheel bundles only OpenMS's own DLLs and the MSVC runtime, so
  it needs no collector.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7
timosachsenberg pushed a commit that referenced this pull request Sep 29, 2026
Resolve the conflict in .github/workflows/pyopenms-wheels-cibuildwheel.yml
in favour of develop. Since #10331 and #10333 the Linux and Windows
wheels build OpenMS with vcpkg instead of the contrib, and vcpkg builds
zstd as a dependency of Arrow. The libzstd and libzstd-devel packages
in the contrib manylinux jobs and the Windows zstd source build into
contrib/ are therefore no longer needed. The macOS job already installs
zstd with Homebrew.

tools/jenkins/ is already gone on develop (#10325).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01GaXNuGJpQjG9mo63hQnB9B
timosachsenberg added a commit that referenced this pull request Sep 29, 2026
…ProteoWizard and SpectraST (#10292)

* [BUILD] Ship the license texts of the bundled third-party code in the installers

The 3.6.0 release-readiness check F8 found share/OpenMS/LICENSES holding
only the OpenMS license, while the packages bundle many third-party
libraries whose licenses require their text to accompany the binaries:
the 53 vcpkg libraries next to libOpenMS in the DEB (linked into it on
Windows, whose triplets are static), and in the macOS package Qt with
the Homebrew libraries it needs (glib, ICU, freetype, harfbuzz, ...).

openms_install_third_party_licenses() (cmake/third_party_licenses.cmake),
called from package_general.cmake, installs into share/OpenMS/LICENSES,
in the component share that every installation type includes:
- vcpkg/<port>.txt: the copyright file vcpkg installs for every port of
  the target triplet.
- Qt/: on Windows and macOS, which bundle Qt (the DEB depends on the
  distribution's), the LGPL-3.0 and GPL-3.0 texts and a README with the
  Qt version and where to get its source code.
- homebrew/<formula>/: on macOS, the license files Homebrew keeps in the
  kegs of Qt's formulae and of every formula they depend on. The formulae
  are found from the kegs that hold Qt's CMake packages.
The top-level CMakeLists.txt includes the file in every configuration,
so CI parses it.

The Thermo RawFileReader license on the vcpkg path is part of #10259, and
the licenses of the tools in THIRDPARTY belong in OpenMS/THIRDPARTY.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Stop configuring the macOS package if its Homebrew licenses cannot be collected

If brew was missing or 'brew deps' failed, configuring only warned, and the
macOS package would have gone out without the license files of Homebrew
libraries it bundles. Both now stop the configuration (CodeRabbit on #10292).
brew is also looked for in Homebrew's default prefixes, for a PATH without it
(e.g. that of an IDE). Formulae without a top-level license file, such as Qt's
own, whose licenses are in Qt/, are still only reported.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Collect the Homebrew licenses with the brew of Qt's own installation

A Mac can have two Homebrew installations, /opt/homebrew and /usr/local, and a
brew answers for its own installation only. So the brew on the PATH could list
the dependencies and kegs of the other installation, and their license files
would go into the package (CodeRabbit on #10292). The installation's prefix now
comes from Qt's kegs (<prefix>/Cellar/<formula>/<version>), and its bin/brew is
used. Configuring fails if that brew does not exist, or if Qt's CMake packages
come from more than one installation.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Ship the licenses of vendored code and the Thermo RawFileReader license

libOpenMS compiles in third-party code that OpenMS carries in its source
tree: Percolator (Apache-2.0, whose NOTICE file must accompany it and
also holds the LIBLINEAR license), the libraries in src/openms/extern,
libkdtree++ (Artistic-2.0, in KDTree.h) and MSNumpress (BSD-3-Clause,
in MSNumpress.cpp). No installation shipped their licenses.
openms_install_vendored_licenses() installs them under
share/OpenMS/LICENSES/vendored in every configuration, so the Python
wheels get them too. Libraries taken from vcpkg instead
(USE_EXTERNAL_*) are left out; their licenses come from the vcpkg
section.

The openms-thermo-bridge vcpkg port combined the Thermo RawFileReader
license, a Word document, with its own license in
vcpkg_install_copyright(). That reads each file as text, so the document
was cut off at its first NUL byte and the installers had no Thermo
license. The port now installs the document as a file of its own, and a
build that uses the port installs it as
share/OpenMS/LICENSES/ThermoRawFileReader-License.doc, like the source
build of the bridge already does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Leave the Thermo RawFileReader license to #10259

#10259 makes the same change to the openms-thermo-bridge port and to the
Thermo block of cmake_findExternalLibs.cmake. This restores both, and the
CHANGELOG entry, to their state before the previous commit, so that the
two pull requests do not conflict. The licenses of the vendored code stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Drop ProteoWizard from the Windows installer

THIRDPARTY/pwiz-bin carries msconvert together with the libraries of several
instrument vendors (Agilent, Bruker, SCIEX, Shimadzu, Thermo, Waters), each
under its own license terms, of which the installer shipped only Agilent's and
Thermo's. OpenMS itself never calls msconvert. package_general.cmake no longer
stages pwiz-bin, and the NSIS template loses its Proteowizard section.

The Windows installation page drops the two known issues about the .NET
Framework 3.5 that ProteoWizard needed and points to ProteoWizard's website.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [GUI,DOC] Show Thermo's RawFileReader notice in the About dialog

Section 3.2 of the RawFileReader license asks software that distributes it to
display "RawFileReader reading tool. Copyright (c) 2016 by Thermo Fisher
Scientific, Inc. All rights reserved." in its About box. Builds with
WITH_THERMO_RAW ship RawFileReader, so the About dialog of TOPPView and TOPPAS
(QApplicationTOPP::showAboutDialog) shows it there. The vendor-formats page and
the ThermoRawFile class documentation carry the notice as well.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [CI] Ship the licenses of the libraries the wheel repair tools bundle

auditwheel (Linux) and delocate (macOS) copy every shared library libOpenMS needs
and the target system lacks into the pyOpenMS wheels: on 2026-09-28, OpenSSL,
libxml2, liblzma and libgomp on Linux, and 122 Homebrew libraries on macOS. None
of their licenses was in the wheel.

tools/ci/collect_wheel_licenses.py walks the dependencies of the installed
libraries as the loader resolves them, maps each library to the RPM package or
Homebrew keg it comes from, and copies that package's license files to
share/OpenMS/LICENSES/{system,homebrew}/<package>/, with an INDEX.txt, before
the wheel is built; pyOpenMS copies share/OpenMS into the wheel. A bundled
library without a package or a license file fails the step. The contrib
libraries are skipped on Linux; the OpenMS build installs their licenses.
Eigen, which is header-only on macOS, is named explicitly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [CI] Collect the licenses of libgomp and of Homebrew's boost

The wheel jobs failed in collect_wheel_licenses.py on two libraries:

- libgomp on Linux: the RPM package has no license files. gcc's spec file
  puts them into libgcc. A package without license files now takes those
  of an installed package built from the same source package.
- boost on macOS: Homebrew copies only files named exactly LICENSE,
  COPYING and the like into a keg, so boost's LICENSE_1_0.txt is not in
  it. --license-file <name>=<file> supplies the text for a package or
  formula that ships none; the macOS job passes the Boost Software License
  from cmake/third_party_licenses/contrib/boost.

INDEX.txt says where such a text came from.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [Packaging] Ship the licenses of the contrib libraries and the Thermo bridge's assemblies

A build against the OpenMS contrib, as the pyOpenMS wheels are, links
Boost, Xerces-C, libsvm, COIN-OR, Arrow and others from it, and no package
manager accounts for their licenses. openms_install_contrib_licenses()
installs the texts of the libraries a build found inside
OPENMS_CONTRIB_LIBS, judged by the paths the find modules report, to
share/OpenMS/LICENSES/contrib/<library>. Arrow brings snappy, zstd, Thrift,
xsimd, RapidJSON and mimalloc, which it builds itself. The texts are those of
the contrib's versions (contrib e127dea), taken verbatim from upstream.
README.txt names the versions and the source code, which MPL-2.0 (Eigen)
and EPL-1.0 (COIN-OR) require, and carries the acknowledgment that Eigen's
MINPACK port asks for. The AWS SDK that Arrow builds on Unix is left out:
OpenMS does not link it.

The managed folder of the Thermo bridge gets THIRD-PARTY-NOTICES.txt for
ThermoWrapperManaged (BSD-3-Clause), CommandLineParser (MIT), OpenMcdf and
OpenMcdf.Extensions (MPL-2.0, with the address of the source code), and
nethost (MIT, from the .NET host pack), which the native bridge links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [CI] Resolve @rpath with the run paths of the whole load chain

dyld resolves an @rpath reference against the LC_RPATHs of the image and of
the images that led to it. collect_wheel_licenses.py used only the image's
own, so a Homebrew library that relies on a run path of its loader would be
reported as unresolved. The walk now carries the run paths down the chain
and walks a library again when it is reached with run paths it has not been
tried with; only references that no chain resolves are reported.

The macOS package's Homebrew collector in third_party_licenses.cmake now
also looks in share/doc/<formula> and share/licenses/<formula> of a keg, as
the wheel script does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Take the Thermo bridge's notices from openms-thermo-bridge 0.3.1

openms-thermo-bridge 0.3.1 publishes THIRD-PARTY-NOTICES.txt with its managed
assemblies (OpenMS/openms-thermo-bridge#12). The managed directory that the
build installs to share/openms_thermo_bridge/managed therefore carries the file,
and the copy of the bridge 0.3.0 notices kept here is removed.

Pin the bridge to v0.3.1 (d809f8a) in the FetchContent declaration, in the vcpkg
overlay port (SHA512 of its source archive) and in fetch_thermo_assets.sh (SHA-256
of the v0.3.1 release zips), and require 0.3.1 from a system installation. A
managed directory without the notices, e.g. a pre-built one of an older bridge,
stops the installation instead of shipping the assemblies without them.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Take the contrib libraries' licenses from the contrib's share/licenses

OpenMS/contrib#187 (d077390) makes the contrib install the license and notice
files of every library it builds into share/licenses/<library>/. Each folder
has a SOURCE.txt that names the source archive of its library, and
arrow/bundled/ holds the files of the libraries Arrow builds itself.

openms_install_contrib_licenses() now installs these folders for the libraries
the build found inside OPENMS_CONTRIB_LIBS, and the copies kept in
cmake/third_party_licenses/contrib are removed. COIN-OR's folder is now named
coin-or. GLPK and HDF5 are covered when a build takes them from the contrib.
With an older contrib, configuring warns and installing stops, so builds keep
working and packages and wheels do not ship without the texts.

Boost's license text moves to cmake/third_party_licenses/homebrew, for the
macOS wheel: its Homebrew keg has no license file.

The contrib submodule moves to d077390. The commits since e127dea also add
curl's debug library on Windows and remove kissfft, which OpenMS no longer
uses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] THIRDPARTY: ship the tools' license texts, drop SpectraST

Moves the THIRDPARTY submodule from 00c619e (MaRaCluster 1.04.1, #10259) to
abe0956 on its master, which adds the license texts of Comet, MaRaCluster,
Percolator and X!Tandem to their folders and a THIRD-PARTY-NOTICES.txt for
ThermoRawFileParser's assemblies, and removes SpectraST (GPL, shipped without
its text or source). install_thirdparty_folder() installs each tool folder
whole, so the packages pick the texts up without a CMake change. The
SpectraST tests in third_party_tests.cmake are already disabled.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] THIRD-PARTY-NOTICES.txt: the third-party license texts of an installation in one file

share/OpenMS/THIRD-PARTY-NOTICES.txt lists the third-party components an
installation contains, grouped by where they come from (Qt, vcpkg,
Homebrew, the contrib, the build system, code compiled into OpenMS, the
Thermo reader, the THIRDPARTY tools), each with the numbers of the texts
that apply to it. Then it gives the texts, each once: components whose
texts are identical up to white space share a number. For the Linux
wheel, 99 license files become 56 components and 76 texts.

The code that installs license files records them with
openms_add_third_party_notice(). The list is written when configuring,
the notices when installing, in the component 'share': the Thermo
bridge's notices exist only after the build, and the package generators
install each component into a folder of its own. The wheel builds write
the notices again from the installed tree (cmake -P) after
collect_wheel_licenses.py has added the libraries the repair tools copy
in. The files stay in share/OpenMS/LICENSES and the tool folders.

The DEB also installs them, after the OpenMS license, as
/usr/share/doc/openms/copyright (Debian policy 12.5). License.txt, which
the installers show and the wheels carry as their license file, points
to the notices instead of ending with a list of third-party code that
had one entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [DOC] CHANGELOG: the license entries of this PR in four bullets

The seven bullets that had grown with the PR repeated each other: the
wheels, the Thermo bridge and THIRD-PARTY-NOTICES.txt had bullets of
their own. Now one bullet says what share/OpenMS/LICENSES and
THIRD-PARTY-NOTICES.txt hold, one covers the THIRDPARTY tools and the
Thermo bridge, and ProteoWizard and the About dialog keep theirs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Wheels built with vcpkg carry the license texts of the vcpkg ports

The Linux and Windows wheels link their dependencies statically from vcpkg
now (#10331, #10333), so the texts they need are the copyright files of the
vcpkg ports, as for the packages. openms_install_vcpkg_licenses() installs
LICENSES/vcpkg/<port>.txt for every installation built with vcpkg, not only
for packages, and records the files for THIRD-PARTY-NOTICES.txt.

- No wheel or package uses the contrib any more (#10328), so
  openms_install_contrib_licenses(), LICENSES/contrib/ and its group in the
  notices are gone, and the contrib submodule stays at develop's revision.
- Linux wheels: tools/ci/build_openms_manylinux.sh collects the licenses of
  the system libraries auditwheel grafts (GCC's libgomp, libgfortran and
  libquadmath), skipping the vcpkg tree, and writes THIRD-PARTY-NOTICES.txt
  again.
- The Windows wheel bundles only OpenMS's own DLLs and the MSVC runtime, so
  it needs no collector.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

* [BUILD] Leave vcpkg's build helpers out of the license texts

On Linux the host triplet is also the target triplet, so the installed
tree of the target triplet holds the host dependencies too: vcpkg-cmake,
vcpkg-cmake-config, vcpkg-cmake-get-vars, vcpkg-boost and vcpkg-make in
the wheels. These ports only carry CMake scripts for the builds of other
ports, and no installation contains anything of them, yet their license
texts were installed and listed in THIRD-PARTY-NOTICES.txt.

openms_install_vcpkg_licenses() now reads the file list that vcpkg keeps
for every installed port (vcpkg/info/<port>_<version>_<triplet>.list)
and leaves out the ports that install nothing outside their own
share/<port> folder. A port with any other file keeps its license, and so
does a port without a file list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01YC1T2K9HQEUk2kQMZqC8h7

---------

Co-authored-by: Claude <[email protected]>
timosachsenberg added a commit that referenced this pull request Sep 29, 2026
…inux and Windows wheels (#10342)

* [BUILD] Update the SQLite vendored with SQLiteCpp to 3.53.1

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

* [CI] Build the Linux and Windows wheels against vcpkg's SQLiteCpp and 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

---------

Co-authored-by: Claude <[email protected]>
timosachsenberg pushed a commit to timosachsenberg/openms-test-lab that referenced this pull request Sep 30, 2026
bundled-libs.py recognised a bundled library only by its file name
(libcrypto-*.so, zlib1.dll). Since OpenMS/OpenMS#10331 and OpenMS/OpenMS#10333 the
Linux and Windows wheels link vcpkg's static libraries into libOpenMS
and OpenMS.dll, so F6 passed the 2026-09-30 wheels without seeing
anything: the x86_64 wheel carries OpenSSL 3.6.4 (CVE-2026-84782, High),
zlib 1.3.2, SQLite 3.53.1, bzip2 1.0.8 and curl inside libOpenMS. The
contrib-built wheels had the same blind spot: 3.5.0 and the nightlies
up to 2026-09-29 carry bzip2 1.0.5 and SQLite 3.49.2 statically, which
no run reported.

- Every ELF, PE or Mach-O file is now also searched for texts that
  only a library's own code contains (OpenSSL's source paths and
  OPENSSLDIR banner, curl's and bzip2's error messages, SQLite's file
  header, zlib's copyright banner). Header-only mentions do not count:
  Homebrew's libaws-c-cal carries OPENSSL_VERSION_TEXT but no OpenSSL.
- Static copies are reported with "linkage": "static", and a static
  OpenSSL is judged like a shared one.
- bzip2 is added to the reported libraries.
- On the 2026-09-30 DEB this finds what the OpenMS CHANGELOG lists as
  known issues: zlib 1.2.11 in Comet, 1.2.3 in MaRaCluster, SQLite
  3.41.2 in Sage.
- F10 (advisory): the Linux and Windows wheels graft only OpenMS's own
  libraries and the compiler runtime, as OpenMS/OpenMS#10327 steps A1 and A2
  require. A dependency that became shared again would load next to
  pyarrow's copy.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SVwXwhanu5SNdFWQ98SaCJ
timosachsenberg added a commit to timosachsenberg/openms-test-lab that referenced this pull request Sep 30, 2026
bundled-libs.py recognised a bundled library only by its file name
(libcrypto-*.so, zlib1.dll). Since OpenMS/OpenMS#10331 and OpenMS/OpenMS#10333 the
Linux and Windows wheels link vcpkg's static libraries into libOpenMS
and OpenMS.dll, so F6 passed the 2026-09-30 wheels without seeing
anything: the x86_64 wheel carries OpenSSL 3.6.4 (CVE-2026-84782, High),
zlib 1.3.2, SQLite 3.53.1, bzip2 1.0.8 and curl inside libOpenMS. The
contrib-built wheels had the same blind spot: 3.5.0 and the nightlies
up to 2026-09-29 carry bzip2 1.0.5 and SQLite 3.49.2 statically, which
no run reported.

- Every ELF, PE or Mach-O file is now also searched for texts that
  only a library's own code contains (OpenSSL's source paths and
  OPENSSLDIR banner, curl's and bzip2's error messages, SQLite's file
  header, zlib's copyright banner). Header-only mentions do not count:
  Homebrew's libaws-c-cal carries OPENSSL_VERSION_TEXT but no OpenSSL.
- Static copies are reported with "linkage": "static", and a static
  OpenSSL is judged like a shared one.
- bzip2 is added to the reported libraries.
- On the 2026-09-30 DEB this finds what the OpenMS CHANGELOG lists as
  known issues: zlib 1.2.11 in Comet, 1.2.3 in MaRaCluster, SQLite
  3.41.2 in Sage.
- F10 (advisory): the Linux and Windows wheels graft only OpenMS's own
  libraries and the compiler runtime, as OpenMS/OpenMS#10327 steps A1 and A2
  require. A dependency that became shared again would load next to
  pyarrow's copy.


Claude-Session: https://claude.ai/code/session_01SVwXwhanu5SNdFWQ98SaCJ

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants