Skip to content

[BUILD] Remove OPENMS_CONTRIB_LIBS - #10361

Merged
timosachsenberg merged 2 commits into
developfrom
claude/d4-remove-openms-contrib-libs
Oct 1, 2026
Merged

timosachsenberg merged 2 commits into
developfrom
claude/d4-remove-openms-contrib-libs

Conversation

@timosachsenberg

@timosachsenberg timosachsenberg commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Description

Part of #10327 (step D4). For 3.7; not for a 3.6.x patch release.

#10328 deprecated OPENMS_CONTRIB_LIBS for one release ("will be removed after OpenMS 3.6"). 3.6.0 is out, and nothing in OpenMS uses the contrib any more: the submodule, wheels, dev container, docs and bioconda nightly have all moved off it. This PR removes the option. It does not change the version (develop is at 3.7.0 since #10349).

Decision for reviewers: the option is rejected, not ignored. If OPENMS_CONTRIB_LIBS is defined, cmake/setup_lib_find_paths.cmake stops with a FATAL_ERROR. The error says:

  • the option was removed after 3.6, together with the contrib;
  • the dependency prefix goes into CMAKE_PREFIX_PATH, or vcpkg builds the dependencies (cmake --preset <platform>-release);
  • a build directory that still has it cached needs cmake -U OPENMS_CONTRIB_LIBS.

Ignoring the option silently would let a build pick up other libraries than the user expects. Please object here if you'd rather have a warning. On the consumer side, OpenMSConfig.cmake simply stops reading the option, with no error there.

Changes:

  • CMakeLists.txt: removed the contrib branch of the "Dependency provider" status line.
  • cmake/OpenMSConfig.cmake.in: removed the consumer-side block. src/tests/external/CMakeLists.txt: removed its message.
  • src/pyOpenMS/CMakeLists.txt:
    • _pyopenms_windows_dll_dirs: removed the OPENMS_CONTRIB_LIBS bin/lib/lib64 entries. The <prefix>/bin + <prefix>/lib of every CMAKE_PREFIX_PATH entry (variable and environment) already cover vcpkg (vcpkg_installed/<triplet>) and other prefixes. The [pyOpenMS] Type stubs are never generated during a wheel build; enabling it fails on Windows #10141 comments are reworded without the contrib.
    • Linux copy step (NO_DEPENDENCIES=OFF only; no wheel job uses it): the lookup list was "${OPENMS_CONTRIB_LIBS}/lib\;…/lib64", which is /lib;/lib64 without a contrib. get_prerequisites() puts that list on LD_LIBRARY_PATH for ldd. It now holds lib/ and lib64/ of every CMAKE_PREFIX_PATH entry, joined with $<SEMICOLON> like the Windows list. This is a small behaviour change there; the old value was not dead, just meaningless.
  • src/pyOpenMS/README.md, pyopenms/__init__.py: the delvewheel note and the DLL-path comment now name the bin/ of the dependency prefix (vcpkg_installed/<triplet>/bin) instead of contrib libraries.
  • cmake/build_system_macros.cmake: removed Boost_ARCHITECTURE "-x64". Only FindBoost's module mode reads it, and find_boost() calls find_package(Boost … CONFIG) with no components, so the module never runs (and CMP0167 doesn't matter).
  • cmake/cmake_findExternalLibs.cmake: reworded the five contrib comments. The LibXml2 branch is kept. The Windows vcpkg triplets also link Arrow statically, but vcpkg builds it against its own ports and without the azure feature (see vcpkg.json), so the Windows builds need no libxml2 through Arrow. That makes a mandatory lookup still wrong, and the comment now says why.
  • .github/actions/build/action.yml:
    • the ccache budget comment now counts the ccache of the five build jobs plus the wheel workflow's Thermo asset caches. The vcpkg binary caches live on the rsync archive, so they don't count against the budget.
    • the stale -DOPENMS_CONTRIB_LIBS note is gone.
  • cmake/Modules/FindCOIN.cmake: comments only. The coin/ include path and all behaviour are unchanged, since Debian's coinor packages use that layout. Also comment-only rewording in FindLibzip.cmake, Coverage.cmake, package_general.cmake, src/openms/CMakeLists.txt and SimpleSVM.cpp (svm.h comes from libsvm's include dir).
  • Ignore files: .gitignore and dockerfiles/Dockerfile.dockerignore no longer list contrib-build/contrib_build.
  • CHANGELOG: a "Dependencies" entry for the removal, under the OpenMS 3.7.0 (under development) banner that the version bump ([GHA] Updated OpenMS package version numbers to 3.7.0 #10349) created. The released 3.6.0 notes are untouched.
  • Docs: doc/, share/, tools/ and dockerfiles/ have no remaining instructions for the option. Two contrib mentions are left as they are:
    • "the earlier contrib-based wheels" in tools/ci/build_openms_manylinux.sh, which is history;
    • the Arrow-in-contrib remark in ParquetTableComparator.cpp. Changing it would mean checking the Arrow API, which is out of scope.

Validation (local, Ubuntu 24.04)

  • Installed dockerfiles/Dockerfile's apt packages plus libparquet-dev 23.0.1 from Apache's apt repository (pinned to 23.*, as in the Dockerfile).
  • Configured with -G Ninja -DOPENMS_USE_VCPKG=OFF -DWITH_GUI=OFF -DWITH_THERMO_RAW=OFF, before and after merging develop:
    • plain: succeeds and prints Dependency provider: system packages and CMAKE_PREFIX_PATH ...;
    • with -DOPENMS_CONTRIB_LIBS=/tmp/x: stops with the new error. A re-configure without the flag also stops, because the value is cached;
    • with -U OPENMS_CONTRIB_LIBS: succeeds, and the cache no longer has the entry.
  • Built the whole OpenMS library target, before and after merging develop.
  • pyOpenMS in-tree: configured with -DPYOPENMS=ON (nanobind 3.1.0 in a venv), for both NO_DEPENDENCIES=ON and OFF.
    • With OFF, the generated LOOKUP_DIRS argument lists lib/ and lib64/ of the -DCMAKE_PREFIX_PATH entry and of both env entries, as one argument.
    • Ran pyopenms_copy_deps.cmake directly on the built libOpenMS.so with that list and with an empty list. Both succeed.
    • I did not build or test the pyOpenMS modules.
  • Not run locally: Windows and macOS, vcpkg presets, unit tests.

CI coverage of the pyOpenMS change

pyopenms-wheels-cibuildwheel.yml runs on every PR to develop (no path filter). Its Windows job configures standalone pyOpenMS and uses _pyopenms_windows_dll_dirs for the stub generation, so it exercises the Windows DLL list. All wheel jobs use NO_DEPENDENCIES=ON, so no CI job runs the Linux copy-step change. test.yml (OpenMS build/test on all platforms, no path filter) builds without pyOpenMS.

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 (library built; tests not run locally, CI covers them)
  • 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_01DQeLTK8QWPtACta32S4JNC

The contrib is retired (#10327) and OPENMS_CONTRIB_LIBS was deprecated
for 3.6 (#10328). Remove it after the 3.6.0 release:

- setup_lib_find_paths.cmake: configuring with OPENMS_CONTRIB_LIBS stops
  with an error that names CMAKE_PREFIX_PATH, the vcpkg presets and
  'cmake -U OPENMS_CONTRIB_LIBS' for a build directory that still has it
  cached. Ignoring it silently would let a build pick up other libraries
  than the user expects.
- CMakeLists.txt: drop the contrib branch of the "Dependency provider"
  status line.
- OpenMSConfig.cmake.in: consumers no longer read the option; they use
  CMAKE_PREFIX_PATH.
- src/tests/external: drop the message about the option.
- pyOpenMS: drop the contrib entries of the Windows DLL search list. On
  Linux the dependency copy step (NO_DEPENDENCIES=OFF) looked in
  "${OPENMS_CONTRIB_LIBS}/lib", i.e. /lib and /lib64 without a contrib;
  it now takes lib/ and lib64/ of every CMAKE_PREFIX_PATH entry, passed
  as one argument like the Windows list.
- build_system_macros.cmake: drop Boost_ARCHITECTURE. Only FindBoost's
  module mode reads it, and find_boost() uses CONFIG mode.
- Reword comments that described the contrib as current (find modules,
  cmake_findExternalLibs.cmake, the CI ccache budget, pyOpenMS README
  and __init__.py, SimpleSVM.cpp), and drop contrib-build/contrib_build
  from .gitignore and the Docker ignore file. FindCOIN keeps its
  behaviour.
- CHANGELOG: start the 3.7.0 (under development) section with the
  removal.

Part of #10327 (step D4).

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

coderabbitai Bot commented Sep 30, 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: 27b8ba95-cd75-4698-9360-b018388d9f07

📥 Commits

Reviewing files that changed from the base of the PR and between e25ac61 and 0ae2a9b.

📒 Files selected for processing (19)
  • .github/actions/build/action.yml
  • .gitignore
  • CHANGELOG
  • CMakeLists.txt
  • cmake/Coverage.cmake
  • cmake/Modules/FindCOIN.cmake
  • cmake/Modules/FindLibzip.cmake
  • cmake/OpenMSConfig.cmake.in
  • cmake/build_system_macros.cmake
  • cmake/cmake_findExternalLibs.cmake
  • cmake/package_general.cmake
  • cmake/setup_lib_find_paths.cmake
  • dockerfiles/Dockerfile.dockerignore
  • src/openms/CMakeLists.txt
  • src/openms/source/ML/SVM/SimpleSVM.cpp
  • src/pyOpenMS/CMakeLists.txt
  • src/pyOpenMS/README.md
  • src/pyOpenMS/pyopenms/__init__.py
  • src/tests/external/CMakeLists.txt
💤 Files with no reviewable changes (5)
  • .gitignore
  • dockerfiles/Dockerfile.dockerignore
  • cmake/OpenMSConfig.cmake.in
  • cmake/build_system_macros.cmake
  • src/tests/external/CMakeLists.txt

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


📝 Walkthrough

Walkthrough

CMake now rejects the removed OPENMS_CONTRIB_LIBS setting and no longer uses it to configure dependency paths. pyOpenMS collects dependency paths from CMake and environment prefix paths. Related build comments, documentation, and ignore patterns are updated.

Changes

Dependency configuration and paths

Layer / File(s) Summary
Remove the contrib setting
cmake/setup_lib_find_paths.cmake, CMakeLists.txt, cmake/OpenMSConfig.cmake.in, src/tests/external/CMakeLists.txt, CHANGELOG
CMake rejects OPENMS_CONTRIB_LIBS during configuration and no longer applies it during package configuration or reports it in external tests. The changelog records the removal and alternatives.
Use dependency prefixes for pyOpenMS
src/pyOpenMS/CMakeLists.txt, src/pyOpenMS/README.md, src/pyOpenMS/pyopenms/__init__.py
pyOpenMS collects runtime and dependency-copy paths from CMake and environment prefix paths. Windows DLL documentation describes dependency-prefix locations.
Align dependency discovery and build references
.github/actions/build/action.yml, .gitignore, cmake/*, dockerfiles/Dockerfile.dockerignore, src/openms/CMakeLists.txt, src/openms/source/ML/SVM/SimpleSVM.cpp
Dependency-search comments and provider descriptions no longer identify contrib as a dependency source. Boost architecture selection uses its default when unset. Build notes, ignore patterns, and related source comments are updated.

Priority: ➖ Normal

Change: Other

Merge Risk: ⚪ Minimal · up to 0ae2a

The legacy contrib setting is intentionally removed with migration guidance, and prefix-based dependency lookup preserves the expected copy arguments. No actionable merge-blocking risk remains after normal checks.

Architecture Summary

Architecture risk: 🔵 Low · up to 0ae2a

The change affects 5 systems.

Changed systems: cmake, src, CHANGELOG, CMakeLists.txt, dockerfiles

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — cmake (service) was modified; 8 changed files map to changed impact.
  • observed — src (service) was modified; 6 changed files map to changed impact.
  • observed — CHANGELOG (service) was modified; 1 changed file maps to changed impact.
  • observed — CMakeLists.txt (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in CHANGELOG: Adds a Dependencies changelog entry recording removal of OPENMS_CONTRIB_LIBS and OpenMS/contrib, the configure-time error and alternatives for dependencies, the cache-clearing command, and that find_package(OpenMS) no longer reads the variable.
  • observed — Modified behavior in CMakeLists.txt: The dependency-provider block removes the OPENMS_CONTRIB_LIBS branch and its contrib status message. When OPENMS_USE_VCPKG is off, configurations that previously reported contrib now follow the existing system-packages and CMAKE_PREFIX_PATH reporting path.
  • observed — Modified behavior in CMakeLists.txt: The install-RPATH comment removes contrib from the listed dependency sources; Homebrew and conda remain listed.
  • observed — Modified behavior in cmake/Coverage.cmake: The comment now refers to the dependency prefix instead of contrib libraries.
🚥 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 2…
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 identifies the primary change: removing the deprecated OPENMS_CONTRIB_LIBS option.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


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 hops past paths made new,
Where prefixes guide the builds through.
No contrib cache to count or seek,
The DLL paths line up neat.
It nibbles clover, pleased with the change.

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

Resolve the CHANGELOG conflict with the 3.7.0 version bump (#10349): keep
its "OpenMS 3.7.0 (under development)" banner and put the
OPENMS_CONTRIB_LIBS entry under it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DQeLTK8QWPtACta32S4JNC
@timosachsenberg timosachsenberg mentioned this pull request Sep 30, 2026
17 of 20 tasks
@timosachsenberg
timosachsenberg merged commit 1f9b3c0 into develop Oct 1, 2026
32 checks passed
@timosachsenberg
timosachsenberg deleted the claude/d4-remove-openms-contrib-libs branch October 1, 2026 05:46
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