commit:     c16c4285e4ca3f13f0840350518fcddbc31f4d66
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 08:26:56 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 08:56:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c16c4285

x11-misc/x2x: 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>

 x11-misc/x2x/x2x-1.30-r1.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/x11-misc/x2x/x2x-1.30-r1.ebuild b/x11-misc/x2x/x2x-1.30-r1.ebuild
index 505f19649f03..202c42f4bebf 100644
--- a/x11-misc/x2x/x2x-1.30-r1.ebuild
+++ b/x11-misc/x2x/x2x-1.30-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
 DESCRIPTION="A utility to connect the mouse and keyboard to another X"
 HOMEPAGE="https://github.com/dottedmag/x2x";
@@ -31,7 +31,10 @@ DOCS=( README AUTHORS INSTALL ChangeLog ChangeLog.old )
 
 src_prepare() {
        default
+
        eautoreconf
+
+       append-cflags -std=gnu89 # old codebase, incompatible with c2x
 }
 
 src_compile() {

Reply via email to