commit:     802cbf1e920d4653973f8711755871c9bb08f171
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 12 16:47:15 2025 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sat Apr 12 16:47:35 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=802cbf1e

dev-ml/ocamlnet: fix for new gcc

Closes: https://bugs.gentoo.org/948578
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../ocamlnet/files/ocamlnet-4.1.9-int_missing.patch  | 20 ++++++++++++++++++++
 dev-ml/ocamlnet/ocamlnet-4.1.9-r2.ebuild             |  1 +
 2 files changed, 21 insertions(+)

diff --git a/dev-ml/ocamlnet/files/ocamlnet-4.1.9-int_missing.patch 
b/dev-ml/ocamlnet/files/ocamlnet-4.1.9-int_missing.patch
new file mode 100644
index 000000000000..65acbc24aded
--- /dev/null
+++ b/dev-ml/ocamlnet/files/ocamlnet-4.1.9-int_missing.patch
@@ -0,0 +1,20 @@
+--- a/configure        2025-04-12 18:33:58.152657365 +0200
++++ b/configure        2025-04-12 18:34:13.302476934 +0200
+@@ -829,7 +829,7 @@
+     cat <<EOF >tmp/t.c
+ #include "tcl.h"
+ 
+-main () {
++int main () {
+ }
+ EOF
+ 
+@@ -849,7 +849,7 @@
+ #include <stdio.h>
+ #include "tcl.h"
+ 
+-do_something () {
++int do_something () {
+     void (*x)(int);
+     x = Tcl_Exit;
+     exit(0);

diff --git a/dev-ml/ocamlnet/ocamlnet-4.1.9-r2.ebuild 
b/dev-ml/ocamlnet/ocamlnet-4.1.9-r2.ebuild
index 94f8c4880f36..80076c06e44f 100644
--- a/dev-ml/ocamlnet/ocamlnet-4.1.9-r2.ebuild
+++ b/dev-ml/ocamlnet/ocamlnet-4.1.9-r2.ebuild
@@ -39,6 +39,7 @@ PATCHES=(
        "${FILESDIR}"/${P}-unboundLexer.patch
        "${FILESDIR}"/${P}-shuffle.patch
        "${FILESDIR}"/${P}-noWhich.patch
+       "${FILESDIR}"/${P}-int_missing.patch
 )
 
 ocamlnet_use_with() {

Reply via email to