sci-mathematics/why3-for-spark: fix for Yojson-3

Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2026-02-20 13:02:13 +01:00
parent 2046b26065
commit 74623283f9
2 changed files with 13 additions and 1 deletions
@@ -0,0 +1,11 @@
--- a/plugins/gnat_json/gnat_ast_to_ptree.ml 2026-02-19 17:43:53.213295946 +0100
+++ b/plugins/gnat_json/gnat_ast_to_ptree.ml 2026-02-19 17:44:30.607845873 +0100
@@ -1389,7 +1389,7 @@
close_out out_channel
let read_channel env path filename c =
- let json = Yojson.Safe.from_channel c in
+ let json = (Yojson.Safe.from_channel c :> Gnat_ast.From_json.t) in
let gnat_file =
let open Gnat_ast in
try From_json.file_from_json json
@@ -25,7 +25,7 @@ RDEPEND="
dev-ml/num:=[ocamlopt?]
dev-ml/re:=[ocamlopt?]
dev-ml/yojson:=
coq? ( <=sci-mathematics/coq-8.18 )
coq? ( <sci-mathematics/coq-8.18 )
emacs? ( app-editors/emacs:* )
gtk? ( dev-ml/lablgtk:=[sourceview] )
html? ( dev-tex/hevea:= )
@@ -52,6 +52,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2021-make.patch #Bug #883167
"${FILESDIR}"/${PN}-2020-bibtex.patch
"${FILESDIR}"/${P}-spark.patch
"${FILESDIR}"/${P}-yojson3.patch
"${FILESDIR}"/${PN}-2021-sighandler.patch
)