Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ocaml-sha for openSUSE:Factory checked in at 2021-04-29 01:37:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ocaml-sha (Old) and /work/SRC/openSUSE:Factory/.ocaml-sha.new.12324 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ocaml-sha" Thu Apr 29 01:37:27 2021 rev:6 rq:885616 version:1.14 Changes: -------- --- /work/SRC/openSUSE:Factory/ocaml-sha/ocaml-sha.changes 2021-02-04 20:25:12.970930583 +0100 +++ /work/SRC/openSUSE:Factory/.ocaml-sha.new.12324/ocaml-sha.changes 2021-04-29 01:38:14.242564574 +0200 @@ -1,0 +2,6 @@ +Fri Apr 9 09:09:09 UTC 2021 - [email protected] + +- Update to version 1.14 +- remove ocaml-sha.patch, fixed upstream + +------------------------------------------------------------------- Old: ---- ocaml-sha-1.13.tar.xz ocaml-sha.patch New: ---- ocaml-sha-1.14.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ocaml-sha.spec ++++++ --- /var/tmp/diff_new_pack.rZ9X7T/_old 2021-04-29 01:38:14.674565186 +0200 +++ /var/tmp/diff_new_pack.rZ9X7T/_new 2021-04-29 01:38:14.678565192 +0200 @@ -25,7 +25,7 @@ %define pkg ocaml-sha Name: %{pkg}%{nsuffix} -Version: 1.13 +Version: 1.14 Release: 0 %{?ocaml_preserve_bytecode} Summary: Binding to the SHA cryptographic functions @@ -33,10 +33,10 @@ Group: Development/Languages/OCaml URL: https://opam.ocaml.org/packages/sha Source0: %{pkg}-%{version}.tar.xz -Patch0: ocaml-sha.patch BuildRequires: ocaml BuildRequires: ocaml-dune >= 2.0 -BuildRequires: ocaml-rpm-macros >= 20210121 +BuildRequires: ocamlfind(stdlib-shims) +BuildRequires: ocaml-rpm-macros >= 20210409 %if "%{build_flavor}" == "testsuite" BuildRequires: ocamlfind(oUnit) ++++++ _service ++++++ --- /var/tmp/diff_new_pack.rZ9X7T/_old 2021-04-29 01:38:14.718565248 +0200 +++ /var/tmp/diff_new_pack.rZ9X7T/_new 2021-04-29 01:38:14.718565248 +0200 @@ -1,7 +1,7 @@ <services> <service name="tar_scm" mode="disabled"> <param name="filename">ocaml-sha</param> - <param name="revision">12073dab52b52abc29994a30456c8fded95be8fb</param> + <param name="revision">c86a4c76b23a6bd3ae700ea054dc4b6e4d4feef7</param> <param name="scm">git</param> <param name="submodules">disable</param> <param name="url">https://github.com/djs55/ocaml-sha.git</param> ++++++ ocaml-sha-1.13.tar.xz -> ocaml-sha-1.14.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/CHANGES.md new/ocaml-sha-1.14/CHANGES.md --- old/ocaml-sha-1.13/CHANGES.md 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/CHANGES.md 2021-03-15 09:17:31.000000000 +0100 @@ -1,3 +1,8 @@ +## v1.14 + +- Handle `safe-string` by @olafhering, reviewed by @nojb (#47) +- Remove `--dev` option from `dune` invocation by @arthurteisseire (#48) + ## v1.13 - Update to dune2, fix Windows compilation, make C fns static @nojb (#42) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/Makefile new/ocaml-sha-1.14/Makefile --- old/ocaml-sha-1.13/Makefile 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/Makefile 2021-03-15 09:17:31.000000000 +0100 @@ -1,5 +1,5 @@ all: - dune build --dev @install + dune build @install test: dune runtest diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/dune new/ocaml-sha-1.14/dune --- old/ocaml-sha-1.13/dune 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/dune 2021-03-15 09:17:31.000000000 +0100 @@ -7,6 +7,7 @@ (wrapped false) (modules sha1 sha256 sha512) (flags -warn-error -3) + (libraries stdlib-shims) (foreign_stubs (language c) (flags (:include c_flags.sexp)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/dune-project new/ocaml-sha-1.14/dune-project --- old/ocaml-sha-1.13/dune-project 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/dune-project 2021-03-15 09:17:31.000000000 +0100 @@ -13,12 +13,22 @@ "Florent Monnier" "Forrest L Norvell" "Vincent Bernadoff" - "David Scott") + "David Scott" + "Olaf Hering" + "Arthur Teisseire" + "Nicol??s Ojeda B??r" + "Christopher Zimmermann" + "Thomas Leonard" +) (maintainers [email protected]) (package (name sha) - (depends (dune (>= 2.0)) (ounit :with-test))) + (synopsis "Binding to the SHA cryptographic functions") + (description "This is the binding for SHA interface code in OCaml. Offering the same +interface than the MD5 digest included in the OCaml standard library. +It's currently providing SHA1, SHA256 and SHA512 hash functions.") + (depends (dune (>= 2.0)) (stdlib-shims (>= 0.3.0)) (ounit :with-test))) (generate_opam_files true) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/sha.opam new/ocaml-sha-1.14/sha.opam --- old/ocaml-sha-1.13/sha.opam 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/sha.opam 2021-03-15 09:17:31.000000000 +0100 @@ -1,5 +1,10 @@ # This file is generated by dune, edit dune-project instead opam-version: "2.0" +synopsis: "Binding to the SHA cryptographic functions" +description: """ +This is the binding for SHA interface code in OCaml. Offering the same +interface than the MD5 digest included in the OCaml standard library. +It's currently providing SHA1, SHA256 and SHA512 hash functions.""" maintainer: ["[email protected]"] authors: [ "Vincent Hanquez" @@ -10,12 +15,18 @@ "Forrest L Norvell" "Vincent Bernadoff" "David Scott" + "Olaf Hering" + "Arthur Teisseire" + "Nicol??s Ojeda B??r" + "Christopher Zimmermann" + "Thomas Leonard" ] license: "ISC" homepage: "https://github.com/djs55/ocaml-sha" bug-reports: "https://github.com/djs55/ocaml-sha/issues" depends: [ "dune" {>= "2.0"} + "stdlib-shims" {>= "0.3.0"} "ounit" {with-test} ] build: [ @@ -32,9 +43,4 @@ "@doc" {with-doc} ] ] -synopsis: "Binding to the SHA cryptographic functions" -description: """ -This is the binding for SHA interface code in OCaml. Offering the same -interface than the MD5 digest included in the OCaml standard library. -It's currently providing SHA1, SHA256 and SHA512 hash functions.""" dev-repo: "git+https://github.com/djs55/ocaml-sha.git" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/sha1.ml new/ocaml-sha-1.14/sha1.ml --- old/ocaml-sha-1.13/sha1.ml 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/sha1.ml 2021-03-15 09:17:31.000000000 +0100 @@ -62,7 +62,7 @@ while (!left == -1 || !left > 0) && not !eof do let len = if !left < 0 then blksize else (min !left blksize) in - let readed = Pervasives.input chan buf 0 len in + let readed = Stdlib.input chan buf 0 len in if readed = 0 then eof := true else ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/sha1_stubs.c new/ocaml-sha-1.14/sha1_stubs.c --- old/ocaml-sha-1.13/sha1_stubs.c 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/sha1_stubs.c 2021-03-15 09:17:31.000000000 +0100 @@ -154,7 +154,7 @@ CAMLlocal1(result); result = caml_alloc_string(20); - sha1_to_bin((sha1_digest *) digest, String_val(result)); + sha1_to_bin((sha1_digest *) digest, &Byte(result, 0)); CAMLreturn(result); } @@ -165,7 +165,7 @@ CAMLlocal1(result); result = caml_alloc_string(40); - sha1_to_hex((sha1_digest *) digest, String_val(result)); + sha1_to_hex((sha1_digest *) digest, &Byte(result, 0)); CAMLreturn(result); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/sha256.ml new/ocaml-sha-1.14/sha256.ml --- old/ocaml-sha-1.13/sha256.ml 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/sha256.ml 2021-03-15 09:17:31.000000000 +0100 @@ -66,7 +66,7 @@ while (!left == -1 || !left > 0) && not !eof do let len = if !left < 0 then blksize else (min !left blksize) in - let readed = Pervasives.input chan buf 0 len in + let readed = Stdlib.input chan buf 0 len in if readed = 0 then eof := true else ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/sha256_stubs.c new/ocaml-sha-1.14/sha256_stubs.c --- old/ocaml-sha-1.13/sha256_stubs.c 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/sha256_stubs.c 2021-03-15 09:17:31.000000000 +0100 @@ -152,7 +152,7 @@ CAMLlocal1(result); result = caml_alloc_string(32); - sha256_to_bin((sha256_digest *) digest, String_val(result)); + sha256_to_bin((sha256_digest *) digest, &Byte(result, 0)); CAMLreturn(result); } @@ -163,7 +163,7 @@ CAMLlocal1(result); result = caml_alloc_string(64); - sha256_to_hex((sha256_digest *) digest, String_val(result)); + sha256_to_hex((sha256_digest *) digest, &Byte(result, 0)); CAMLreturn(result); } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/sha512.ml new/ocaml-sha-1.14/sha512.ml --- old/ocaml-sha-1.13/sha512.ml 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/sha512.ml 2021-03-15 09:17:31.000000000 +0100 @@ -66,7 +66,7 @@ while (!left == -1 || !left > 0) && not !eof do let len = if !left < 0 then blksize else (min !left blksize) in - let readed = Pervasives.input chan buf 0 len in + let readed = Stdlib.input chan buf 0 len in if readed = 0 then eof := true else ( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/ocaml-sha-1.13/sha512_stubs.c new/ocaml-sha-1.14/sha512_stubs.c --- old/ocaml-sha-1.13/sha512_stubs.c 2020-03-29 15:18:02.000000000 +0200 +++ new/ocaml-sha-1.14/sha512_stubs.c 2021-03-15 09:17:31.000000000 +0100 @@ -152,7 +152,7 @@ CAMLlocal1(result); result = caml_alloc_string(64); - sha512_to_bin((sha512_digest *) digest, String_val(result)); + sha512_to_bin((sha512_digest *) digest, &Byte(result, 0)); CAMLreturn(result); } @@ -163,7 +163,7 @@ CAMLlocal1(result); result = caml_alloc_string(128); - sha512_to_hex((sha512_digest *) digest, String_val(result)); + sha512_to_hex((sha512_digest *) digest, &Byte(result, 0)); CAMLreturn(result); }
