public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-biology/tree-puzzle/, sci-biology/tree-puzzle/files/
@ 2023-12-02  5:14 Sam James
  0 siblings, 0 replies; only message in thread
From: Sam James @ 2023-12-02  5:14 UTC (permalink / raw
  To: gentoo-commits

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() {


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-02  5:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-02  5:14 [gentoo-commits] repo/gentoo:master commit in: sci-biology/tree-puzzle/, sci-biology/tree-puzzle/files/ Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox