Hello community,

here is the log from the commit of package ocaml-ptmap for openSUSE:Factory 
checked in at 2020-08-24 15:06:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ocaml-ptmap (Old)
 and      /work/SRC/openSUSE:Factory/.ocaml-ptmap.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ocaml-ptmap"

Mon Aug 24 15:06:58 2020 rev:3 rq:828690 version:2.0.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/ocaml-ptmap/ocaml-ptmap.changes  2020-03-09 
15:22:50.296183146 +0100
+++ /work/SRC/openSUSE:Factory/.ocaml-ptmap.new.3399/ocaml-ptmap.changes        
2020-08-24 15:07:30.190522724 +0200
@@ -1,0 +2,5 @@
+Thu Aug 20 20:20:20 UTC 2020 - [email protected]
+
+- Handle OCaml 4.11 with ptmap-ocaml-4.11.patch
+
+-------------------------------------------------------------------

New:
----
  ptmap-ocaml-4.11.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ocaml-ptmap.spec ++++++
--- /var/tmp/diff_new_pack.NQnFkd/_old  2020-08-24 15:07:35.962525537 +0200
+++ /var/tmp/diff_new_pack.NQnFkd/_new  2020-08-24 15:07:35.962525537 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ocaml-ptmap
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,6 +15,7 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 Name:           ocaml-ptmap
 Version:        2.0.4
 Release:        0
@@ -22,11 +23,12 @@
 Summary:        Maps over integers implemented as Patricia trees
 License:        LGPL-2.1-or-later WITH OCaml-linking-exception
 Group:          Development/Languages/OCaml
-URL:            https://github.com/backtracking/ptmap
+URL:            https://opam.ocaml.org/packages/ptmap
 Source0:        %{name}-%{version}.tar.xz
+Patch0:         ptmap-ocaml-4.11.patch
 BuildRequires:  ocaml
 BuildRequires:  ocaml-dune
-BuildRequires:  ocaml-rpm-macros >= 20191101
+BuildRequires:  ocaml-rpm-macros >= 20200514
 BuildRequires:  ocamlfind(oUnit)
 BuildRequires:  ocamlfind(qcheck)
 BuildRequires:  ocamlfind(qtest)
@@ -42,7 +44,6 @@
 Group:          Development/Languages/OCaml
 Requires:       %{name} = %{version}
 
-
 %description    devel
 The %{name}-devel package contains libraries and signature files for
 developing applications that use %{name}.

++++++ ptmap-ocaml-4.11.patch ++++++
https://github.com/backtracking/ptmap/issues/16
--- ptmap-2.0.4.old/ptmap.ml    2018-07-23 08:03:49.000000000 +0100
+++ ptmap-2.0.4.new/ptmap.ml    2020-04-22 16:17:50.755378816 +0100
@@ -188,6 +188,11 @@
   | Leaf (k, v) as t -> if pr k v then t else Empty
   | Branch (p,m,t0,t1) -> branch (p, m, filter pr t0, filter pr t1)
 
+let rec filter_map pr = function
+  | Empty -> Empty
+  | Leaf (k, v) -> (match pr k v with Some v' -> Leaf (k, v') | None -> Empty)
+  | Branch (p,m,t0,t1) -> branch (p, m, filter_map pr t0, filter_map pr t1)
+
 let partition p s =
   let rec part (t,f as acc) = function
     | Empty -> acc

Reply via email to