commit:     97a986e9259e131eeba3b567bc2679588d18cd87
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Thu Jan 30 14:06:43 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 09:42:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97a986e9

sci-libs/mc: update EAPI 7 -> 8, port to C99

Missing function declaration. Builds with -std=gnu23 on gcc-14

Closes: https://bugs.gentoo.org/886457
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40332
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sci-libs/mc/files/mc-1.5-missing-decl.patch     | 13 +++++++++++++
 sci-libs/mc/{mc-1.5.ebuild => mc-1.5-r1.ebuild} |  5 +++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/sci-libs/mc/files/mc-1.5-missing-decl.patch 
b/sci-libs/mc/files/mc-1.5-missing-decl.patch
new file mode 100644
index 000000000000..8c4b72af6e7a
--- /dev/null
+++ b/sci-libs/mc/files/mc-1.5-missing-decl.patch
@@ -0,0 +1,13 @@
+Fix missing function declaration, so package could build with modern compilers
+https://bugs.gentoo.org/886457
+--- a/src/aprx/estim.c
++++ b/src/aprx/estim.c
+@@ -41,6 +41,8 @@
+     Bvec *u, Bvec *ud, Bvec *r);
+ VEXTERNC void Aprx_estFaceBump(Aprx *thee, int color,
+     Bvec *u, Bvec *ud, Bvec *r);
++VPUBLIC int Aprx_markRefineDorfler (Aprx *thee, double percentToRefine,
++    int color);
+ 
+ /*
+  * ***************************************************************************

diff --git a/sci-libs/mc/mc-1.5.ebuild b/sci-libs/mc/mc-1.5-r1.ebuild
similarity index 95%
rename from sci-libs/mc/mc-1.5.ebuild
rename to sci-libs/mc/mc-1.5-r1.ebuild
index 68c2785c6417..c7f303666e58 100644
--- a/sci-libs/mc/mc-1.5.ebuild
+++ b/sci-libs/mc/mc-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
 
@@ -38,6 +38,7 @@ PATCHES=(
        "${FILESDIR}"/1.4-multilib.patch
        "${FILESDIR}"/1.4-doc.patch
        "${FILESDIR}"/${P}-unbundle.patch
+       "${FILESDIR}"/${P}-missing-decl.patch
 )
 
 src_prepare() {

Reply via email to