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-mtime] rawhide: Test with ocaml-b0
Date: Fri, 07 Aug 2026 17:23:44 GMT	[thread overview]
Message-ID: <178612342443.1.5947518007139114648.rpms-ocaml-mtime-7470be9f8057@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/ocaml-mtime
            Branch : rawhide
            Commit : 7470be9f8057d17e7134a01f7bbee28865bd575f
            Author : Jerry James <loganjerry@gmail.com>
            Date   : 2026-08-07T11:23:14-06:00
            Stats  : +23/-1 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/ocaml-mtime/c/7470be9f8057d17e7134a01f7bbee28865bd575f?branch=rawhide

            Log:
            Test with ocaml-b0

- Remove test dependency on js-of-ocaml

---
diff --git a/ocaml-mtime-js-of-ocaml.patch b/ocaml-mtime-js-of-ocaml.patch
new file mode 100644
index 0000000..28ab532
--- /dev/null
+++ b/ocaml-mtime-js-of-ocaml.patch
@@ -0,0 +1,16 @@
+--- mtime-2.1.0/B0.ml.orig	2024-09-10 07:46:38.000000000 -0600
++++ mtime-2.1.0/B0.ml	2026-08-07 11:17:47.109243611 -0600
+@@ -43,13 +43,6 @@ let min_clock =
+   let requires = [mtime; mtime_clock] in
+   B0_ocaml.test ~/"test/min_clock.ml" ~run:false ~requires ~doc
+ 
+-let min_clock_jsoo =
+-  let doc = "Minimal clock example in JavaScript" in
+-  let srcs = Fpath.[`File (v "test/min_clock.ml") ] in
+-  let meta = B0_meta.(empty |> tag test) in
+-  let requires = [mtime; mtime_clock] in
+-  B0_jsoo.html_page "min-clock-jsoo" ~srcs ~requires ~meta ~doc
+-
+ (* Packs *)
+ 
+ let default =

diff --git a/ocaml-mtime.spec b/ocaml-mtime.spec
index 27f3769..2d9f72d 100644
--- a/ocaml-mtime.spec
+++ b/ocaml-mtime.spec
@@ -10,12 +10,15 @@ License:        ISC
 URL:            https://erratique.ch/software/mtime
 VCS:            git:https://erratique.ch/repos/mtime.git
 Source:         %{url}/releases/mtime-%{version}.tbz
+# Remove js_of_ocaml dependency in the tests, since Fedora does not have it
+Patch:          %{name}-js-of-ocaml.patch
 
 BuildSystem:    topkg
 BuildOption(build): --dev-pkg false
 BuildOption(build): --tests true
 
 BuildRequires:  ocaml >= 4.08.0
+BuildRequires:  ocaml-b0-devel
 BuildRequires:  ocaml-compiler-libs
 BuildRequires:  ocaml-findlib
 BuildRequires:  ocaml-ocamlbuild
@@ -44,11 +47,14 @@ The %{name}-devel package contains libraries and signature files for
 developing applications that use %{name}.
 
 %prep
-%autosetup -n mtime-%{version}
+%autosetup -n mtime-%{version} -p1
 
 # link with the math library
 echo $'\ntrue: cclib(-lm)' >> _tags
 
+%check
+b0 test
+
 %files -f .ofiles
 %doc CHANGES.md README.md
 %license LICENSE.md

                 reply	other threads:[~2026-08-07 17:23 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=178612342443.1.5947518007139114648.rpms-ocaml-mtime-7470be9f8057@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