commit:     bff06d43a2f62c8e1e88eb2eca4b88cf266cd6e1
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 08:27:44 2022 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 08:56:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bff06d43

x11-misc/xsnap: 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/xsnap/xsnap-1.5.15-r3.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/x11-misc/xsnap/xsnap-1.5.15-r3.ebuild 
b/x11-misc/xsnap/xsnap-1.5.15-r3.ebuild
index 560e1574bb68..c68de841d51c 100644
--- a/x11-misc/xsnap/xsnap-1.5.15-r3.ebuild
+++ b/x11-misc/xsnap/xsnap-1.5.15-r3.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="Program to interactively take a 'snapshot' of a region of the 
screen"
 HOMEPAGE="ftp://ftp.ac-grenoble.fr/ge/Xutils/";
@@ -52,6 +52,8 @@ src_prepare() {
 }
 
 src_configure() {
+       append-cflags -std=gnu89 # old codebase, incompatible with c2x
+
        CC="$(tc-getBUILD_CC)" LD="$(tc-getLD)" \
                IMAKECPP="${IMAKECPP:-${CHOST}-gcc -E}" xmkmf || die
 }

Reply via email to