Repository navigation
v0.8.3
GRPM 0.8.3 — SRC_URI Evaluation Hotfix
Critical fix for packages with dynamic SRC_URI generation (#50).
Summary
Fixes grpm fetch for packages like gcc that use eclasses to dynamically generate SRC_URI. Previously, version extraction was broken causing incorrect distfile URLs.
What's Fixed
- gcc distfile selection —
grpm fetch =sys-devel/gcc-13.4.1_p20250807now downloads correct files - SRC_URI evaluation — Pure Go evaluation using mvdan.cc/sh interpreter with full eclass support
- ver_cut function — PMS-compliant version extraction (e.g.,
gcc-13-20250807instead of brokengcc-13.4.1_p20250807-20250807) - Eclass caching — Efficient eclass loading with inheritance tracking
Technical Notes
The ver_cut implementation uses indexed variables instead of bash array slicing due to a bug in mvdan.cc/sh where ${arr[@]:start:len} doesn't work correctly in command substitution. This workaround ensures correct version extraction for toolchain.eclass and similar complex eclasses.
Installation
# Download for your platform
wget https://github.com/grpmsoft/grpm/releases/download/v0.8.3/grpm_0.8.3_linux_x86_64.tar.gz
# Extract and install
tar -xzf grpm_0.8.3_linux_x86_64.tar.gz
sudo install -m 0755 grpm /usr/bin/grpm
# Verify
grpm versionVerification
# This should now work correctly
grpm fetch =sys-devel/gcc-13.4.1_p20250807Full Changelog: v0.8.2...v0.8.3