summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-09-27 21:11:35 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-09-27 22:34:35 -0400
commitb80ea0bacff1001fdc8726473d3ff51664aec389 (patch)
treeb1ae4e7e1790d51f08d7baf4651f12bc8d58f83f /net-misc/hashcash
parentnet-misc/hashcash: EAPI7->8, respect AR (diff)
downloadgentoo-b80ea0bacff1001fdc8726473d3ff51664aec389.tar.gz
gentoo-b80ea0bacff1001fdc8726473d3ff51664aec389.tar.bz2
gentoo-b80ea0bacff1001fdc8726473d3ff51664aec389.zip
net-misc/hashcash: fix build with clang16
Closes: https://bugs.gentoo.org/870466 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'net-misc/hashcash')
-rw-r--r--net-misc/hashcash/files/hashcash-1.22-clang16.patch11
-rw-r--r--net-misc/hashcash/hashcash-1.22-r2.ebuild4
2 files changed, 15 insertions, 0 deletions
diff --git a/net-misc/hashcash/files/hashcash-1.22-clang16.patch b/net-misc/hashcash/files/hashcash-1.22-clang16.patch
new file mode 100644
index 000000000000..1ec15b110555
--- /dev/null
+++ b/net-misc/hashcash/files/hashcash-1.22-clang16.patch
@@ -0,0 +1,11 @@
+https://bugs.gentoo.org/870466
+--- a/sha1.h
++++ b/sha1.h
+@@ -59,4 +59,7 @@
+ void SHA1_Init_With_IV( SHA1_ctx*, const byte[ SHA1_DIGEST_BYTES ] );
+
++void SHA1_Transform( word32 H[ SHA1_DIGEST_WORDS ],
++ const byte M[ SHA1_INPUT_BYTES ] );
++
+ #endif
+
diff --git a/net-misc/hashcash/hashcash-1.22-r2.ebuild b/net-misc/hashcash/hashcash-1.22-r2.ebuild
index 68a606092d65..c52b23016a1b 100644
--- a/net-misc/hashcash/hashcash-1.22-r2.ebuild
+++ b/net-misc/hashcash/hashcash-1.22-r2.ebuild
@@ -13,6 +13,10 @@ LICENSE="CPL-1.0"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
+PATCHES=(
+ "${FILESDIR}"/${P}-clang16.patch
+)
+
src_prepare() {
default