Repository navigation
Add minizip-ng dependency for ZIP64 archive support - #8792
timosachsenberg wants to merge 2 commits into
Conversation
Includes Arrow upgrade from 22.0.0 to 23.0.0 and various build fixes. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds minizip-ng support across CI, package manifests, and CMake: CI scripts/installers now provide minizip(-ng) and xz, CMake prefers minizip-ng with a minizip fallback and exposes OPENMS_MINIZIP_TARGET, which is linked into OpenMS; contrib submodule and vcpkg updated. Changes
Sequence Diagram(s)sequenceDiagram
participant CI as CI Workflow
participant PKG as Package Manager / Pixi / Homebrew
participant CMake as CMake
participant Build as OpenMS Build
CI->>PKG: request install of minizip-ng / minizip and xz
PKG-->>CI: install artifacts and export prefixes / update PATH
CI->>CMake: set cmake_prefix / provide dependency prefixes
CMake->>PKG: probe for minizip-ng (CONFIG QUIET)
alt minizip-ng found
CMake->>CMake: set OPENMS_MINIZIP_TARGET = MINIZIP::minizip-ng
else fallback to minizip
CMake->>CMake: set OPENMS_MINIZIP_TARGET = MINIZIP::minizip
end
CMake->>Build: link ${OPENMS_MINIZIP_TARGET} into OpenMS
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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.
Actionable comments posted: 2
🧹 Nitpick comments (1)
tools/ci/deps-ubuntu.sh (1)
50-50: Consider verifying the tarball checksumThe archive is fetched over HTTPS but without a sha256 checksum guard. A compromised or tampered release artifact would be accepted silently. The pattern used for Arrow (also no checksum) is consistent, but pinning the hash here is especially valuable since this is a from-source build.
🛡️ Suggested addition
wget -q "https://github.com/zlib-ng/minizip-ng/archive/refs/tags/${MINIZIP_NG_VERSION}.tar.gz" -O /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz +echo "EXPECTED_SHA256 /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz" | sha256sum -c -Replace
EXPECTED_SHA256with the known hash for v4.0.7.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@tools/ci/deps-ubuntu.sh` at line 50, Add a SHA256 integrity check after downloading the minizip-ng tarball: after the wget line that uses ${MINIZIP_NG_VERSION} and writes to /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz, compute and verify the file's sha256 against the known expected hash (replace EXPECTED_SHA256 with the actual v4.0.7 hash) and exit non‑zero if the check fails; ensure the verification step references the same /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz path so a tampered or corrupted archive is rejected before extraction/build.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@contrib`:
- Line 1: The contrib submodule pointer was changed and per project rules you
must obtain explicit maintainer approval before updating third‑party
dependencies; stop the PR from progressing until you (1) contact the project
maintainers (mention the contrib submodule update in this PR and include the new
commit hash and reason), (2) add a maintainer approval comment or include an
approval email/issue link in the PR description, and (3) if approval is granted,
update the PR description to record the maintainer's sign‑off and proceed;
reference the changed "contrib" submodule pointer in your communication so
reviewers can verify the exact change.
In `@tools/ci/deps-ubuntu.sh`:
- Line 57: The cmake invocation uses an unquoted subshell -j$(nproc) which
triggers ShellCheck SC2046; update the command in tools/ci/deps-ubuntu.sh to
quote the subshell so the job-count expansion is treated as a single word (use
-j"$(nproc)") in the cmake --build /tmp/minizip-ng-build invocation to prevent
word-splitting.
---
Nitpick comments:
In `@tools/ci/deps-ubuntu.sh`:
- Line 50: Add a SHA256 integrity check after downloading the minizip-ng
tarball: after the wget line that uses ${MINIZIP_NG_VERSION} and writes to
/tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz, compute and verify the file's
sha256 against the known expected hash (replace EXPECTED_SHA256 with the actual
v4.0.7 hash) and exit non‑zero if the check fails; ensure the verification step
references the same /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz path so a
tampered or corrupted archive is rejected before extraction/build.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
.github/workflows/openms_ci_matrix_full.ymlcmake/cmake_findExternalLibs.cmakecontribsrc/openms/CMakeLists.txttools/ci/deps-macos.shtools/ci/deps-ubuntu.shvcpkg.json
| @@ -1 +1 @@ | |||
| Subproject commit e6fde7cfed8cde73c6625cd493ce3f82e21263cc | |||
| Subproject commit 58ba245ce9ba88f7834f8eed7c31534265cfd1d1 | |||
There was a problem hiding this comment.
Confirm maintainer approval for contrib submodule update.
This changes the contrib submodule pointer, which is a modification of third‑party dependencies and needs explicit maintainer approval per project rules. As per coding guidelines: "Do not modify the contrib tree or third-party dependencies without explicit approval from the maintainers".
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@contrib` at line 1, The contrib submodule pointer was changed and per project
rules you must obtain explicit maintainer approval before updating third‑party
dependencies; stop the PR from progressing until you (1) contact the project
maintainers (mention the contrib submodule update in this PR and include the new
commit hash and reason), (2) add a maintainer approval comment or include an
approval email/issue link in the PR description, and (3) if approval is granted,
update the PR description to record the maintainer's sign‑off and proceed;
reference the changed "contrib" submodule pointer in your communication so
reviewers can verify the exact change.
e17aad8 to
be7dbab
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
♻️ Duplicate comments (1)
tools/ci/deps-ubuntu.sh (1)
57-57: Quote$(nproc)to satisfy ShellCheck SC2046.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@tools/ci/deps-ubuntu.sh` at line 57, Update the cmake build invocation that currently uses unquoted command substitution (the line containing "cmake --build /tmp/minizip-ng-build -j$(nproc)") to quote the $(nproc) expansion so ShellCheck SC2046 is satisfied; change the -j argument to use a quoted substitution (e.g., -j"$(nproc)") in the tools/ci/deps-ubuntu.sh script.
🧹 Nitpick comments (1)
vcpkg.json (1)
46-47: Consider aligning vcpkg features with the from-source build flags.The vcpkg
minizip-ngport installs with default features (bzip2, lzma, pkcrypt, wzaes, zlib, zstd), but the Ubuntu from-source CI build explicitly disablesMZ_LZMA,MZ_ZSTD, andMZ_WZAES. If OpenMS only needs the minimal set of compression backends, consider restricting the vcpkg features to match, so the dependency surface is consistent across all build paths.♻️ Example: opt out of unneeded default features in vcpkg.json
- "minizip-ng" + { + "name": "minizip-ng", + "default-features": false, + "features": [ "bzip2", "pkcrypt", "zlib" ] + }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@vcpkg.json` around lines 46 - 47, The vcpkg manifest currently depends on "minizip-ng" without feature control, while your Ubuntu from-source CI disables MZ_LZMA, MZ_ZSTD and MZ_WZAES; update vcpkg.json's "minizip-ng" entry to explicitly opt out of those defaults and only enable the compression backends actually required by OpenMS (e.g. include a features array for "minizip-ng" that excludes lzma, zstd, wzaes and keeps only the minimal features you need such as zlib/pkcrypt if applicable), so the vcpkg-built dependency surface matches the from-source build flags.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@tools/ci/deps-ubuntu.sh`:
- Around line 49-51: The script downloads MINIZIP_NG_VERSION into
/tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz without verifying integrity; add a
MINIZIP_NG_SHA256 variable containing the expected SHA-256 and perform a
checksum verification after download (e.g., create a checksum file or echo the
expected hash and pipe to sha256sum -c) and abort the script if verification
fails; update the flow around the wget line and the subsequent tar extraction so
extraction only occurs on a successful checksum match.
---
Duplicate comments:
In `@tools/ci/deps-ubuntu.sh`:
- Line 57: Update the cmake build invocation that currently uses unquoted
command substitution (the line containing "cmake --build /tmp/minizip-ng-build
-j$(nproc)") to quote the $(nproc) expansion so ShellCheck SC2046 is satisfied;
change the -j argument to use a quoted substitution (e.g., -j"$(nproc)") in the
tools/ci/deps-ubuntu.sh script.
---
Nitpick comments:
In `@vcpkg.json`:
- Around line 46-47: The vcpkg manifest currently depends on "minizip-ng"
without feature control, while your Ubuntu from-source CI disables MZ_LZMA,
MZ_ZSTD and MZ_WZAES; update vcpkg.json's "minizip-ng" entry to explicitly opt
out of those defaults and only enable the compression backends actually required
by OpenMS (e.g. include a features array for "minizip-ng" that excludes lzma,
zstd, wzaes and keeps only the minimal features you need such as zlib/pkcrypt if
applicable), so the vcpkg-built dependency surface matches the from-source build
flags.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
.github/workflows/openms_ci_matrix_full.ymlcmake/cmake_findExternalLibs.cmakecontribsrc/openms/CMakeLists.txttools/ci/deps-macos.shtools/ci/deps-ubuntu.shvcpkg.json
🚧 Files skipped from review as they are similar to previous changes (5)
- src/openms/CMakeLists.txt
- cmake/cmake_findExternalLibs.cmake
- contrib
- tools/ci/deps-macos.sh
- .github/workflows/openms_ci_matrix_full.yml
| MINIZIP_NG_VERSION=4.0.7 | ||
| wget -q "https://github.com/zlib-ng/minizip-ng/archive/refs/tags/${MINIZIP_NG_VERSION}.tar.gz" -O /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz | ||
| tar xzf /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz -C /tmp |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
minizip-ng 4.0.7 SHA-256 checksum GitHub release
💡 Result:
For the GitHub source tarball minizip-ng/archive/4.0.7.tar.gz, the SHA-256 is:
a87f1f734f97095fe1ef0018217c149d53d0f78438bcb77af38adc21dff2dfbc [1]
Release/tag reference: zlib-ng/minizip-ng 4.0.7 [2]
Sources: [1] [2]
Add checksum verification for downloaded minizip-ng archive.
The tarball is fetched without verifying a checksum, leaving the build open to MITM or tampered GitHub release artifacts. Add SHA-256 verification to mitigate this.
Proposed fix: add checksum verification
MINIZIP_NG_VERSION=4.0.7
wget -q "https://github.com/zlib-ng/minizip-ng/archive/refs/tags/${MINIZIP_NG_VERSION}.tar.gz" -O /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz
+echo "a87f1f734f97095fe1ef0018217c149d53d0f78438bcb77af38adc21dff2dfbc /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz" | sha256sum -c -
tar xzf /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz -C /tmp🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@tools/ci/deps-ubuntu.sh` around lines 49 - 51, The script downloads
MINIZIP_NG_VERSION into /tmp/minizip-ng-${MINIZIP_NG_VERSION}.tar.gz without
verifying integrity; add a MINIZIP_NG_SHA256 variable containing the expected
SHA-256 and perform a checksum verification after download (e.g., create a
checksum file or echo the expected hash and pipe to sha256sum -c) and abort the
script if verification fails; update the flow around the wget line and the
subsequent tar extraction so extraction only occurs on a successful checksum
match.
be7dbab to
74b713a
Compare
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (2)
.github/workflows/openms_ci_matrix_full.yml (1)
239-239:xzmay be an unnecessary explicit dependency
condaresolves transitive dependencies automatically, and the conda-forgeminizippackage should pull inxzif it requires it. Explicitly listingxzhere is harmless but potentially redundant. If there's a specific reasonxzneeds to be pinned or forced (e.g., version conflict), a brief comment would help future maintainers.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/openms_ci_matrix_full.yml at line 239, The conda install line explicitly includes "xz" which is likely redundant because conda-forge's "minizip" should pull it in transitively; either remove "xz" from the install command in the CI workflow (the line containing "conda install -c conda-forge libarrow libparquet minizip xz -y") or, if there is a specific reason to force xz (version pin or conflict), keep it but add a short comment explaining why it's required for future maintainers.cmake/cmake_findExternalLibs.cmake (1)
125-128: Optional: make the fallback target-driven rather than_FOUND-driven.If
find_package(minizip-ng CONFIG QUIET)succeeds (minizip-ng_FOUND=TRUE) but the installation is incomplete and exports neitherMINIZIP::minizip-ngnorMINIZIP::minizip(e.g., a stale or partial contrib build), thefind_package(minizip CONFIG REQUIRED)fallback is silently skipped and the build terminates at line 134. All documented platform paths are fine, but guarding on target existence instead is both more robust and eliminates the dependency on the_FOUNDvariable entirely:♻️ Suggested refactor
find_package(minizip-ng CONFIG QUIET) -if(NOT minizip-ng_FOUND) +if(NOT (TARGET MINIZIP::minizip-ng OR TARGET MINIZIP::minizip)) find_package(minizip CONFIG REQUIRED) endif()🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@cmake/cmake_findExternalLibs.cmake` around lines 125 - 128, The current fallback checks minizip-ng_FOUND which can be TRUE even when expected targets (MINIZIP::minizip-ng or MINIZIP::minizip) are not exported; change the logic in the find_package sequence to check target existence instead of the _FOUND variable: after calling find_package(minizip-ng CONFIG QUIET) test whether TARGET MINIZIP::minizip-ng exists (using if(TARGET ...)) and only if it does not, call find_package(minizip CONFIG REQUIRED) and then verify TARGET MINIZIP::minizip; update the conditional that currently uses minizip-ng_FOUND so that downstream code uses the presence of the MINIZIP::minizip-ng or MINIZIP::minizip targets rather than the minizip-ng_FOUND flag.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.github/workflows/openms_ci_matrix_full.yml:
- Line 289: The workflow is hardcoding the pixi env path
(/tmp/pixi-deps/.pixi/envs/default) into the cmake_prefix output which couples
the CI to deps-ubuntu.sh; modify deps-ubuntu.sh to emit the resolved pixi
install path (e.g., write the full CMake prefix to a well-known file or print it
as an output variable) and update the workflow step that currently sets
cmake_prefix to read that emitted value instead of the hardcoded string (replace
the literal "/tmp/pixi-deps/.pixi/envs/default" in the workflow and the use of
$GITHUB_OUTPUT with reading the value produced by deps-ubuntu.sh so cmake_prefix
reflects the actual install root).
---
Nitpick comments:
In @.github/workflows/openms_ci_matrix_full.yml:
- Line 239: The conda install line explicitly includes "xz" which is likely
redundant because conda-forge's "minizip" should pull it in transitively; either
remove "xz" from the install command in the CI workflow (the line containing
"conda install -c conda-forge libarrow libparquet minizip xz -y") or, if there
is a specific reason to force xz (version pin or conflict), keep it but add a
short comment explaining why it's required for future maintainers.
In `@cmake/cmake_findExternalLibs.cmake`:
- Around line 125-128: The current fallback checks minizip-ng_FOUND which can be
TRUE even when expected targets (MINIZIP::minizip-ng or MINIZIP::minizip) are
not exported; change the logic in the find_package sequence to check target
existence instead of the _FOUND variable: after calling find_package(minizip-ng
CONFIG QUIET) test whether TARGET MINIZIP::minizip-ng exists (using if(TARGET
...)) and only if it does not, call find_package(minizip CONFIG REQUIRED) and
then verify TARGET MINIZIP::minizip; update the conditional that currently uses
minizip-ng_FOUND so that downstream code uses the presence of the
MINIZIP::minizip-ng or MINIZIP::minizip targets rather than the minizip-ng_FOUND
flag.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
.github/workflows/openms_ci_matrix_full.ymlcmake/cmake_findExternalLibs.cmakecontribsrc/openms/CMakeLists.txttools/ci/deps-macos.shtools/ci/deps-ubuntu.shvcpkg.json
🚧 Files skipped from review as they are similar to previous changes (5)
- tools/ci/deps-macos.sh
- tools/ci/deps-ubuntu.sh
- vcpkg.json
- contrib
- src/openms/CMakeLists.txt
| fi | ||
| echo "Testing doxygen" && doxygen --version | ||
| echo "cmake_prefix=" >>$GITHUB_OUTPUT | ||
| echo "cmake_prefix=/tmp/pixi-deps/.pixi/envs/default" >>$GITHUB_OUTPUT |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Find deps-ubuntu.sh
fd -g 'deps-ubuntu.sh' -type fRepository: OpenMS/OpenMS
Length of output: 227
🏁 Script executed:
#!/bin/bash
# Find deps-ubuntu.sh
fd 'deps-ubuntu.sh' -t fRepository: OpenMS/OpenMS
Length of output: 80
🏁 Script executed:
#!/bin/bash
# Check file size and read deps-ubuntu.sh
wc -l tools/ci/deps-ubuntu.sh
cat -n tools/ci/deps-ubuntu.shRepository: OpenMS/OpenMS
Length of output: 2611
🏁 Script executed:
#!/bin/bash
# Search for pixi.toml files and any custom pixi env configurations
fd 'pixi.toml' -t f
echo "---"
# Search for any references to pixi envs or custom environment names
rg -i 'pixi.*env|envs/|pixi_env' --max-count=20Repository: OpenMS/OpenMS
Length of output: 50372
Hardcoded pixi environment path creates tight coupling with deps-ubuntu.sh
The path /tmp/pixi-deps/.pixi/envs/default assumes deps-ubuntu.sh creates a pixi project at exactly that location with the default environment. While currently accurate, any change to the install root or environment name in deps-ubuntu.sh will cause the workflow to silently fail—CMake silently skips non-existent CMAKE_PREFIX_PATH entries, making failures difficult to diagnose.
Consider having deps-ubuntu.sh emit the resolved path (to a file or environment variable) that the workflow can consume, eliminating this silent coupling.
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.github/workflows/openms_ci_matrix_full.yml at line 289, The workflow is
hardcoding the pixi env path (/tmp/pixi-deps/.pixi/envs/default) into the
cmake_prefix output which couples the CI to deps-ubuntu.sh; modify
deps-ubuntu.sh to emit the resolved pixi install path (e.g., write the full
CMake prefix to a well-known file or print it as an output variable) and update
the workflow step that currently sets cmake_prefix to read that emitted value
instead of the hardcoded string (replace the literal
"/tmp/pixi-deps/.pixi/envs/default" in the workflow and the use of
$GITHUB_OUTPUT with reading the value produced by deps-ubuntu.sh so cmake_prefix
reflects the actual install root).
There was a problem hiding this comment.
Seems like the humans are having a chat. I'll hop back into my burrow for now. If you need me again, just tag @coderabbitai in a new comment, and I'll come hopping out!
b9fd3c7 to
91db345
Compare
There was a problem hiding this comment.
♻️ Duplicate comments (1)
.github/workflows/openms_ci_matrix_full.yml (1)
289-289: Hardcoded pixi environment path — already flagged.This path
/tmp/pixi-deps/.pixi/envs/defaultremains hardcoded and tightly coupled todeps-ubuntu.sh. The concern and suggested fix (emitting the resolved path fromdeps-ubuntu.sh) were raised in a previous review.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In @.github/workflows/openms_ci_matrix_full.yml at line 289, Hardcoded cmake_prefix value ("cmake_prefix=/tmp/pixi-deps/.pixi/envs/default") must be replaced by the value emitted by the deps-ubuntu.sh setup step; update the workflow to stop writing the literal path and instead forward the output from the deps setup step (the value emitted by deps-ubuntu.sh) into GITHUB_OUTPUT (i.e. replace the hardcoded echo line with an echo that uses the deps step output like the emitted cmake_prefix from deps-ubuntu.sh or steps.<deps-step>.outputs.cmake_prefix), and ensure deps-ubuntu.sh actually emits that cmake_prefix to be consumed by this workflow.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Duplicate comments:
In @.github/workflows/openms_ci_matrix_full.yml:
- Line 289: Hardcoded cmake_prefix value
("cmake_prefix=/tmp/pixi-deps/.pixi/envs/default") must be replaced by the value
emitted by the deps-ubuntu.sh setup step; update the workflow to stop writing
the literal path and instead forward the output from the deps setup step (the
value emitted by deps-ubuntu.sh) into GITHUB_OUTPUT (i.e. replace the hardcoded
echo line with an echo that uses the deps step output like the emitted
cmake_prefix from deps-ubuntu.sh or steps.<deps-step>.outputs.cmake_prefix), and
ensure deps-ubuntu.sh actually emits that cmake_prefix to be consumed by this
workflow.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
.github/workflows/openms_ci_matrix_full.ymlcmake/cmake_findExternalLibs.cmakecontribsrc/openms/CMakeLists.txttools/ci/deps-macos.shtools/ci/deps-ubuntu.shvcpkg.json
✅ Files skipped from review due to trivial changes (1)
- contrib
🚧 Files skipped from review as they are similar to previous changes (4)
- cmake/cmake_findExternalLibs.cmake
- tools/ci/deps-macos.sh
- vcpkg.json
- tools/ci/deps-ubuntu.sh
CI StatusAll 5 build-and-test jobs pass (Ubuntu g++, Ubuntu clang++, Ubuntu ARM g++, macOS, Windows). The wheel build failures are expected and require infrastructure updates in follow-up work. Follow-up tasks (separate PRs)1. Rebuild Windows contrib archive
2. Rebuild Linux Docker images
3. macOS wheels
|
e32d6cb to
e8326c6
Compare
| libsimde-dev | ||
|
|
||
| # Install minizip-ng from conda-forge via pixi (no apt package available) | ||
| curl -fsSL https://pixi.sh/install.sh | PIXI_NO_PATH_UPDATE=1 bash |
There was a problem hiding this comment.
oof.. I wonder how that will work in packaging. I dont think it will. How would a deb package look like?
There was a problem hiding this comment.
I think the only way is to build it here in CI based on the compression libs from apt
There was a problem hiding this comment.
Or to build it with fetchlib in CMake
There was a problem hiding this comment.
What the hell, where are you guys looking for your apt libraries?? @timosachsenberg
https://pkgs.org/search/?q=minizip
There was a problem hiding this comment.
probably because this is not minizip-ng
but I can try
There was a problem hiding this comment.
You are right. Then you have to use the alternatives (as usual ubuntu is decades behind). I dont think conda will fly in that combination on ubuntu either.
There was a problem hiding this comment.
This library is too "new". It will take years until there is support in large repositories.
There was a problem hiding this comment.
There was a problem hiding this comment.
it is even wontfix on ubuntu.. lol..
There was a problem hiding this comment.
Agreed — reverted the pixi/conda-forge approach. We now build minizip-ng from source in CI (using the apt-provided zlib/bzip2). All CI jobs pass (build-and-test on all platforms + all pyopenms wheel builds and tests).
e8326c6 to
2439a97
Compare
|
I guess it is fine but you really need to keep an eye on packaging. You need to update bioconda recipe. And you need to update self build docs for ubuntu. |
426b998 to
1b39703
Compare
Integrate minizip-ng v4.0.7 across all build paths: - contrib: build script and archive metadata (source uploaded to contrib-sources) - vcpkg: add minizip-ng to dependencies - CMake: dual-name find_package fallback (minizip-ng / minizip) for vcpkg/contrib (-ng suffix) and conda-forge (no suffix) compatibility - CI: brew install (macOS), build from source (Ubuntu), conda install (Windows) Closes #8791 Co-Authored-By: Claude Opus 4.6 <[email protected]>
1b39703 to
3b25439
Compare
|
Why not use libzip? It has supported ZIP64 since 2012 and is in all of the package repos. |
You are right that this would be better. If you want I can make another PR with libzip and with the tests I confirmed working for minizip-ng. |
|
I think I originally came to minizip-ng as it uses zlib (which we already depend on) and it seemed lightweight. I will prepare an alternative PR |
Summary
Motivation: required to store multiple parquet files in a single uncompressed ZIP64 archive.
find_packageuses dual-name fallback (minizip-ngthenminizip) to handle naming differences between vcpkg/contrib (-ngsuffix) and conda-forge (no suffix)Closes #8791
Build paths
minizip-ngMINIZIP::minizip-ngminizip-ngMINIZIP::minizip-ngminizip-ngMINIZIP::minizip-ngminizip-ngMINIZIP::minizip-ngminizipMINIZIP::minizipKnown follow-up items (separate PRs)
contrib_build-Windows.tar.gzwith minizip-ng (needed for pyopenms Windows wheel CI)ghcr.io/openms/contrib_manylinux_2_34Docker image with minizip-ng (needed for pyopenms Linux wheel CI)Test plan
deps-ubuntu.shbuilds minizip-ng from source,find_package(minizip-ng)succeedsbrew install minizip-ngsucceeds,find_package(minizip-ng)succeedsminizipinstalls, fallbackfind_package(minizip)succeeds🤖 Generated with Claude Code
Summary by CodeRabbit