The regex required names to end with a letter ([a-zA-Z]) to avoid
capturing version numbers, but this rejected valid packages like
"nghttp2" that end with a digit.
Fix: use a greedy regex that captures the full "category/name-version"
string, then strip the version suffix with a dedicated function that
finds the last "-" followed by a digit. This correctly handles:
- "dev-libs/openssl-1.0.2" → "openssl"
- "net-libs/nghttp2" → "nghttp2" (no version, ends in digit)
- "sys-libs/zlib" → "zlib"
- "dev-qt/qt6-base-6.8.0" → "qt6-base" (hyphen in name)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1. host.ovmf: Arch edk2-ovmf 202508+ uses OVMF_CODE.4m.fd (4MB variant)
instead of OVMF_CODE.fd. Added .4m.fd paths to the search list and
updated the find fallback to match OVMF_CODE*.fd glob.
2. test_parse_dep_atoms: The single-regex approach with lazy quantifiers
failed on atoms like "sys-libs/zlib" at end-of-string. Rewrote
parse_dep_atoms to split on whitespace first, strip [:slot] and [USE]
suffixes, then match category/name with a simple anchored regex.
This is more robust and easier to reason about.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1. converter panic (5 unit tests): "FIXME_CHECKSUM".repeat(4) is only
56 chars but was sliced to [..64], causing index-out-of-bounds panic.
Both crux.rs and gentoo.rs converters now use "a".repeat(64) as the
placeholder checksum instead.
2. dpack list/check exit code 1: these commands call PackageDb::open()
which tries to create /var/lib/dpack/db — fails without root.
Test runner now creates a temp dpack.conf pointing at a writable
temp directory with repos symlinked from the project. Also added
search and info smoke tests.
3. host.ovmf: not a code bug — edk2-ovmf just needs to be installed
on the test VM (sudo pacman -S edk2-ovmf --noconfirm).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The CheckUpdates handler now reads has_repo_update to label each
update with its source: [repo], [upstream], or [repo+upstream].
This was the last remaining warning — build should now be fully clean.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Removed both blanket #![allow(dead_code)] from main.rs and lib.rs.
Each warning is now handled individually with a targeted #[allow]
and a comment explaining WHY the item exists and WHEN it will be used.
Fixes:
- resolver/mod.rs: Added missing SourceInfo fields (git, branch, tag,
commit, update_check) to test helper make_pkg() — fixes cargo test
- main.rs: Wire DEFAULT_CONFIG_PATH constant into CLI default_value
instead of hardcoding the string (eliminates unused constant warning)
Targeted #[allow(dead_code)] with justification on:
- config/global.rs: load_default() (future system service mode),
find_package() (future replacement for inline Info search)
- resolver/solib.rs: SharedLib, LibConflict, ConflictResolution structs
(planned upgrade conflict UI), get_soname(), check_upgrade_conflicts(),
format_conflict_report(), collect_provided_sonames(), soname_base()
(entire conflict detection chain — will be wired into dpack upgrade)
- resolver/mod.rs: definition_path field (populated but read in future)
- sandbox/mod.rs: add_ro_bind() (planned dep mounting), staging_dir(),
build_dir() (accessor methods for post-build inspection)
- db/mod.rs: is_installed() (used by tests, future install guard),
who_owns() (planned dpack owns <file> command)
- build/mod.rs: db(), db_mut() (accessors for advanced orchestration)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dpack fixes:
- Fixed missing SourceInfo fields in CRUX/Gentoo converters (git, branch,
tag, commit, update_check fields added to struct initializers)
- Added 'sign' command: downloads source tarballs and computes real SHA256
checksums, updating .toml definitions in-place. Replaces placeholder
checksums. Usage: dpack sign zlib or dpack sign all
Testing:
- tests/run-tests.sh: comprehensive integration test runner for Arch Linux
host. 7 test suites covering host env, dpack build/tests, package defs,
toolchain scripts, kernel config, init system, and QEMU boot.
Generates JSON + text reports for automated debugging.
Usage: bash tests/run-tests.sh [--quick]
ISO builders:
- src/iso/build-iso-arch.sh: builds live ISO from Arch Linux host
Creates rootfs from pre-built base system or busybox fallback,
includes installer + dpack + package repos, UEFI-only boot
- src/iso/build-iso-darkforge.sh: builds live ISO from running DarkForge
Snapshots the live system via rsync, creates redistributable ISO
Package repository (submodule updated):
- 14 new self-hosting packages: qemu, edk2-ovmf, squashfs-tools,
xorriso, mtools, efibootmgr, efivar, rsync, lz4, nasm,
neovim, htop, tmux, libevent
- Total: 138 packages across 4 repos
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
dpack features:
- Git source support: packages can specify [source].git for cloning
instead of tarball download. Supports branch, tag, and commit pinning.
SHA256 can be set to "SKIP" for git sources.
- check-updates command: queries upstream APIs (GitHub releases/tags)
to find available updates. Packages set [source].update_check URL.
- CheckUpdates CLI subcommand wired into main.rs
Package changes:
- FreeCAD updated to weekly-2026.03.19 development builds
- dwl: added update_check URL and git source documentation
- src/repos extracted to standalone git repo (danny8632/repos.git)
and added as git submodule
Documentation:
- All 7 README.md files updated with detailed requirements sections
including which Linux distros are supported, exact package names
for Arch/Ubuntu/Fedora, and clear notes about which components
require Linux vs can be built on macOS
- dpack README: added git source and check-updates documentation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>