From bc47dd503efa064a83eca86de063b3da24582dc0 Mon Sep 17 00:00:00 2001 From: extrowerk <5569059+extrowerk@users.noreply.github.com> Date: Sat, 31 Oct 2020 16:29:52 +0100 Subject: [PATCH] RHash: revbump (#5377) --- app-crypt/rhash/patches/rhash-1.4.0.patchset | 22 ++++++++++++++++++++ app-crypt/rhash/rhash-1.4.0.recipe | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 app-crypt/rhash/patches/rhash-1.4.0.patchset diff --git a/app-crypt/rhash/patches/rhash-1.4.0.patchset b/app-crypt/rhash/patches/rhash-1.4.0.patchset new file mode 100644 index 000000000..95e8e07de --- /dev/null +++ b/app-crypt/rhash/patches/rhash-1.4.0.patchset @@ -0,0 +1,22 @@ +From 2db8b9e337e073f52c762f12373632044fefe340 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20Mizsei?= +Date: Sat, 31 Oct 2020 12:41:12 +0100 +Subject: Haiku have no alligned_alloc + + +diff --git a/librhash/util.h b/librhash/util.h +index 6accc7b..0a4db35 100644 +--- a/librhash/util.h ++++ b/librhash/util.h +@@ -39,7 +39,7 @@ extern "C" { + # define rhash_aligned_alloc(alignment, size) _aligned_malloc((size), (alignment)) + # define rhash_aligned_free(ptr) _aligned_free(ptr) + +-#elif (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) && !defined(__APPLE__) ++#elif (__STDC_VERSION__ >= 201112L || defined(_ISOC11_SOURCE)) && !defined(__APPLE__) && !defined(__HAIKU__) + + # define HAS_STDC_ALIGNED_ALLOC + # include +-- +2.28.0 + diff --git a/app-crypt/rhash/rhash-1.4.0.recipe b/app-crypt/rhash/rhash-1.4.0.recipe index b3ff88952..d2329ba47 100644 --- a/app-crypt/rhash/rhash-1.4.0.recipe +++ b/app-crypt/rhash/rhash-1.4.0.recipe @@ -9,10 +9,11 @@ Hash sums are used to ensure and verify integrity of large volumes of data for\ HOMEPAGE="https://github.com/rhash/RHash" COPYRIGHT="2005-2020 Aleksey Kravchenko" LICENSE="MIT" -REVISION="1" +REVISION="2" SOURCE_URI="https://github.com/rhash/RHash/archive/v$portVersion.tar.gz" CHECKSUM_SHA256="2ea39540f5c580da0e655f7b483c19e0d31506aed4202d88e8459fa7aeeb8861" SOURCE_DIR="RHash-$portVersion" +PATCHES="rhash-$portVersion.patchset" ARCHITECTURES="!x86_gcc2 x86 x86_64" SECONDARY_ARCHITECTURES="x86"