Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ocaml-ctypes for openSUSE:Factory 
checked in at 2024-02-20 21:13:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ocaml-ctypes (Old)
 and      /work/SRC/openSUSE:Factory/.ocaml-ctypes.new.1706 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ocaml-ctypes"

Tue Feb 20 21:13:52 2024 rev:8 rq:1147593 version:0.22.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ocaml-ctypes/ocaml-ctypes.changes        
2024-01-16 21:39:54.560683924 +0100
+++ /work/SRC/openSUSE:Factory/.ocaml-ctypes.new.1706/ocaml-ctypes.changes      
2024-02-20 21:13:54.540880201 +0100
@@ -1,0 +2,6 @@
+Mon Feb 12 12:12:12 UTC 2024 - oher...@suse.de
+
+- Update to version 0.22.0
+  see included CHANGES.md file for details
+
+-------------------------------------------------------------------

Old:
----
  ocaml-ctypes-0.21.1.tar.xz

New:
----
  ocaml-ctypes-0.22.0.tar.xz

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

Other differences:
------------------
++++++ ocaml-ctypes.spec ++++++
--- /var/tmp/diff_new_pack.lycvJB/_old  2024-02-20 21:13:55.084899942 +0100
+++ /var/tmp/diff_new_pack.lycvJB/_new  2024-02-20 21:13:55.088900087 +0100
@@ -32,7 +32,7 @@
 
 %define     pkg ocaml-ctypes
 Name:           %pkg%nsuffix
-Version:        0.21.1
+Version:        0.22.0
 Release:        0
 %{?ocaml_preserve_bytecode}
 Summary:        Combinators for binding to C libraries without writing any C

++++++ _service ++++++
--- /var/tmp/diff_new_pack.lycvJB/_old  2024-02-20 21:13:55.128901539 +0100
+++ /var/tmp/diff_new_pack.lycvJB/_new  2024-02-20 21:13:55.132901684 +0100
@@ -1,7 +1,7 @@
 <services>
   <service name="tar_scm" mode="disabled">
     <param name="filename">ocaml-ctypes</param>
-    <param name="revision">3f8211a81bcce2d3785bf7158ee72b7d6a107afe</param>
+    <param name="revision">0385d0180b20e97d11c34450b9643c23919c45cc</param>
     <param name="scm">git</param>
     <param name="submodules">disable</param>
     <param name="url">https://github.com/yallop/ocaml-ctypes.git</param>

++++++ ocaml-ctypes-0.21.1.tar.xz -> ocaml-ctypes-0.22.0.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ocaml-ctypes-0.21.1/.github/workflows/test.yml 
new/ocaml-ctypes-0.22.0/.github/workflows/test.yml
--- old/ocaml-ctypes-0.21.1/.github/workflows/test.yml  2023-07-20 
22:00:22.000000000 +0200
+++ new/ocaml-ctypes-0.22.0/.github/workflows/test.yml  2024-02-10 
20:59:56.000000000 +0100
@@ -39,6 +39,8 @@
             ocaml-compiler: 4.14.0
           - os: ubuntu-latest
             ocaml-compiler: 5.0.0
+          - os: ubuntu-latest
+            ocaml-compiler: 5.1.0
           - os: windows-latest
             ocaml-compiler: 4.13.1
           - os: macos-latest
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ocaml-ctypes-0.21.1/CHANGES.md 
new/ocaml-ctypes-0.22.0/CHANGES.md
--- old/ocaml-ctypes-0.21.1/CHANGES.md  2023-07-20 22:00:22.000000000 +0200
+++ new/ocaml-ctypes-0.22.0/CHANGES.md  2024-02-10 20:59:56.000000000 +0100
@@ -1,3 +1,11 @@
+## ctypes 0.22.0
+
+* Support for OCaml 5.2.0  
+  https://github.com/ocamllabs/ocaml-ctypes/pull/764
+
+Thanks to Nick Roberts (@ncik-roberts) and Danny Willems
+(@dannywillems) for contributions to this release.
+
 ## ctypes 0.21.1
 
 * Add missing version information to dune-project
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ocaml-ctypes-0.21.1/dune-project 
new/ocaml-ctypes-0.22.0/dune-project
--- old/ocaml-ctypes-0.21.1/dune-project        2023-07-20 22:00:22.000000000 
+0200
+++ new/ocaml-ctypes-0.22.0/dune-project        2024-02-10 20:59:56.000000000 
+0100
@@ -1,6 +1,6 @@
 (lang dune 2.9)
 (name ctypes)
-(version 0.21.1)
+(version 0.22.0)
 (formatting (enabled_for dune))
 (use_standard_c_and_cxx_flags true)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ocaml-ctypes-0.21.1/ocaml-ctypes.changes 
new/ocaml-ctypes-0.22.0/ocaml-ctypes.changes
--- old/ocaml-ctypes-0.21.1/ocaml-ctypes.changes        2023-07-20 
22:00:22.000000000 +0200
+++ new/ocaml-ctypes-0.22.0/ocaml-ctypes.changes        2024-02-10 
20:59:56.000000000 +0100
@@ -0,0 +1,13 @@
+c55cc13 Fix -Wunused-argument for generated C stubs for bytecode
+66d1bfd Update src/cstubs/cstubs_generate_c.ml
+13f06c2 Merge pull request #729 from 
dannywillems/dannywillems@fix-unused-bytecode-generated-stubs
+05f0435 Clarify the caveats about 'string' in the documentation.
+96e1ac3 Merge pull request #750 from yallop/clarify-string-view-documentation
+8d0276e Arity 2 for fat pointer writes
+22edb2f Merge pull request #760 from 
ncik-roberts/better-syntactic-arity-for-fat-pointer-writes
+c53d811 Add catch-all bigarray kind case to avoid OCaml 5.2.0 compilation error
+eeb811a Add CI configuration for OCaml 5.1.0
+92e53a4 Merge pull request #764 from yallop/unsupported-bigarray-kinds
+943c490 Merge pull request #765 from yallop/5.1.0-ci
+307d509 Update dune-project and CHANGES.md for 0.22.0
+0385d01 (tag: 0.22.0, origin/master, origin/HEAD) Merge pull request #766 from 
yallop/prepare-0.22.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ocaml-ctypes-0.21.1/src/cstubs/cstubs_generate_c.ml 
new/ocaml-ctypes-0.22.0/src/cstubs/cstubs_generate_c.ml
--- old/ocaml-ctypes-0.21.1/src/cstubs/cstubs_generate_c.ml     2023-07-20 
22:00:22.000000000 +0200
+++ new/ocaml-ctypes-0.22.0/src/cstubs/cstubs_generate_c.ml     2024-02-10 
20:59:56.000000000 +0100
@@ -485,7 +485,7 @@
   let byte_stub ~errno ~stub_name fmt fn args =
     begin
       let nargs = List.length args in
-      fprintf fmt "@[value@ %s_byte%d@;@[(value *argv, int 
argc)@]@]@;@[<2>{@\n"
+      fprintf fmt "@[value@ %s_byte%d@;@[(value *argv, int 
argc)@]@]@;@[<2>{@\n(void)(argc);@\n"
         stub_name nargs;
       fprintf fmt "@[<2>return@ @[%s(@[" stub_name;
       ListLabels.iteri args
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/ocaml-ctypes-0.21.1/src/ctypes/ctypes_bigarray_stubs.ml 
new/ocaml-ctypes-0.22.0/src/ctypes/ctypes_bigarray_stubs.ml
--- old/ocaml-ctypes-0.21.1/src/ctypes/ctypes_bigarray_stubs.ml 2023-07-20 
22:00:22.000000000 +0200
+++ new/ocaml-ctypes-0.22.0/src/ctypes/ctypes_bigarray_stubs.ml 2024-02-10 
20:59:56.000000000 +0100
@@ -34,6 +34,7 @@
   | Bigarray_compat.Complex32 -> Kind_complex32
   | Bigarray_compat.Complex64 -> Kind_complex64
   | Bigarray_compat.Char -> Kind_char
+  | _ -> failwith "Unsupported bigarray kind" [@@ocaml.warning "-11"]
 
 external address : 'b -> Ctypes_ptr.voidp
   = "ctypes_bigarray_address"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ocaml-ctypes-0.21.1/src/ctypes/ctypes_memory.ml 
new/ocaml-ctypes-0.22.0/src/ctypes/ctypes_memory.ml
--- old/ocaml-ctypes-0.21.1/src/ctypes/ctypes_memory.ml 2023-07-20 
22:00:22.000000000 +0200
+++ new/ocaml-ctypes-0.22.0/src/ctypes/ctypes_memory.ml 2024-02-10 
20:59:56.000000000 +0100
@@ -120,8 +120,7 @@
 let (-@) p x = p +@ (-x)
 
 let (<-@) : type a. a ptr -> a -> unit
-  = fun (CPointer p) ->
-    fun v -> write (Fat.reftype p) v p
+  = fun (CPointer p) v -> write (Fat.reftype p) v p
 
 let from_voidp = castp
 let to_voidp p = castp Void p
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/ocaml-ctypes-0.21.1/src/ctypes/ctypes_types.mli 
new/ocaml-ctypes-0.22.0/src/ctypes/ctypes_types.mli
--- old/ocaml-ctypes-0.21.1/src/ctypes/ctypes_types.mli 2023-07-20 
22:00:22.000000000 +0200
+++ new/ocaml-ctypes-0.22.0/src/ctypes/ctypes_types.mli 2024-02-10 
20:59:56.000000000 +0100
@@ -193,10 +193,19 @@
       {!string} are copied into immovable C-managed storage before being passed
       to C.
 
-      When the memory is not owned by the C code, -- i.e. when creating or
-      initializing a struct in OCaml before passing it to C -- then the
-      {!string} view isn't a good choice, because there's no way to manage the
-      lifetime of the C copy of the generated OCaml string.
+      The string type representation is suitable for use in function argument
+      types such as the following:
+
+          [string @-> returning int]
+
+      where the lifetime of the C-managed storage does not need to extend 
beyond
+      the duration of the function call.  However, it is not suitable for
+      use in struct or union fields
+
+          [field s "x" string]
+
+      because it does not provide a way to manage the lifetime of the
+      C-managed storage.
   *)
 
   val string_opt : string option typ

Reply via email to