Repository navigation
[BUILD] Remove OPENMS_CONTRIB_LIBS - #10361
Conversation
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
|
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 (19)
💤 Files with no reviewable changes (5)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 2 remain after this review. 📝 WalkthroughWalkthroughCMake now rejects the removed ChangesDependency configuration and paths
Priority: ➖ Normal Change: Other Merge Risk: ⚪ Minimal · up to 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 SummaryArchitecture risk: 🔵 Low · up to The change affects 5 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 hops past paths made new, Comment |
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
Description
Part of #10327 (step D4). For 3.7; not for a 3.6.x patch release.
#10328 deprecated
OPENMS_CONTRIB_LIBSfor 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_LIBSis defined,cmake/setup_lib_find_paths.cmakestops with aFATAL_ERROR. The error says:CMAKE_PREFIX_PATH, or vcpkg builds the dependencies (cmake --preset <platform>-release);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.cmakesimply 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 theOPENMS_CONTRIB_LIBSbin/lib/lib64 entries. The<prefix>/bin+<prefix>/libof everyCMAKE_PREFIX_PATHentry (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.NO_DEPENDENCIES=OFFonly; no wheel job uses it): the lookup list was"${OPENMS_CONTRIB_LIBS}/lib\;…/lib64", which is/lib;/lib64without a contrib.get_prerequisites()puts that list onLD_LIBRARY_PATHfor ldd. It now holdslib/andlib64/of everyCMAKE_PREFIX_PATHentry, 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 thebin/of the dependency prefix (vcpkg_installed/<triplet>/bin) instead of contrib libraries.cmake/build_system_macros.cmake: removedBoost_ARCHITECTURE "-x64". Only FindBoost's module mode reads it, andfind_boost()callsfind_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 (seevcpkg.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:-DOPENMS_CONTRIB_LIBSnote is gone.cmake/Modules/FindCOIN.cmake: comments only. Thecoin/include path and all behaviour are unchanged, since Debian's coinor packages use that layout. Also comment-only rewording inFindLibzip.cmake,Coverage.cmake,package_general.cmake,src/openms/CMakeLists.txtandSimpleSVM.cpp(svm.h comes from libsvm's include dir)..gitignoreanddockerfiles/Dockerfile.dockerignoreno longer listcontrib-build/contrib_build.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.tools/ci/build_openms_manylinux.sh, which is history;ParquetTableComparator.cpp. Changing it would mean checking the Arrow API, which is out of scope.Validation (local, Ubuntu 24.04)
dockerfiles/Dockerfile's apt packages pluslibparquet-dev23.0.1 from Apache's apt repository (pinned to 23.*, as in the Dockerfile).-G Ninja -DOPENMS_USE_VCPKG=OFF -DWITH_GUI=OFF -DWITH_THERMO_RAW=OFF, before and after merging develop:Dependency provider: system packages and CMAKE_PREFIX_PATH ...;-DOPENMS_CONTRIB_LIBS=/tmp/x: stops with the new error. A re-configure without the flag also stops, because the value is cached;-U OPENMS_CONTRIB_LIBS: succeeds, and the cache no longer has the entry.OpenMSlibrary target, before and after merging develop.-DPYOPENMS=ON(nanobind 3.1.0 in a venv), for bothNO_DEPENDENCIES=ONandOFF.OFF, the generatedLOOKUP_DIRSargument lists lib/ and lib64/ of the-DCMAKE_PREFIX_PATHentry and of both env entries, as one argument.pyopenms_copy_deps.cmakedirectly on the builtlibOpenMS.sowith that list and with an empty list. Both succeed.CI coverage of the pyOpenMS change
pyopenms-wheels-cibuildwheel.ymlruns on every PR to develop (no path filter). Its Windows job configures standalone pyOpenMS and uses_pyopenms_windows_dll_dirsfor the stub generation, so it exercises the Windows DLL list. All wheel jobs useNO_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
🤖 Generated with Claude Code
https://claude.ai/code/session_01DQeLTK8QWPtACta32S4JNC