mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
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:
parent
31b5cda114
commit
498034a90c
16
sci-libs/punc/files/punc-1.5-explicit-main.patch
Normal file
16
sci-libs/punc/files/punc-1.5-explicit-main.patch
Normal 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;
|
||||
@ -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() {
|
||||
Loading…
x
Reference in New Issue
Block a user