* [gentoo-commits] repo/gentoo:master commit in: sci-libs/punc/, sci-libs/punc/files/
@ 2025-02-06 9:54 Nowa Ammerlaan
0 siblings, 0 replies; only message in thread
From: Nowa Ammerlaan @ 2025-02-06 9:54 UTC (permalink / raw
To: gentoo-commits
commit: 498034a90cc4ddc8c2b0db4a31680e8f55ae5c94
Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Mon Jan 27 08:41:16 2025 +0000
Commit: Nowa Ammerlaan <nowa <AT> gentoo <DOT> org>
CommitDate: Thu Feb 6 09:54:16 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=498034a9
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 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40330
Signed-off-by: Nowa Ammerlaan <nowa <AT> gentoo.org>
sci-libs/punc/files/punc-1.5-explicit-main.patch | 16 ++++++++++++++++
sci-libs/punc/{punc-1.5.ebuild => punc-1.5-r1.ebuild} | 5 +++--
2 files changed, 19 insertions(+), 2 deletions(-)
diff --git a/sci-libs/punc/files/punc-1.5-explicit-main.patch b/sci-libs/punc/files/punc-1.5-explicit-main.patch
new file mode 100644
index 000000000000..f952d18c3ab1
--- /dev/null
+++ b/sci-libs/punc/files/punc-1.5-explicit-main.patch
@@ -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;
diff --git a/sci-libs/punc/punc-1.5.ebuild b/sci-libs/punc/punc-1.5-r1.ebuild
similarity index 96%
rename from sci-libs/punc/punc-1.5.ebuild
rename to sci-libs/punc/punc-1.5-r1.ebuild
index 0577c9eef733..cec749996b82 100644
--- a/sci-libs/punc/punc-1.5.ebuild
+++ b/sci-libs/punc/punc-1.5-r1.ebuild
@@ -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() {
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-02-06 9:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-06 9:54 [gentoo-commits] repo/gentoo:master commit in: sci-libs/punc/, sci-libs/punc/files/ Nowa Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox