Skip to content
sunlightlinuxPublic

About

Package collection for Sunlight Linux: an xbps-src fork of void-packages. main holds docs and CI; mainline-check mirrors Void's master under CI; next adds the Sunlight package delta, and packages are built from it.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

28 Commits

Folders and files

slpkgs

Sync void-packages Sync next License: Apache-2.0

Part of Sunlight Linux · slinit · slpam · slinstaller · slkernel · slpkgs · sldocs · slmanifests

The package collection for Sunlight Linux: an xbps-src source-package tree, forked from void-packages and rebranded from Void. Each package is a shell template at srcpkgs/<package>/template, built in a chroot with xbps-src into signed .xbps binary packages that slinstaller installs.

Project Details
State Early: the Sunlight package delta is public on next since 2026-11-28 (see below)
Public branches main (docs and CI only) · mainline-check (exact mirror of void-packages master) · next (mainline-check plus the Sunlight delta; packages are built from it)
Upstream void-linux/void-packages
Requires A Linux host able to run xbps-src (see upstream Manual.md)
License Apache 2.0 for Sunlight's additions; imported void-packages templates keep their upstream licensing

Sunlight Linux is a Void-based distribution that runs slinit as PID 1. slpkgs is where its packages are defined: Void's templates, plus the Sunlight delta: Sunlight's own packages (the init system, the kernel, the installer), a slinit service for every Void package that ships a daemon, and a smaller set of rebranded or fixed Void templates.

Deliberately out of scope: a wide rename of void to sunlight (package names, paths and mirrors that must match upstream stay as they are), vendored sources (templates use distfiles plus checksum), and a replacement for xbps-src or its packaging manual.

New here? To build a package, clone next and follow Building. To change one, read CONTRIBUTING.md (work on next, one commit per package) and CLAUDE.md for the rules this repository keeps (small mergeable delta, verified sources), then upstream's Manual.md (on mainline-check or next) for the template format.

What is public today

Branch Content
main README, CONTRIBUTING, SECURITY, CODE_OF_CONDUCT, CLAUDE.md, EXAMPLES.md, licence, the CI workflows and their scripts, and the issue and pull-request templates. No srcpkgs/, no xbps-src.
mainline-check A fast-forward-only mirror of void-packages master: xbps-src, common/, etc/, Manual.md and about 9,700 templates (about 15,000 package names with subpackages), with Void's own commit hashes. Nothing Sunlight-specific is committed here.
next mainline-check plus the Sunlight delta. This is the tree Sunlight's packages are built from, and the signed mirror serves those builds.

next starts with one commit on top of mainline-check, "Sunlight Linux: package delta on void-packages", which adds Sunlight's own packages (slinit, slinit-services, slpam, linux-next, linux-next-full, slinstaller, sunlight-base), the per-package slinit services (vslinit, with the rule book in common/slinit/README.md), and the Void templates Sunlight changes. Measured on 2026-12-01, the delta adds 7 templates and changes 486 of Void's: 434 of those only to add a slinit service, the rest for rebranding (base-files, efibootmgr, grub), build fixes, sd-bus from basu and the login stack (pam-base, sddm, dbus, polkit and others); git diff --stat origin/mainline-check origin/next -- srcpkgs shows the current size. Later package changes are commits on top of it. Void's changes reach next by rebasing those commits onto mainline-check (see below), so next is force-pushed: a clone updates with git fetch && git reset --hard origin/next, or git rebase --onto origin/next <old next> to keep local commits. Before a force-push that rewrites next, the tip it replaces is tagged next-<UTC date>-<12 hex>, so a commit cited by hash stays reachable after the rebase; cite the commit, the tag only keeps it alive.

Building (xbps-src)

git clone -b next https://github.com/sunlightlinux/slpkgs.git
cd slpkgs
./xbps-src binary-bootstrap     # one-time: set up the masterdir
./xbps-src pkg <package>        # build a package
xlint srcpkgs/<package>/template   # template lint (xlint is in xtools)

Run these as a regular user: xbps-src refuses to run as root.

Clone mainline-check instead to build Void's packages unchanged. Sunlight's binary packages are served from a signed package mirror. slinstaller layers it ahead of Void's repository on installed systems (defaultExtraRepo, overridable with --extra-repo).

How the mirror works

.github/workflows/sync-mainline-check.yml runs twice a day (03:30 and 15:30 UTC) and on manual dispatch.

Step Behaviour
Clone Bare, single-branch clone of void-packages master
Compare If mainline-check already equals upstream, do nothing
Guard If mainline-check holds a commit upstream lacks, fail rather than merge: nothing is meant to be committed there
Push Fast-forward only. A large gap is pushed in steps of 20,000 first-parent commits over HTTP/1.1; a day's update is one small push
Credentials The SLPKGS_SYNC_TOKEN secret (fine-grained, this repository only, Contents and Workflows read/write), because upstream edits .github/workflows/ and GITHUB_TOKEN cannot push such commits. Upstream's own workflows do not run here

.github/workflows/sync-next.yml ("Sync next") then carries the mirror into next. It runs after every run of the mirror sync, whether that run succeeded or failed, and on manual dispatch.

Step Behaviour
Compare If next already contains mainline-check, do nothing
Rebase Sunlight's commits are rebased onto mainline-check in a full single-branch clone of next (a blobless one failed fetching blobs on demand mid-rebase), and next is force-pushed with a lease on the tip the run started from, so a commit pushed meanwhile fails the push instead of being lost
Conflict .github/scripts/resolve-template-conflict.py resolves the daily kind: Void updated a package whose revision= Sunlight raised, so it takes Void's version= and checksum= and sets revision= to Void's + 1. Any other conflict goes to the fallback below; without GEMINI_API_KEY, or when the fallback's answer fails its checks, the job fails and pushes nothing: resolve it by hand on next, keeping the revision above Void's
Fallback A conflict the resolver refuses goes to Gemini (gemini-resolve.py, secret GEMINI_API_KEY, variable GEMINI_MODEL, a comma-separated list tried in order until one answers, default gemini-pro-latest), which sees only the three versions of the file. Its answer must keep Void's version and checksum, a revision above Void's and every vslinit line, with no conflict marker and valid shell; even then it is not pushed: the rebased tree goes to a sync/next-<next>-<mainline-check> branch with a pull request for review (opening it needs "Allow GitHub Actions to create and approve pull requests" in the repository's Actions settings), applied by running the workflow with apply_branch (never with the merge button). Running the workflow with gemini_selftest tries this on a synthetic conflict without touching next
Revisions After the rebase, a template Sunlight changes whose revision is not above Void's (both raising N to N+1 merges silently) gets Void's + 1, in a commit of its own
Checks No conflict marker in a file Sunlight touches, and every changed template parses as shell, before the push
Credentials The same SLPKGS_SYNC_TOKEN, since the rebase brings in Void's edits under .github/workflows/

Rebrand policy

The branding delta is kept small and concentrated (base-files, bootloader packages, efibootmgr, and similar), so that syncing with void-packages stays routine. Package names and paths that must match upstream are left unchanged. Prefer changes that upstream could accept.

Documentation

Document Contents
CONTRIBUTING.md How to contribute: template workflow and packaging conventions
SECURITY.md Supply-chain scope and how to report a vulnerability
CODE_OF_CONDUCT.md Community standards
CLAUDE.md Guidelines for LLM-assisted work on templates
EXAMPLES.md Worked xbps-src scenarios for those guidelines
Manual.md (on mainline-check) Upstream's authoritative packaging manual

Testing

Check Command
Template lint xlint srcpkgs/<package>/template (from the xtools package)
Build in a clean masterdir ./xbps-src pkg <package>
Runtime Install the built .xbps, ideally in a VM

Where this fits

slpkgs is one of the projects in the Sunlight Linux tree, wired up by slmanifests:

repo init -u https://github.com/sunlightlinux/slmanifests.git -b main
repo sync -j4
# slpkgs lands at pkgs/

Contributing

See CONTRIBUTING.md. Template changes go to next, one commit per package in void-packages' format (<pkgname>: update to <version>.); changes to docs and CI go to main as area: short summary plus a paragraph on why.

License

Apache License 2.0 for Sunlight's additions and rebrand. Imported upstream void-packages templates retain their upstream licensing.

About

Package collection for Sunlight Linux: an xbps-src fork of void-packages. main holds docs and CI; mainline-check mirrors Void's master under CI; next adds the Sunlight package delta, and packages are built from it.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors