commit:     30b7745ed174255ab0e2fb712927065df9e6f4f4
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 22 07:43:59 2022 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Dec 22 07:45:17 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30b7745e

dev-ml/ocamlnet: add hard dependency in Makefile

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

 dev-ml/ocamlnet/files/ocamlnet-4.1.9-unboundLexer.patch | 10 ++++++++++
 dev-ml/ocamlnet/ocamlnet-4.1.9.ebuild                   |  2 ++
 2 files changed, 12 insertions(+)

diff --git a/dev-ml/ocamlnet/files/ocamlnet-4.1.9-unboundLexer.patch 
b/dev-ml/ocamlnet/files/ocamlnet-4.1.9-unboundLexer.patch
new file mode 100644
index 000000000000..416df217c035
--- /dev/null
+++ b/dev-ml/ocamlnet/files/ocamlnet-4.1.9-unboundLexer.patch
@@ -0,0 +1,10 @@
+--- a/src/rpc-generator/Makefile       2022-12-22 08:32:49.839794123 +0100
++++ b/src/rpc-generator/Makefile       2022-12-22 08:34:48.185817182 +0100
+@@ -31,4 +31,7 @@
+ rpcgen-packlist:
+       echo $(BINDIR)/ocamlrpcgen >rpcgen-packlist
+ 
++main.cmo: lexer.cmo
++lexer.cmo: parser.cmo
++
+ include depend

diff --git a/dev-ml/ocamlnet/ocamlnet-4.1.9.ebuild 
b/dev-ml/ocamlnet/ocamlnet-4.1.9.ebuild
index 5eb163cf9132..6bd4d2437240 100644
--- a/dev-ml/ocamlnet/ocamlnet-4.1.9.ebuild
+++ b/dev-ml/ocamlnet/ocamlnet-4.1.9.ebuild
@@ -35,6 +35,8 @@ RDEPEND="
 "
 DEPEND="${RDEPEND}"
 
+PATCHES=( "${FILESDIR}"/${P}-unboundLexer.patch )
+
 ocamlnet_use_with() {
        if use $1; then
                echo "-with-$2"

Reply via email to