This document tracks modifications made to the upstream void-packages (xbps-src) codebase.
File: vup/common/xbps-src/shutils/common.sh
VUP uses a categorized srcpkgs/ structure:
srcpkgs/<category>/<pkgname>/template
Instead of the flat upstream structure:
srcpkgs/<pkgname>/template
-
Early Template Resolution: Moved template path resolution logic to run before sourcing environment setup scripts. This ensures
git.shhas access to the correct path. -
Category-aware path lookup: Added logic to search
srcpkgs/*/<pkg>/templateif flat path is missing. -
Variables Export:
_srcpkg_dir: Full path to the package directory.XBPS_PKG_CATEGORY: The category name (if found).
-
Updated Variables:
FILESDIRandPATCHESDIRnow use_srcpkg_dirinstead of hardcoded paths.
File: vup/common/environment/setup/git.sh
- Updated
SOURCE_DATE_EPOCHcalculation to use_srcpkg_dir(if set) to correctly find template files in categorized structure.
File: vup/xbps-src
- Updated
XBPS_TRIGGERSDIRdefinition to checksrcpkgs/core/xbps-triggers/filesbefore falling back to flat path, enabling triggers to be found in the categorized structure.