mirror of
https://github.com/xHyroM/void-packages.git
synced 2024-12-22 12:11:06 +01:00
build: sync with upstream 2024-12-22 https://github.com/void-linux/void-packages/commit/4e10a282
This commit is contained in:
parent
a827544dff
commit
a2ab027f5b
1 changed files with 20 additions and 0 deletions
|
@ -73,3 +73,23 @@ export JEMALLOC_SYS_WITH_LG_PAGE=16
|
||||||
|
|
||||||
# libgit2-sys
|
# libgit2-sys
|
||||||
export LIBGIT2_NO_VENDOR=1
|
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
|
||||||
|
|
Loading…
Reference in a new issue