Skip to content

feat(pigz): add madler/pigz llar formula#9

Open
fennoai[bot] wants to merge 2 commits into
mainfrom
xgopilot/issue-8-1772073086
Open

feat(pigz): add madler/pigz llar formula#9
fennoai[bot] wants to merge 2 commits into
mainfrom
xgopilot/issue-8-1772073086

Conversation

@fennoai

@fennoai fennoai Bot commented Feb 26, 2026

Copy link
Copy Markdown

Requested by @MeteorsLiu

Closes #8

Adds a build formula for pigz — a parallel implementation of gzip.

Summary

  • madler/pigz/versions.json — module metadata
  • madler/pigz/pigz_cmp.gox — semver version comparator (tags use v2.x format)
  • madler/pigz/v2.4/pigz_llar.gox — build formula starting from v2.4

Build details

  • pigz uses a plain Makefile (no autotools/cmake/meson)
  • Depends on madler/zlib (v1.2.11+)
  • No make install target — binaries (pigz, unpigz) are manually copied to bin/
  • CFLAGS and LIBS are overridden on the make command line to inject the zlib install paths

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>
@fennoai fennoai Bot mentioned this pull request Feb 26, 2026
Comment thread madler/pigz/v2.4/pigz_llar.gox Outdated
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@xgopilot You should use autotools instead of exec make!

@fennoai fennoai Bot Feb 26, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Updated madler/pigz/v2.4/pigz_llar.gox to use autotools instead of exec make.

Changes:

  • Replaced manual CFLAGS/LIBS string construction + exec "make" with autotools.new() builder
  • Used a.use(depDir) to inject zlib dependency paths — this sets CPPFLAGS/LDFLAGS automatically
  • Calls a.build() to run make (skips configure since pigz has no ./configure script)
  • Binary installation (manual copy) kept as-is since pigz has no make install target

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add pigz

2 participants