From a2ab027f5b29973cebb4beb29b8b819980e45907 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 22 Dec 2024 01:09:40 +0000 Subject: [PATCH] build: sync with upstream 2024-12-22 https://github.com/void-linux/void-packages/commit/4e10a282 --- common/build-helper/rust.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/common/build-helper/rust.sh b/common/build-helper/rust.sh index df06435..c28065f 100644 --- a/common/build-helper/rust.sh +++ b/common/build-helper/rust.sh @@ -73,3 +73,23 @@ export JEMALLOC_SYS_WITH_LG_PAGE=16 # libgit2-sys export LIBGIT2_NO_VENDOR=1 + +cat > ${XBPS_WRAPPERDIR}/cargo <<'_EOF' +#!/bin/sh +is_auditable() { + while [ "$#" != 0 ]; do + case "$1" in + -*) shift ;; + auditable) return 0 ;; + *) return 1 ;; + esac + done +} + +if ! command -v cargo-auditable >/dev/null || is_auditable "$@"; then + exec /usr/bin/cargo "$@" +fi +exec /usr/bin/cargo auditable "$@" +_EOF + +chmod 755 ${XBPS_WRAPPERDIR}/cargo