commit:     7b7a0493bc6a756dcfad9e945acbc84222fb0f55
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Dec  2 04:41:31 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Dec  2 04:41:31 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b7a0493

sci-biology/tree-puzzle: fix configure checks for modern c

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../files/tree-puzzle-5.2-configure-c99.patch        | 20 ++++++++++++++++++++
 ...e-puzzle-5.2.ebuild => tree-puzzle-5.2-r1.ebuild} |  1 +
 2 files changed, 21 insertions(+)

diff --git a/sci-biology/tree-puzzle/files/tree-puzzle-5.2-configure-c99.patch 
b/sci-biology/tree-puzzle/files/tree-puzzle-5.2-configure-c99.patch
new file mode 100644
index 000000000000..8c3834136af1
--- /dev/null
+++ b/sci-biology/tree-puzzle/files/tree-puzzle-5.2-configure-c99.patch
@@ -0,0 +1,20 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -33,7 +33,7 @@ int main (int argc, char **argv)
+ {
+ MPI_Init(&argc,&argv);
+ MPI_Finalize();
+-exit(0);
++return 0;
+ }
+ EOF
+ 
+@@ -105,7 +105,7 @@ cat > conftest.c <<EOF
+ int main (int argc, char **argv)
+ {
+ printf ("%s-%s", PACKAGE, VERSION);
+-exit(0);
++return 0;
+ }
+ EOF
+ 

diff --git a/sci-biology/tree-puzzle/tree-puzzle-5.2.ebuild 
b/sci-biology/tree-puzzle/tree-puzzle-5.2-r1.ebuild
similarity index 96%
rename from sci-biology/tree-puzzle/tree-puzzle-5.2.ebuild
rename to sci-biology/tree-puzzle/tree-puzzle-5.2-r1.ebuild
index 61e95bb658d5..d3c7601397da 100644
--- a/sci-biology/tree-puzzle/tree-puzzle-5.2.ebuild
+++ b/sci-biology/tree-puzzle/tree-puzzle-5.2-r1.ebuild
@@ -21,6 +21,7 @@ RDEPEND="${DEPEND}"
 PATCHES=(
        "${FILESDIR}"/${P}-C99-decls.patch
        "${FILESDIR}"/${P}-MPI-3.0.patch
+       "${FILESDIR}"/${P}-configure-c99.patch
 )
 
 src_prepare() {

Reply via email to