commit:     8bf4290f40da2be134d475198d6ed46dee40664f
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 08:25:02 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 08:56:01 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8bf4290f

net-misc/hashcash: pass -std=gnu89

Does not build with `clang -std=c2x`, early workaround for
when this will become a default.

(not actively hunting for these, merely revisiting packages
previously looked at for clang16 even if not an issue "yet").

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 net-misc/hashcash/hashcash-1.22-r2.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-misc/hashcash/hashcash-1.22-r2.ebuild 
b/net-misc/hashcash/hashcash-1.22-r2.ebuild
index c52b23016a1b..55d0da7126d5 100644
--- a/net-misc/hashcash/hashcash-1.22-r2.ebuild
+++ b/net-misc/hashcash/hashcash-1.22-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Utility to generate hashcash tokens"
 HOMEPAGE="http://www.hashcash.org";
@@ -25,6 +25,7 @@ src_prepare() {
 
 src_compile() {
        tc-export AR CC
+       append-cflags -std=gnu89 # old codebase, incompatible with c2x
 
        emake generic
 }

Reply via email to