Repository navigation
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The lintian suppressions need replacement or a stripping fix, and the unrelated Boost change should be separated or justified.
1 open finding
What changed in this PR
Removes versioned object-class library names so Darwin’s OSD does not misidentify version suffixes as class names.
Changes:
- Builds object-class libraries without
VERSIONorSOVERSION. - Simplifies class filename parsing using
std::string_view. - Removes related lintian overrides and changes bundled Boost feature propagation.
| File | Description |
|---|---|
src/cls/CMakeLists.txt |
Removes versioning from object-class targets. |
src/cls/cmpomap/CMakeLists.txt |
Removes cmpomap library versioning. |
src/osd/ClassHandler.cc |
Modernizes class filename parsing. |
src/test/librados_test_stub/TestClassHandler.cc |
Aligns stub class discovery logic. |
debian/ceph-base.lintian-overrides |
Removes versioned-file lintian overrides. |
cmake/modules/BuildBoost.cmake |
Changes Boost variant option propagation. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
On Darwin, libcls_foo.1.dylib also ends in .dylib, so the OSD loads it as a class named "foo.1". Nothing needs the versioned names anyway: the OSD only dlopen()s libcls_<name> plus the suffix, and nothing links against these libraries. Signed-off-by: Kefu Chai <[email protected]>
They name the "ceph" package and the versioned files, neither of which ships the rados classes any more, and ceph-base is stripped anyway. Signed-off-by: Kefu Chai <[email protected]>
name.substr(7, name.size() - 10) assumes ".so", so on Darwin libcls_lock.dylib becomes the class "lock.dy". Signed-off-by: Kefu Chai <[email protected]>
The strlen()/strncmp()/strncpy() arithmetic over sizeof(CLS_PREFIX) and sizeof(CLS_SUFFIX) is hard to follow and easy to get wrong, so replace it. The accepted names do not change. Signed-off-by: Kefu Chai <[email protected]>
e3486ea to
25ee486
Compare
There was a problem hiding this comment.
🟢 Approval recommended
The build, loader, test stub, and packaging changes consistently eliminate versioned object-class filenames.
0 open findings
1 resolved since last review
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
|
@ceph/build-sig hello maintainers, could you help review this change? |
1 similar comment
|
@ceph/build-sig hello maintainers, could you help review this change? |
|
This PR has been added to wip-anrao9-testing-2026-11-13-0841-main. |

On Darwin,
libcls_foo.1.dylibalso ends in.dylib, so the OSD loads it as a class named foo.1. Nothing needs the versioned names: the OSD onlydlopen()slibcls_<name>plus the suffix, and nothing links against these libraries. So stop versioning them, and drop the lintian overrides that still named the versioned files.Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.