You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document tracks modifications made to the upstream void-packages (xbps-src) codebase.
4
+
5
+
## common.sh - Category-aware template resolution
6
+
7
+
**File:**`vup/common/xbps-src/shutils/common.sh`
8
+
9
+
VUP uses a categorized `srcpkgs/` structure:
10
+
```
11
+
srcpkgs/<category>/<pkgname>/template
12
+
```
13
+
14
+
Instead of the flat upstream structure:
15
+
```
16
+
srcpkgs/<pkgname>/template
17
+
```
18
+
19
+
### Changes in `setup_pkg()`:
20
+
21
+
1.**Early Template Resolution**: Moved template path resolution logic to run *before* sourcing environment setup scripts. This ensures `git.sh` has access to the correct path.
22
+
23
+
2.**Category-aware path lookup**: Added logic to search `srcpkgs/*/<pkg>/template` if flat path is missing.
24
+
25
+
3.**Variables Export**:
26
+
-`_srcpkg_dir`: Full path to the package directory.
27
+
-`XBPS_PKG_CATEGORY`: The category name (if found).
28
+
29
+
4.**Updated Variables**: `FILESDIR` and `PATCHESDIR` now use `_srcpkg_dir` instead of hardcoded paths.
30
+
31
+
## git.sh - Use resolved package directory
32
+
33
+
**File:**`vup/common/environment/setup/git.sh`
34
+
35
+
- Updated `SOURCE_DATE_EPOCH` calculation to use `_srcpkg_dir` (if set) to correctly find template files in categorized structure.
36
+
37
+
## xbps-src - Category-aware triggers
38
+
39
+
**File:**`vup/xbps-src`
40
+
41
+
- Updated `XBPS_TRIGGERSDIR` definition to check `srcpkgs/core/xbps-triggers/files` before falling back to flat path, enabling triggers to be found in the categorized structure.
0 commit comments