From e8c4c0e5c0b6a5733c39f252d9520b7e2281e61f Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Sun, 13 Mar 2022 20:53:07 -0400 Subject: [PATCH] rdedup: update to 3.2.1. removes the need for patched/backported bindgen --- srcpkgs/rdedup/patches/bindgen-cross.patch | 12 ------------ srcpkgs/rdedup/template | 21 +++++---------------- 2 files changed, 5 insertions(+), 28 deletions(-) delete mode 100644 srcpkgs/rdedup/patches/bindgen-cross.patch diff --git a/srcpkgs/rdedup/patches/bindgen-cross.patch b/srcpkgs/rdedup/patches/bindgen-cross.patch deleted file mode 100644 index 7eab10fd3d5..00000000000 --- a/srcpkgs/rdedup/patches/bindgen-cross.patch +++ /dev/null @@ -1,12 +0,0 @@ -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 - ---- a/Cargo.toml 2019-06-15 13:18:05.509893680 +0200 -+++ b/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'} diff --git a/srcpkgs/rdedup/template b/srcpkgs/rdedup/template index c392e3c0e2f..6bd71cacfc4 100644 --- a/srcpkgs/rdedup/template +++ b/srcpkgs/rdedup/template @@ -1,25 +1,14 @@ # Template file for 'rdedup' pkgname=rdedup -version=3.1.1 -revision=6 -wrksrc=rdedup-rdedup-v${version} +version=3.2.1 +revision=1 build_style=cargo +build_helper=rust hostmakedepends="pkg-config clang" makedepends="openssl-devel liblzma-devel libsodium-devel" short_desc="Data deduplication engine" maintainer="Orphaned " license="MPL-2.0" homepage="https://github.com/dpc/rdedup" -distfiles="https://github.com/dpc/rdedup/archive/rdedup-v${version}.tar.gz" -checksum=5e7c09c40897cd2f2635e8c213c2ff0f5c4d7ceccbd22980cd4cb0a16f3dfc28 - -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.58 - cargo update --package openssl --precise 0.10.22 -} +distfiles="https://github.com/dpc/rdedup/archive/v${version}.tar.gz" +checksum=023b5576f30ebf75c1740dd244ac13b6ef3ad7f6d4a6ab6654e12130201eb923