feat(pigz): add madler/pigz llar formula#9
Open
fennoai[bot] wants to merge 2 commits into
Open
Conversation
Add build formula for pigz (parallel implementation of gzip). - Uses plain Makefile build system with zlib dependency - Installs pigz and unpigz binaries to bin/ - Uses semver version comparator for v2.x tags Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: MeteorsLiu <17515813+MeteorsLiu@users.noreply.github.com>
Open
MeteorsLiu
reviewed
Feb 26, 2026
| cflags := "-O3 -Wall -Wextra -Wno-unknown-pragmas -Wcast-qual -I" + filepath.Join(zlibDir, "include") | ||
| libs := "-L" + filepath.Join(zlibDir, "lib") + " -lm -lpthread -lz" | ||
|
|
||
| exec "make", "-C", src, "pigz", "CFLAGS="+cflags, "LIBS="+libs |
Collaborator
There was a problem hiding this comment.
@xgopilot You should use autotools instead of exec make!
Author
There was a problem hiding this comment.
Updated madler/pigz/v2.4/pigz_llar.gox to use autotools instead of exec make.
Changes:
- Replaced manual
CFLAGS/LIBSstring construction +exec "make"withautotools.new()builder - Used
a.use(depDir)to inject zlib dependency paths — this setsCPPFLAGS/LDFLAGSautomatically - Calls
a.build()to runmake(skipsconfiguresince pigz has no./configurescript) - Binary installation (manual copy) kept as-is since pigz has no
make installtarget
Replace manual CFLAGS/LIBS injection via exec make with autotools.new() and a.use() to properly inject zlib dependency paths through CPPFLAGS/LDFLAGS. Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: MeteorsLiu <17515813+MeteorsLiu@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by @MeteorsLiu
Closes #8
Adds a build formula for pigz — a parallel implementation of gzip.
Summary
madler/pigz/versions.json— module metadatamadler/pigz/pigz_cmp.gox— semver version comparator (tags usev2.xformat)madler/pigz/v2.4/pigz_llar.gox— build formula starting from v2.4Build details
madler/zlib(v1.2.11+)make installtarget — binaries (pigz,unpigz) are manually copied tobin/makecommand line to inject the zlib install paths