rdedup: fix cross
This commit is contained in:
parent
49eb2f601c
commit
374c80f658
2 changed files with 21 additions and 4 deletions
12
srcpkgs/rdedup/patches/bindgen-cross.patch
Normal file
12
srcpkgs/rdedup/patches/bindgen-cross.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
patch bindgen to use BINDGEN_EXTRA_CLANG_ARGS variable to set sysroot for cross builds
|
||||
https://github.com/jnbr/rust-bindgen/tree/0.37.4-clang_args
|
||||
|
||||
--- Cargo.toml.orig 2019-06-15 13:18:05.509893680 +0200
|
||||
+++ Cargo.toml 2019-06-15 13:19:48.854887006 +0200
|
||||
@@ -53,3 +53,6 @@
|
||||
slog-term = "2"
|
||||
slog-async = "2"
|
||||
url = "1"
|
||||
+
|
||||
+[patch.crates-io]
|
||||
+bindgen = {git = 'https://github.com/jnbr/rust-bindgen', rev = '4afb05213b3e7e0ec928b84ea85d9f2b99477586'}
|
|
@ -1,18 +1,23 @@
|
|||
# Template file for 'rdedup'
|
||||
pkgname=rdedup
|
||||
version=3.1.1
|
||||
revision=2
|
||||
revision=3
|
||||
wrksrc=rdedup-rdedup-v${version}
|
||||
build_style=cargo
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="libressl-devel liblzma-devel libsodium-devel clang"
|
||||
hostmakedepends="pkg-config clang"
|
||||
makedepends="libressl-devel liblzma-devel libsodium-devel"
|
||||
short_desc="Data deduplication engine"
|
||||
maintainer="Renato Aguiar <renato@renag.me>"
|
||||
license="MPL-2.0"
|
||||
homepage="https://github.com/dpc/rdedup"
|
||||
distfiles="https://github.com/dpc/rdedup/archive/rdedup-v${version}.tar.gz"
|
||||
checksum=5e7c09c40897cd2f2635e8c213c2ff0f5c4d7ceccbd22980cd4cb0a16f3dfc28
|
||||
nocross="error: failed to run custom build command for libloading v0.5.0"
|
||||
|
||||
if [ "$CROSS_BUILD" ]; then
|
||||
export HOST_CC="$BUILD_CC"
|
||||
export HOST_CFLAGS="$BUILD_CFLAGS"
|
||||
export BINDGEN_EXTRA_CLANG_ARGS="--sysroot=${XBPS_CROSS_BASE}"
|
||||
fi
|
||||
|
||||
pre_build() {
|
||||
cargo update --package openssl-sys --precise 0.9.46
|
||||
|
|
Loading…
Reference in a new issue