From 4eb0d941deb1cd3a25a60fc4777fb618ec3a596f Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 7 Jul 2025 23:23:42 +0100 Subject: [PATCH] dev-util/splint: EAPI 8, build w/ -std=gnu17 Closes: https://bugs.gentoo.org/944117 Signed-off-by: Sam James --- ...{splint-3.1.2-r2.ebuild => splint-3.1.2-r3.ebuild} | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) rename dev-util/splint/{splint-3.1.2-r2.ebuild => splint-3.1.2-r3.ebuild} (83%) diff --git a/dev-util/splint/splint-3.1.2-r2.ebuild b/dev-util/splint/splint-3.1.2-r3.ebuild similarity index 83% rename from dev-util/splint/splint-3.1.2-r2.ebuild rename to dev-util/splint/splint-3.1.2-r3.ebuild index fac73c564bec7..e66ac21c44915 100644 --- a/dev-util/splint/splint-3.1.2-r2.ebuild +++ b/dev-util/splint/splint-3.1.2-r3.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit autotools +inherit autotools flag-o-matic DESCRIPTION="Check C programs for vulnerabilities and programming mistakes" HOMEPAGE="https://splint.org/" @@ -13,7 +13,7 @@ LICENSE="GPL-2+" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv sparc x86 ~ppc-macos ~x64-macos" -DEPEND="sys-devel/flex" +BDEPEND="sys-devel/flex" PATCHES=( "${FILESDIR}"/${PN}-3.1.2-musl.patch @@ -33,6 +33,9 @@ src_prepare() { } src_configure() { + # https://github.com/splintchecker/splint/issues/41 (bug #944117) + append-cflags -std=gnu17 + # We do not need bison/yacc at all here # We definitely need libfl BISON=no LEXLIB=-lfl econf