From 97a986e9259e131eeba3b567bc2679588d18cd87 Mon Sep 17 00:00:00 2001 From: NHOrus Date: Thu, 30 Jan 2025 18:06:43 +0400 Subject: [PATCH] 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 Closes: https://github.com/gentoo/gentoo/pull/40332 Signed-off-by: Sam James --- 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(-) create mode 100644 sci-libs/mc/files/mc-1.5-missing-decl.patch rename sci-libs/mc/{mc-1.5.ebuild => mc-1.5-r1.ebuild} (95%) 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 0000000000000..8c4b72af6e7ab --- /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 68c2785c64179..c7f303666e583 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() {