sci-libs/punc: update EAPI 7 -> 8, fix build problem

Patching explicit int main

Closes: https://bugs.gentoo.org/886461
Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40330
Signed-off-by: Nowa Ammerlaan <nowa@gentoo.org>
This commit is contained in:
NHOrus 2025-01-27 12:41:16 +04:00 committed by Nowa Ammerlaan
parent 31b5cda114
commit 498034a90c
No known key found for this signature in database
GPG Key ID: A2E2304370447E8E
2 changed files with 19 additions and 2 deletions

View File

@ -0,0 +1,16 @@
Return type of functions must be explicit, C99
https://bugs.gentoo.org/886461
--- a/src/vf2c/main.c
+++ b/src/vf2c/main.c
@@ -110,9 +110,9 @@
#endif
#ifdef KR_headers
-main(argc, argv) int argc; char **argv;
+int main(argc, argv) int argc; char **argv;
#else
-main(int argc, char **argv)
+int main(int argc, char **argv)
#endif
{
xargc = argc;

View File

@ -1,7 +1,7 @@
# Copyright 1999-2024 Gentoo Authors
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
inherit autotools fortran-2 toolchain-funcs
@ -37,6 +37,7 @@ BDEPEND="
PATCHES=(
"${FILESDIR}"/${PV}-linking.patch
"${FILESDIR}"/1.4-doc.patch
"${FILESDIR}"/${P}-explicit-main.patch
)
src_prepare() {