Skip to content

[0.0.27] feat(packaging): add FreeBSD Ports recipe (#2512) - #2565

Merged
Xuepoo merged 2 commits into
mainfrom
ctx-1473/feat-freebsd-ports
Oct 23, 2026
Merged

Xuepoo merged 2 commits into
mainfrom
ctx-1473/feat-freebsd-ports

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

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 no
longer 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 the
CI-checkable distro-recipes gate.

  • PORTNAME=bitty, PORTVERSION=0.0.27, CATEGORIES=x11.
  • Builds from the released source tarball for the v0.0.27 tag with
    USES=cargo and CARGO_CRATES regenerated from Cargo.lock
    (397 crates.io entries + 17 git-sourced crates in 8 @git+... groups).
  • LICENSE=MIT APACHE20 (LICENSE_COMB=dual), matching Cargo.toml,
    nfpm.yaml, and packaging/PKGBUILD.
  • LIB_DEPENDS = fontconfig + freetype, the direct NEEDED set in
    packaging/linux/runtime-deps.toml.
  • ONLY_FOR_ARCHS=amd64; release CI covers x86_64-unknown-freebsd only.
  • distinfo is comment-only until the tag exists; freebsd.md documents the
    tag-time make makesum / make cargo-crates step.

Docs and gate:

  • packaging/freebsd.md — ports-tree build/install, make stage,
    make check-plist, checksum regeneration, coverage limits, and an explicit
    best-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 with
    the Alpine/Gentoo/Void and openSUSE sections.

Verification

After the rebase onto 152f259a:

bash scripts/tests/check-distro-recipes.test.sh
PASS: Alpine APKBUILD integrity
PASS: Gentoo repo_name exists and contains 'bitty'
PASS: Gentoo layout.conf valid
PASS: Gentoo source ebuild integrity
PASS: Gentoo binary ebuild integrity
PASS: Void Linux template integrity
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 for all four distros
PASS: INSTALL.md references all four distro packaging guides
check-distro-recipes.test.sh: ALL PASS

Other gates: actionlint, all packaging-step scripts, just fmt-check,
shfmt -d, shellcheck -S warning, git diff --check pass. No Rust source,
workflow, or build-system changes; the only non-packaging/ file is the
existing distro-recipes gate script. A FreeBSD host is not available here, so
make stage / make check-plist are structurally gated only, which is why
the port is labeled best-effort.

@Xuepoo Xuepoo added this to the v0.0.27 milestone Oct 23, 2026
@Xuepoo Xuepoo added feat Feature P1 Priority: high area:package Area: package lifecycle labels Oct 23, 2026
@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI (base), Organization UI (inherited)
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1135ef5d-f79f-4df8-977e-38365e9fc062
📥 Commits

Reviewing files that changed from the base of the PR and between 07f7c68 and 4cebbab.

📒 Files selected for processing: 8
  • packaging/INSTALL.md
  • packaging/README.md
  • packaging/freebsd.md
  • packaging/freebsd/x11/bitty/Makefile
  • packaging/freebsd/x11/bitty/distinfo
  • packaging/freebsd/x11/bitty/pkg-descr
  • packaging/freebsd/x11/bitty/pkg-plist
  • scripts/tests/check-distro-recipes.test.sh
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Xuepoo Xuepoo mentioned this pull request Oct 23, 2026
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.
@Xuepoo
Xuepoo force-pushed the ctx-1473/feat-freebsd-ports branch from d085f6e to 21a5992 Compare October 23, 2026 16:02

@Xuepoo Xuepoo left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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_CRATES vs Cargo.lock at 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.lock totals 432 packages = 397 registry + 18 git + 17 workspace, so the vendored
    list is complete and the group syntax matches cargo.mk's name[,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 -x output at share/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
    matches Cargo.toml / nfpm.yaml / packaging/PKGBUILD; CARGO_BUILD_ARGS+= -p bitty-terminal --bin bitty builds 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.gz source tarball, the same artifact the Alpine/Void/
    Gentoo source recipes fetch; PORTVERSION is in step with the workspace version.
  • distinfo is comment-only and the docs state the failure is intentional (make fetch /
    make checksum fail closed) rather than shipping hand-written sums.

Non-blocking:

  1. 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.
  2. packaging/freebsd.md says make makesum hashes "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-run makesum at every tag. The doc already says to regenerate at
    tag time, so this is a wording risk only.
  3. Only amd64 is enabled with an explicit ONLY_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).

@Xuepoo
Xuepoo merged commit c6a53a2 into main Oct 23, 2026
20 checks passed
@Xuepoo
Xuepoo deleted the ctx-1473/feat-freebsd-ports branch October 23, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:package Area: package lifecycle feat Feature P1 Priority: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[0.0.27] packaging: FreeBSD Ports (x11/bitty)

1 participant