Repository navigation
[0.0.27] feat(packaging): add FreeBSD Ports recipe (#2512) - #2565
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 39 minutes. View limit details
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 |
Port covers the 0.0.27 release line: x11/bitty builds from the released source tarball with USES=cargo and a CARGO_CRATES list generated from Cargo.lock, and installs bin/bitty, the desktop entry, AppStream metadata, the hicolor icon set, the compiled terminfo entry, and the docs. distinfo stays comment-only until make makesum runs at tag time; the docs say so and packaging/freebsd.md labels the port best-effort, not supported. check-distro-recipes.test.sh gains version-agnostic FreeBSD assertions: Makefile fields, USES=cargo and CARGO_CRATES presence, do-install coverage, pkg-plist entries resolving to in-tree sources, icon-size agreement, pkg-descr/distinfo content, and absence of hardcoded host paths.
d085f6e to
21a5992
Compare
Xuepoo
left a comment
There was a problem hiding this comment.
Independent review verdict — guard cron (hermes-planner), not the author lane
Reviewed head 21a5992b (post-rebase onto origin/main 4555fdc6), 8 files: 4 new port
files, packaging/freebsd.md, the two packaging indexes, and the distro-recipes gate.
No Rust code, no behaviour change; the recipe is inert until a maintainer copies it into a
ports tree.
Verified locally at 21a5992b:
$ bash scripts/tests/check-distro-recipes.test.sh
PASS: FreeBSD ports Makefile integrity
PASS: FreeBSD pkg-descr is non-empty and carries a WWW line
PASS: FreeBSD distinfo defers checksums to make makesum
PASS: FreeBSD pkg-plist (13 entries) matches in-tree sources
PASS: FreeBSD recipe has no hardcoded host paths
PASS: Documentation exists: packaging/freebsd.md
PASS: Documentation states tag-time steps: packaging/freebsd.md
PASS: INSTALL.md references the Alpine, Gentoo, Void, and FreeBSD recipes
check-distro-recipes.test.sh: ALL PASS # exit 0
Independent cross-checks beyond the gate:
CARGO_CRATESvsCargo.lockat this head: 397 crates.io entries (the first is on the
CARGO_CRATES=line, so a naive tab-anchored count reads 396) plus 18 git-sourced crates
spelled across 10@git+…group lines —bitty-a11y(two revs),bitty-execution,
bitty-ipc(6 crates),bitty-network(2),bitty-observability-api,
bitty-platform-services,bitty-storage,bitty-url-detector,phodopus(3).
Cargo.locktotals 432 packages = 397 registry + 18 git + 17 workspace, so the vendored
list is complete and the group syntax matchescargo.mk'sname[,name…]@git+url?rev=X#sha.do-install↔pkg-plist:bin/bitty, desktop entry, metainfo, six icon sizes
(16/32/64/128/256/512) + scalable SVG,tic -xoutput atshare/terminfo/b/bitty, and
the two%%PORTDOCS%%files — exactly the 13 plist entries, no orphan either direction.
Every source path used by the recipe exists in-tree (verified individually).LICENSE= MIT APACHE20+LICENSE_COMB= dual+LICENSE_FILE_MIT=${WRKSRC}/LICENSE
matchesCargo.toml/nfpm.yaml/packaging/PKGBUILD;CARGO_BUILD_ARGS+= -p bitty-terminal --bin bittybuilds the shipped binary name, not a test-support crate.MASTER_SITES+DISTFILES= v${PORTVERSION}${EXTRACT_SUFX}resolves to the
archive/refs/tags/v0.0.27.tar.gzsource tarball, the same artifact the Alpine/Void/
Gentoo source recipes fetch;PORTVERSIONis in step with the workspace version.distinfois comment-only and the docs state the failure is intentional (make fetch/
make checksumfail closed) rather than shipping hand-written sums.
Non-blocking:
- PR body is stale on one number: it says "397 crates.io entries + 17 git-sourced crates in
8@git+…groups"; at this head it is 18 git crates in 10 groups (the rebase picked up
another rev/group). Evidence records get quoted later, so the body should be corrected. packaging/freebsd.mdsaysmake makesumhashes "the published tarball" — the source is
a GitHub tag archive; GitHub has changed archive compression/content before, which is why
ports practice is to re-runmakesumat every tag. The doc already says to regenerate at
tag time, so this is a wording risk only.- Only
amd64is enabled with an explicitONLY_FOR_ARCHS_REASON— correct given the
release matrix, no change requested.
VERDICT: APPROVE — the recipe is internally consistent, gate-covered, and honest about
being best-effort (no publish, no checksum, no support claim).
Closes #2512
Priority: P1 | Area: package | Milestone: v0.0.27 | Task: CTX-1473
Supersedes #2563, which was auto-closed when its stacked base branch was
deleted. This branch is rebased directly onto
main(152f259a) and nolonger depends on #2558.
Summary
Adds a FreeBSD Ports recipe for Bitty at
packaging/freebsd/x11/bitty/(
Makefile,pkg-plist,pkg-descr,distinfo) plus docs and theCI-checkable distro-recipes gate.
PORTNAME=bitty,PORTVERSION=0.0.27,CATEGORIES=x11.v0.0.27tag withUSES=cargoandCARGO_CRATESregenerated fromCargo.lock(397 crates.io entries + 17 git-sourced crates in 8
@git+...groups).LICENSE=MIT APACHE20(LICENSE_COMB=dual), matchingCargo.toml,nfpm.yaml, andpackaging/PKGBUILD.LIB_DEPENDS= fontconfig + freetype, the directNEEDEDset inpackaging/linux/runtime-deps.toml.ONLY_FOR_ARCHS=amd64; release CI coversx86_64-unknown-freebsdonly.distinfois comment-only until the tag exists;freebsd.mddocuments thetag-time
make makesum/make cargo-cratesstep.Docs and gate:
packaging/freebsd.md— ports-tree build/install,make stage,make check-plist, checksum regeneration, coverage limits, and an explicitbest-effort (not supported) label.
packaging/README.md— FreeBSD row and build-only release-matrix note.packaging/INSTALL.md— FreeBSD install bullet.scripts/tests/check-distro-recipes.test.sh— FreeBSD section, merged withthe Alpine/Gentoo/Void and openSUSE sections.
Verification
After the rebase onto
152f259a:Other gates:
actionlint, all packaging-step scripts,just fmt-check,shfmt -d,shellcheck -S warning,git diff --checkpass. No Rust source,workflow, or build-system changes; the only non-
packaging/file is theexisting distro-recipes gate script. A FreeBSD host is not available here, so
make stage/make check-plistare structurally gated only, which is whythe port is labeled best-effort.