Add libzip 1.11.4 build support#170
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review infoConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughAdds libzip as an optional contrib library: updates CMakeLists with LIBZIP options and archive metadata, replaces minizip-ng references, includes a new libraries.cmake/libzip.cmake that defines OPENMS_CONTRIB_BUILD_LIBZIP to fetch, configure, build, and install libzip with platform-specific logging and error handling. Changes
Possibly related issues
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
libraries.cmake/libzip.cmake (1)
152-155: Minor inconsistency in error messaging.The build failure message on line 155 doesn't include the log file reference that the configure failure message has on line 134. For consistency and easier debugging, consider adding the log file path.
Suggested improvement
if(NOT LIBZIP_BUILD_SUCCESS EQUAL 0) message(STATUS "Output: ${LIBZIP_BUILD_OUT}") message(STATUS "Error: ${LIBZIP_BUILD_ERR}") - message(FATAL_ERROR "Building libzip lib (Release) .. failed") + message(FATAL_ERROR "Building libzip lib (Release) .. failed. Check the log file for details: ${LOGFILE}") else()🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@libraries.cmake/libzip.cmake` around lines 152 - 155, Update the fatal build error message in the libzip build block so it includes the build log path like the earlier configure failure message does; specifically, change the message(FATAL_ERROR "Building libzip lib (Release) .. failed") to append the build log variable used elsewhere (e.g., the same log variable referenced for configure failures such as LIBZIP_CONFIGURE_LOG or the build log variable defined in the file) so that the fatal error includes the log file path alongside LIBZIP_BUILD_OUT and LIBZIP_BUILD_ERR for consistent, easier debugging.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@libraries.cmake/libzip.cmake`:
- Around line 152-155: Update the fatal build error message in the libzip build
block so it includes the build log path like the earlier configure failure
message does; specifically, change the message(FATAL_ERROR "Building libzip lib
(Release) .. failed") to append the build log variable used elsewhere (e.g., the
same log variable referenced for configure failures such as LIBZIP_CONFIGURE_LOG
or the build log variable defined in the file) so that the fatal error includes
the log file path alongside LIBZIP_BUILD_OUT and LIBZIP_BUILD_ERR for
consistent, easier debugging.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6346602 to
ab5c2f7
Compare
Summary
Companion to OpenMS/OpenMS PR that replaces minizip-ng with libzip for ZIP64 archive support.
🤖 Generated with Claude Code
Summary by CodeRabbit