Skip to content

v0.8.3

Choose a tag to compare

@github-actions github-actions released this 18 Jan 00:12
· 34 commits to main since this release

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_p20250807 now 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-20250807 instead of broken gcc-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 version

Verification

# This should now work correctly
grpm fetch =sys-devel/gcc-13.4.1_p20250807

Full Changelog: v0.8.2...v0.8.3