New comment by tranzystorekk on void-packages repository https://github.com/void-linux/void-packages/pull/49935#issuecomment-2126426320 Comment: I prepared build_style changes that should make package templates not require custom fetch/do_build hacks: ```diff common/build-style/zig-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/build-style/zig-build.sh b/common/build-style/zig-build.sh index 205c4cadf53f8c..e0245e8cd7eb63 100644 --- a/common/build-style/zig-build.sh +++ b/common/build-style/zig-build.sh @@ -30,9 +30,11 @@ do_build() { # prefix used by the zig build system. DESTDIR="zig-out" zig build \ --sysroot "${XBPS_CROSS_BASE}" \ + --search-prefix /usr \ + --global-cache-dir /host/zig \ --libc xbps_zig_libc.txt \ -Dtarget="${zig_target}" -Dcpu="${zig_cpu}" \ - -Drelease-safe --prefix /usr install \ + --release=safe --prefix /usr install \ ${configure_args} } ```