commit f55dc92300557a79b09e10778ef290c9eeeee416
Author: Jakub Bogusz <[email protected]>
Date:   Sat Sep 18 20:42:42 2021 +0200

    - added string patch (fix deprecation causing build failure); release 4

 ocaml-data-notation-string.patch | 17 +++++++++++++++++
 ocaml-data-notation.spec         | 10 ++++++----
 2 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/ocaml-data-notation.spec b/ocaml-data-notation.spec
index 9688cd8..8b5b6f2 100644
--- a/ocaml-data-notation.spec
+++ b/ocaml-data-notation.spec
@@ -1,8 +1,8 @@
 #
 # Conditional build:
-%bcond_without ocaml_opt       # skip building native optimized binaries 
(bytecode is always built)
+%bcond_without ocaml_opt       # native optimized binaries (bytecode is always 
built)
 
-%ifnarch %{ix86} %{x8664} arm aarch64 ppc sparc sparcv9
+%ifnarch %{ix86} %{x8664} %{arm} aarch64 ppc sparc sparcv9
 %undefine      with_ocaml_opt
 %endif
 
@@ -10,13 +10,14 @@ Summary:    OCaml module to store data using OCaml notation
 Summary(pl.UTF-8):     ModuĊ‚ OCamla do przechowywania danych w notacji OCamla
 Name:          ocaml-data-notation
 Version:       0.0.11
-Release:       3
+Release:       4
 License:       LGPL v2.1+ with OCaml static compilation exception
 Group:         Libraries
 Source0:       
https://forge.ocamlcore.org/frs/download.php/1310/%{name}-%{version}.tar.gz
 # Source0-md5: 0ab9cd196b4a7f22a037ab96a477896f
+Patch0:                %{name}-string.patch
 URL:           https://forge.ocamlcore.org/projects/odn/
-BuildRequires: ocaml >= 3.10.2
+BuildRequires: ocaml >= 1:3.10.2
 BuildRequires: ocaml-camlp4
 BuildRequires: ocaml-type_conv-devel >= 108.07.01
 %requires_eq   ocaml-runtime
@@ -53,6 +54,7 @@ biblioteki odn.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 ocaml setup.ml -configure \
diff --git a/ocaml-data-notation-string.patch b/ocaml-data-notation-string.patch
new file mode 100644
index 0000000..22fbd70
--- /dev/null
+++ b/ocaml-data-notation-string.patch
@@ -0,0 +1,17 @@
+--- ocaml-data-notation-0.0.11/setup.ml.orig   2013-11-22 01:34:28.000000000 
+0100
++++ ocaml-data-notation-0.0.11/setup.ml        2021-09-18 20:33:00.818590112 
+0200
+@@ -227,11 +227,9 @@ module OASISString = struct
+       raise Not_found
+ 
+   let replace_chars f s =
+-    let buf = String.make (String.length s) 'X' in
+-      for i = 0 to String.length s - 1 do
+-        buf.[i] <- f s.[i]
+-      done;
+-      buf
++    let buf = Buffer.create (String.length s) in
++    String.iter (fun c -> Buffer.add_char buf (f c)) s;
++    Buffer.contents buf
+ 
+ end
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ocaml-data-notation.git/commitdiff/f55dc92300557a79b09e10778ef290c9eeeee416

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to