Repository navigation
[0.0.27] feat(packaging): add Alpine, Gentoo, and Void packaging recipes (#2513, #2516, #2517) - #2558
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 50 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 |
1274170 to
0a3d989
Compare
0a3d989 to
148e7cc
Compare
Xuepoo
left a comment
There was a problem hiding this comment.
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.shon agit archiveof 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 -xline 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).
- ebuilds renamed 0.0.27 -> 0.0.28 ->
bash -non 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; controlsys-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
- Gentoo source ebuild cannot build.
bitty-0.0.27.ebuildsetsCRATES="", so${CARGO_CRATE_URIS}is empty andsrc_unpackalways takes theelsebranch ->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_confignever runs andcargo_src_compiledies incargo_env:please call cargo_gen_config before using cargo_env. Needs a populatedCRATESlist pluscargo_src_unpack/cargo_src_configure. BDEPEND="sys-apps/tic"in both ebuilds: no such package in the Gentoo tree (404 above), tic ships insys-libs/ncurses. Dependency resolution fails before unpack.- Alpine
subpackages="$pkgname-doc"has nodoc()split function whilepackage()installs README/CHANGELOG into$pkgdir; abuild validate diesMissing split function for $subpkgname. Drop the subpackage or add the split. packaging/gentoo.mdpoints Portage at the repo root (sync-uri = https://github.com/bitty-terminal/bitty.gitwithlocation = /var/db/repos/bitty, andeselect repository add bitty git …), but overlay metadata exists only inpackaging/gentoo/(profiles/repo_name,metadata/layout.conf; no rootprofiles/ormetadata/). Both documented methods yield an invalid repo; only the "alternatively … location = /path/to/bitty/packaging/gentoo" snippet is right.- 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 documentedabuild checksum/xbps-src xgensum/emergesteps 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.yamlandcrates/bitty-terminal/Cargo.tomlall sayMIT OR Apache-2.0. - Gate is local-only:
distro-recipes-testis injust check, but CI's "Validate packaging recipes" step (ci.yml ~197-208) never calls it. Patterns are loose (pkgname=bittyypasses) and ebuild filenames are hardcoded to 0.0.27, so every version bump breaks the gate — glob the version. - Docs policy:
packaging/README.mdtable not updated, and gentoo/void are sold as "official" with noverify-installleg, against that file's "anything else is best-effort and labeled" rule. - Void:
checksum="SKIP",short_descis 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 thebitty-<ver>-<target>.tar.zstCDN naming used byscripts/install.sh. - Package/bin naming (
bitty-terminal, binbitty) matchescargo auditable build -p bitty-terminal,cargo_src_compile -p bitty-terminal --bin bittyandmake_install_args="--path crates/bitty-terminal --bin bitty". - EAPI=8, KEYWORDS/SLOT, layout.conf/repo_name,
options="net",-crt-staticmusl flag, and the justfilecheckwiring 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).
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:
packaging/alpine.md.packaging/gentoo/with:x11-terms/bitty/bitty-0.0.27.ebuildusingcargo.eclass.x11-terms/bitty-bin/bitty-bin-0.0.27.ebuildfetching verified bundle fromcdn.bitty.run.metadata/layout.confandprofiles/repo_name.packaging/gentoo.mdcovering local overlay andeselect repositoryusage.packaging/void/srcpkgs/bitty/templateforxbps-srcusingbuild_style=cargowithvdesk,vinstall,vlicense, andtic -xterminfo compilation. Createdpackaging/void.md.packaging/INSTALL.mdto document all three distributions.scripts/tests/check-distro-recipes.test.shand wireddistro-recipes-testintojustfileunderjust check.