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

sys-block/scsiping: 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").

wrt CPPFLAGS, upon closer look it was respected and this
just duplicated it

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

 sys-block/scsiping/scsiping-0.0.1-r2.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-block/scsiping/scsiping-0.0.1-r2.ebuild 
b/sys-block/scsiping/scsiping-0.0.1-r2.ebuild
index d3777024a378..99a85623be4e 100644
--- a/sys-block/scsiping/scsiping-0.0.1-r2.ebuild
+++ b/sys-block/scsiping/scsiping-0.0.1-r2.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit toolchain-funcs
+inherit flag-o-matic toolchain-funcs
 
 DESCRIPTION="SCSIPing pings a host on the SCSI-chain"
 HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage";
@@ -24,7 +24,9 @@ src_prepare() {
 }
 
 src_compile() {
-       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS} ${CPPFLAGS}" 
LDFLAGS="${LDFLAGS}"
+       append-cflags -std=gnu89 # old codebase, incompatible with c2x
+
+       emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
 }
 
 src_install() {

Reply via email to