commit:     52858718f2e83ab3905c40e1f21b0f0710187235
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 08:24:52 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=52858718

net-dialup/rp-l2tp: 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-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild 
b/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild
index 6c4a2cdd3db7..bba859fe0a26 100644
--- a/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild
+++ b/net-dialup/rp-l2tp/rp-l2tp-0.4-r4.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools toolchain-funcs
+inherit autotools flag-o-matic toolchain-funcs
 
 DESCRIPTION="User-space implementation of L2TP for Linux and other UNIX 
systems"
 HOMEPAGE="https://sourceforge.net/projects/rp-l2tp/";
@@ -26,6 +26,7 @@ src_prepare() {
        eautoreconf #871210
 
        tc-export AR CC
+       append-cflags -std=gnu89 # old codebase, incompatible with c2x
 }
 
 src_install() {

Reply via email to