public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jerry James <loganjerry@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/ocaml-logs] rawhide: Test with ocaml-b0
Date: Fri, 07 Aug 2026 17:51:34 GMT [thread overview]
Message-ID: <178612509429.1.2223718644417933376.rpms-ocaml-logs-4ab8b56c5c22@fedoraproject.org> (raw)
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
reply other threads:[~2026-08-07 17:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178612509429.1.2223718644417933376.rpms-ocaml-logs-4ab8b56c5c22@fedoraproject.org \
--to=loganjerry@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox