commit:     b80ea0bacff1001fdc8726473d3ff51664aec389
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Wed Sep 28 01:11:35 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Wed Sep 28 02:34:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b80ea0ba

net-misc/hashcash: fix build with clang16

Closes: https://bugs.gentoo.org/870466
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-misc/hashcash/files/hashcash-1.22-clang16.patch | 11 +++++++++++
 net-misc/hashcash/hashcash-1.22-r2.ebuild           |  4 ++++
 2 files changed, 15 insertions(+)

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
 

Reply via email to