Skip to content

[0.0.27] feat(packaging): add Alpine, Gentoo, and Void packaging recipes (#2513, #2516, #2517) - #2558

Merged
Xuepoo merged 3 commits into
mainfrom
ctx-1471/feat-distro-recipes
Oct 23, 2026
Merged

Xuepoo merged 3 commits into
mainfrom
ctx-1471/feat-distro-recipes

Conversation

@Xuepoo

@Xuepoo Xuepoo commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Priority: P1 | Area: package | Labels: feat, P1, area:package | Milestone: v0.0.27 | Task: CTX-1471

Closes #2513
Closes #2516
Closes #2517

Summary

Consolidated package ecosystem recipe templates and documentation for Alpine Linux, Gentoo Linux, and Void Linux without requiring external API tokens:

  • Alpine Linux: Added upstream conforming to Alpine aports standard (options=\net, shared musl dynamically linked against system fontconfig/freetype, desktop, icons, terminfo). Updated packaging/alpine.md.
  • Gentoo Linux: Added complete Portage overlay repository layout at packaging/gentoo/ with:
    • Source-build ebuild: x11-terms/bitty/bitty-0.0.27.ebuild using cargo.eclass.
    • Fast prebuilt binary ebuild: x11-terms/bitty-bin/bitty-bin-0.0.27.ebuild fetching verified bundle from cdn.bitty.run.
    • Repository metadata: metadata/layout.conf and profiles/repo_name.
    • Guide: packaging/gentoo.md covering local overlay and eselect repository usage.
  • Void Linux: Added packaging/void/srcpkgs/bitty/template for xbps-src using build_style=cargo with vdesk, vinstall, vlicense, and tic -x terminfo compilation. Created packaging/void.md.
  • Installation Guide: Updated packaging/INSTALL.md to document all three distributions.
  • Quality Gate: Added scripts/tests/check-distro-recipes.test.sh and wired distro-recipes-test into justfile under just check.

@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 50 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: d0eedb17-8254-457e-87e2-24de555d0cd5
📥 Commits

Reviewing files that changed from the base of the PR and between 9aca21a and 229f9ca.

📒 Files selected for processing: 14
  • .github/workflows/ci.yml
  • justfile
  • packaging/INSTALL.md
  • packaging/README.md
  • packaging/alpine.md
  • packaging/alpine/APKBUILD
  • packaging/gentoo.md
  • packaging/gentoo/metadata/layout.conf
  • packaging/gentoo/profiles/repo_name
  • packaging/gentoo/x11-terms/bitty-bin/bitty-bin-0.0.27.ebuild
  • packaging/gentoo/x11-terms/bitty/bitty-9999.ebuild
  • packaging/void.md
  • packaging/void/srcpkgs/bitty/template
  • 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 force-pushed the ctx-1471/feat-distro-recipes branch from 1274170 to 0a3d989 Compare October 23, 2026 09:36
@Xuepoo
Xuepoo force-pushed the ctx-1471/feat-distro-recipes branch from 0a3d989 to 148e7cc Compare October 23, 2026 10:16

@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 — PR #2558 (distro recipes)

Independent review by bitty guard cron
Head: 9dc3fb8 (ctx-1471/feat-distro-recipes, merge-base 9aca21a), 12 files, +465/-2.
Scope: packaging/alpine/APKBUILD, packaging/gentoo/, packaging/void/, packaging/{alpine,gentoo,void,INSTALL}.md, justfile, scripts/tests/check-distro-recipes.test.sh.
Host has no abuild / xbps-src / emerge / pkgcheck, so recipes were reviewed statically against abuild and cargo.eclass sources.

Checks performed (real output)

  • git fetch origin pull/2558/head:pr-2558-review -> new ref; git rev-parse -> 9dc3fb8… (matches requested head).
  • bash scripts/tests/check-distro-recipes.test.sh on a git archive of head -> 10 PASS lines, check-distro-recipes.test.sh: ALL PASS, exit 0. Script mode 100755.
  • Negative probes on copies (does the gate bite?):
    • ebuilds renamed 0.0.27 -> 0.0.28 -> FAIL: Gentoo source ebuild not found / FAIL: Gentoo binary ebuild not found, exit 1.
    • tic -x line deleted from void template -> FAIL: Void template missing tic -x, exit 1.
    • pkgname=bitty -> pkgname=bittyy -> PASS: Alpine APKBUILD integrity, exit 0 (prefix match, false pass).
  • bash -n on the test script and the APKBUILD -> OK.
  • scripts/check-release-version.sh --print -> 0.0.26; curl -w '%{http_code}' .../archive/refs/tags/v0.0.27.tar.gz -> 404.
  • Gentoo tree probes: packages.gentoo.org/packages/sys-apps/tic -> 404; control sys-apps/baselayout -> 200 with content.
  • Sweep of added files for secrets / host paths / CJK -> none (only documented /var/db/repos/bitty); non-ASCII is em dashes in pre-existing prose. English-only OK.

Blockers

  1. Gentoo source ebuild cannot build. bitty-0.0.27.ebuild sets CRATES="", so ${CARGO_CRATE_URIS} is empty and src_unpack always takes the else branch -> cargo_live_src_unpack, which in current cargo.eclass dies: [[ "${PV}" == *9999* ]] || die "${FUNCNAME} only allowed in live/9999 ebuilds". Even with unpack fixed, cargo_gen_config never runs and cargo_src_compile dies in cargo_env: please call cargo_gen_config before using cargo_env. Needs a populated CRATES list plus cargo_src_unpack/cargo_src_configure.
  2. BDEPEND="sys-apps/tic" in both ebuilds: no such package in the Gentoo tree (404 above), tic ships in sys-libs/ncurses. Dependency resolution fails before unpack.
  3. Alpine subpackages="$pkgname-doc" has no doc() split function while package() installs README/CHANGELOG into $pkgdir; abuild validate dies Missing split function for $subpkgname. Drop the subpackage or add the split.
  4. packaging/gentoo.md points Portage at the repo root (sync-uri = https://github.com/bitty-terminal/bitty.git with location = /var/db/repos/bitty, and eselect repository add bitty git …), but overlay metadata exists only in packaging/gentoo/ (profiles/repo_name, metadata/layout.conf; no root profiles/ or metadata/). Both documented methods yield an invalid repo; only the "alternatively … location = /path/to/bitty/packaging/gentoo" snippet is right.
  5. Pins target a non-existent tag: recipes and the test say 0.0.27, while check-release-version.sh --print = 0.0.26, latest tag is v0.0.26, and the v0.0.27 source tarball is 404. The documented abuild checksum / xbps-src xgensum / emerge steps fail today. Pin 0.0.26 or land after the tag (PKGBUILD/bitty.spec are still 0.0.26, so in-tree pins disagree).

Should fix (non-blocking)

  • License metadata: all three new recipes declare Apache-2.0; PKGBUILD, PKGBUILD.bin, bitty.spec, nfpm.yaml and crates/bitty-terminal/Cargo.toml all say MIT OR Apache-2.0.
  • Gate is local-only: distro-recipes-test is in just check, but CI's "Validate packaging recipes" step (ci.yml ~197-208) never calls it. Patterns are loose (pkgname=bittyy passes) and ebuild filenames are hardcoded to 0.0.27, so every version bump breaks the gate — glob the version.
  • Docs policy: packaging/README.md table not updated, and gentoo/void are sold as "official" with no verify-install leg, against that file's "anything else is best-effort and labeled" rule.
  • Void: checksum="SKIP", short_desc is 83 chars (xlint prefers <=72).
  • Gentoo RDEPEND over-declares (wayland, xkbcommon, libX11, zlib) versus packaging/linux/runtime-deps.toml, which lists only fontconfig/freetype/libgcc as direct NEEDED sonames.

Verified good

  • Every referenced payload exists in-tree: desktop entry, metainfo, six PNG sizes + SVG icon, terminfo/bitty.ti, LICENSE/README/CHANGELOG.
  • Gentoo bin ebuild matches the real bundle layout from scripts/make-unix-bundle.sh (bin/bitty, share/…, terminfo/bitty.ti, README/CHANGELOG) and the bitty-<ver>-<target>.tar.zst CDN naming used by scripts/install.sh.
  • Package/bin naming (bitty-terminal, bin bitty) matches cargo auditable build -p bitty-terminal, cargo_src_compile -p bitty-terminal --bin bitty and make_install_args="--path crates/bitty-terminal --bin bitty".
  • EAPI=8, KEYWORDS/SLOT, layout.conf/repo_name, options="net", -crt-static musl flag, and the justfile check wiring are syntactically plausible.

VERDICT: REQUEST-CHANGES — blockers 1-5 (Gentoo source src_unpack/gen_config, nonexistent sys-apps/tic, Alpine $pkgname-doc without split function, gentoo.md overlay sync-uri at repo root, 0.0.27 pins against a 404 tag).

@Xuepoo
Xuepoo merged commit 152f259 into main Oct 23, 2026
31 of 33 checks passed
@Xuepoo
Xuepoo deleted the ctx-1471/feat-distro-recipes branch October 23, 2026 14:50
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

1 participant