Skip to content

openzl 0.1.0 (new formula)#260213

Closed
abelcha wants to merge 1 commit into
Homebrew:mainfrom
abelcha:add-openzl-formula
Closed

openzl 0.1.0 (new formula)#260213
abelcha wants to merge 1 commit into
Homebrew:mainfrom
abelcha:add-openzl-formula

Conversation

@abelcha

@abelcha abelcha commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

Summary

This pull request adds a Homebrew formula for OpenZL, a format-aware compression framework that delivers high compression ratios while preserving high speed.

OpenZL is designed for engineers dealing with large quantities of specialized datasets (such as AI workloads) and require high speed for their processing pipelines.

Details

  • Project: OpenZL (https://github.com/facebook/openzl)
  • Version: 0.1.0 (Latest stable release)
  • License: BSD-3-Clause
  • Build System: CMake
  • Requirements: CMake 3.20.2+, C11 and C++17 compiler

Installed Components

  • CLI Tool: zli command for compression/decompression
  • Library: libopenzl.a static library for development
  • Headers: 39 header files for C/C++ integration
  • CMake Config: For easy integration in CMake projects

Testing

The formula has been:

  • ✅ Tested on macOS (Apple Silicon)
  • ✅ Verified to build from source successfully
  • ✅ Validated with all components (library, headers, CLI tool)
  • ✅ Confirmed to work with dependent packages

Usage Examples

# Use the CLI tool
zli compress mydata.bin --output mydata.zlc --profile <profile>
zli decompress mydata.zlc --output recovered.bin

# Use in CMake projects
find_package(openzl CONFIG REQUIRED)
target_link_libraries(my_app openzl::openzl)

Additional Resources

🤖 Generated with Claude Code

OpenZL is a format-aware compression framework that delivers high compression
ratios while preserving high speed. It's designed for engineers dealing with
large quantities of specialized datasets.

- Version: 0.1.0 (Latest stable release)
- License: BSD-3-Clause
- Build system: CMake
- Provides: CLI tool (zli), library, and headers for development

Closes #nnn (replace with issue number if applicable)

🤖 Generated with Claude Code
@github-actions github-actions Bot added the autosquash Automatically squash pull request commits according to Homebrew style. label Dec 26, 2025
@github-actions

Copy link
Copy Markdown
Contributor

Caution

Failed to change base branch to main. Please edit your pull request manually to target the main branch instead of the master branch.

@github-actions github-actions Bot added the new formula PR adds a new formula to Homebrew/homebrew-core label Dec 26, 2025
@daeho-ro

Copy link
Copy Markdown
Member

AI generated PR totally break our PR guideline. :(

@daeho-ro
daeho-ro marked this pull request as draft December 26, 2025 12:36
@daeho-ro

Copy link
Copy Markdown
Member

OpenZL is not yet support system installed zstd and so I think we should wait for that or build zstd from git submodule.

@botantony botantony left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Rebase the branch (your branch is almost 100,000 commits behind)
  2. Formula definition should be in Formula/o/openzl.rb, not in Formula/openzl.rb. Please run brew style openzl and brew audit openzl
  3. Don't delete our PR template:
  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?
  1. Ensure you follow the commit style: https://docs.brew.sh/Formula-Cookbook#commit
  2. Address all CI failures

Comment thread Formula/openzl.rb
Comment on lines 1 to 4

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment thread Formula/openzl.rb
Comment on lines 13 to 14

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment thread Formula/openzl.rb
Comment on lines 19 to 23

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Comment thread Formula/openzl.rb
Comment on lines 25 to 36

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"-DOPENZL_BUILD_TESTS=OFF",
"-DOPENZL_BUILD_BENCHMARKS=OFF",
"-DOPENZL_BUILD_CLI=ON",
"-DOPENZL_BUILD_TOOLS=ON",
"-DOPENZL_BUILD_EXAMPLES=OFF",
"-DOPENZL_INSTALL=ON",
"-DOPENZL_CPP_INSTALL=ON",
"-DZSTD_BUILD_PROGRAMS=OFF",
"-DZSTD_BUILD_CONTRIB=OFF",
"-DZSTD_BUILD_TESTS=OFF",
*std_cmake_args

Comment thread Formula/openzl.rb
Comment on lines 38 to 42

@botantony botantony Dec 26, 2025

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
system "cmake", "--build", "build"
system "cmake", "--install", "build"

Comment thread Formula/openzl.rb
Comment on lines 64 to 72

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert_match version.to_s, shell_output("#{bin}/zli --version")

Homebrew requires a simple test that checks if a program can do basic stuff correctly. From Formula Cookbook:

We want tests that don’t require any user input and test the basic functionality of the application. For example foo build-foo input.foo is a good test and (despite their widespread use) foo --version and foo --help are bad tests. However, a bad test is better than no test at all.

Comment thread Formula/openzl.rb
Comment on lines 58 to 60

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
bin.install "build/cli/zli"

Comment thread Formula/openzl.rb

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't use brewed zstd. Either remove the dependency or (even better) try to find a way to dynamically link openzl with brewed zstd

@botantony
botantony changed the base branch from master to main December 26, 2025 12:47
@botantony botantony changed the title Add openzl formula openzl 0.1.0 (new formula) Dec 26, 2025

@chenrui333 chenrui333 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the file path is wrong too, your base branch is quite outdated as well (please sync your fork)

@p-linnane

Copy link
Copy Markdown
Contributor

This AI slop is a waste of maintainer time.

@p-linnane p-linnane closed this Dec 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosquash Automatically squash pull request commits according to Homebrew style. new formula PR adds a new formula to Homebrew/homebrew-core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants