public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ocaml-logs] rawhide: Test with ocaml-b0
@ 2026-08-07 17:51 Jerry James
  0 siblings, 0 replies; only message in thread
From: Jerry James @ 2026-08-07 17:51 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ocaml-logs
            Branch : rawhide
            Commit : 4ab8b56c5c2293492a5ab354ee6e3bfcf8477883
            Author : Jerry James <loganjerry@gmail.com>
            Date   : 2026-08-07T11:51:13-06:00
            Stats  : +28/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/ocaml-logs/c/4ab8b56c5c2293492a5ab354ee6e3bfcf8477883?branch=rawhide

            Log:
            Test with ocaml-b0

- Remove test dependency on js-of-ocaml

---
diff --git a/ocaml-logs-js-of-ocaml.patch b/ocaml-logs-js-of-ocaml.patch
new file mode 100644
index 0000000..fe1d9e4
--- /dev/null
+++ b/ocaml-logs-js-of-ocaml.patch
@@ -0,0 +1,22 @@
+--- logs-0.10.0/B0.ml.orig	2025-11-04 08:50:35.000000000 -0700
++++ logs-0.10.0/B0.ml	2026-08-07 11:48:17.169075725 -0600
+@@ -20,7 +20,6 @@ let js_of_ocaml_compiler_runtime =
+ 
+ let logs = B0_ocaml.libname "logs"
+ let logs_fmt = B0_ocaml.libname "logs.fmt"
+-let logs_browser = B0_ocaml.libname "logs.browser"
+ let logs_cli = B0_ocaml.libname "logs.cli"
+ let logs_lwt = B0_ocaml.libname "logs.lwt"
+ let logs_threaded = B0_ocaml.libname "logs.threaded"
+@@ -35,11 +34,6 @@ let logs_fmt_lib =
+   let srcs = [`Dir ~/"src/fmt"] in
+   B0_ocaml.lib logs_fmt ~srcs ~requires:[logs; fmt] ~exports:[logs]
+ 
+-let logs_browser_lib =
+-  let srcs = [`Dir ~/"src/browser"] in
+-  let requires = [logs; js_of_ocaml_compiler_runtime] in
+-  B0_ocaml.lib logs_browser ~srcs ~requires ~exports:[logs]
+-
+ let logs_threaded_lib =
+   let srcs = [`Dir ~/"src/threaded"] in
+   B0_ocaml.lib logs_threaded ~srcs ~requires:[logs; threads] ~exports:[logs]

diff --git a/ocaml-logs.spec b/ocaml-logs.spec
index 8f91209..6e5e787 100644
--- a/ocaml-logs.spec
+++ b/ocaml-logs.spec
@@ -11,6 +11,8 @@ License:        ISC
 URL:            https://erratique.ch/software/logs
 VCS:            git:https://erratique.ch/repos/logs.git
 Source:         %{url}/releases/logs-%{version}.tbz
+# Remove js_of_ocaml dependency in the tests, since Fedora does not have it
+Patch:          %{name}-js-of-ocaml.patch
 
 # OCaml packages not built on i686 since OCaml 5 / Fedora 39.
 ExcludeArch:    %{ix86}
@@ -25,6 +27,7 @@ BuildOption(build): --with-lwt true
 BuildOption(build): --with-base-threads true
 
 BuildRequires:  ocaml >= 4.14.0
+BuildRequires:  ocaml-b0-devel
 BuildRequires:  ocaml-cmdliner-devel >= 1.3.0
 BuildRequires:  ocaml-compiler-libs
 BuildRequires:  ocaml-findlib
@@ -60,6 +63,9 @@ developing applications that use %{name}.
 %prep
 %autosetup -n logs-%{version} -p1
 
+%check
+b0 test
+
 %files -f .ofiles
 %doc CHANGES.md README.md
 %license LICENSE.md

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

only message in thread, other threads:[~2026-08-07 17:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-07 17:51 [rpms/ocaml-logs] rawhide: Test with ocaml-b0 Jerry James

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