From bc365286ccab0e70759b8878e512a8cd7ae4772b Mon Sep 17 00:00:00 2001 From: Calascibetta Romain Date: Tue, 3 Nov 2020 11:45:51 +0100 Subject: [PATCH 1/3] [new release] digestif (1.0.0) CHANGES: - **breaking changes** Upgrade the library with MirageOS 3.9 (new layout of artifacts) Add tests about compilation of unikernels (execution and link) (mirage/digestif#105, @dinosaure, @hannesm) - Fix `esy` installation (mirage/digestif#104, @dinosaure) - **breaking changes** Better GADT (mirage/digestif#103, @dinosaure) As far as I can tell, nobody really use this part of `digestif`. The idea is to provide a GADT which contains the type of the hash. From third-part libraries point-of-view, it's better to _pattern-match_ with such information instead to use a polymorphic variant (as before). - **breaking changes** key used for HMAC is a constant `string` (mirage/digestif#101, @dinosaure, @hannesm) The key should not follow the same type as the digest value (`string`, `bytes`, `bigstring`). This update restricts the user to user only constant key (as a `string`). --- packages/digestif/digestif.1.0.0/opam | 71 +++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 packages/digestif/digestif.1.0.0/opam diff --git a/packages/digestif/digestif.1.0.0/opam b/packages/digestif/digestif.1.0.0/opam new file mode 100644 index 00000000000..e13aaad0a29 --- /dev/null +++ b/packages/digestif/digestif.1.0.0/opam @@ -0,0 +1,71 @@ +opam-version: "2.0" +maintainer: [ "Eyyüb Sari " + "Romain Calascibetta " ] +authors: [ "Eyyüb Sari " + "Romain Calascibetta " ] +homepage: "https://github.com/mirage/digestif" +bug-reports: "https://github.com/mirage/digestif/issues" +dev-repo: "git+https://github.com/mirage/digestif.git" +doc: "https://mirage.github.io/digestif/" +license: "MIT" +synopsis: "Hashes implementations (SHA*, RIPEMD160, BLAKE2* and MD5)" +description: """ +Digestif is a toolbox to provide hashes implementations in C and OCaml. + +It uses the linking trick and user can decide at the end to use the C implementation or the OCaml implementation. + +We provides implementation of: + * MD5 + * SHA1 + * SHA224 + * SHA256 + * SHA384 + * SHA512 + * BLAKE2B + * BLAKE2S + * RIPEMD160 +""" + +build: [ + [ "dune" "build" "-p" name "-j" jobs ] + [ "./install/install.ml" ] + [ "dune" "runtest" "-p" name "-j" jobs ] {with-test} +] +install: [ + [ "dune" "install" "-p" name ] {with-test} + [ "./test/test_runes.ml" ] {with-test} +] + +depends: [ + "ocaml" {>= "4.03.0"} + "dune" {>= "2.6.0"} + "conf-pkg-config" {build} + "eqaf" + "base-bytes" + "bigarray-compat" + "stdlib-shims" + "fmt" {with-test} + "alcotest" {with-test} + "bos" {with-test} + "astring" {with-test} + "fpath" {with-test} + "rresult" {with-test} + "ocamlfind" {with-test} +] +depopts: [ + "ocaml-freestanding" +] + +conflicts: [ + "mirage-xen" {< "6.0.0"} + "ocaml-freestanding" {< "0.6.0"} +] +x-commit-hash: "f7e043938d9bb6fda9865086074e60929095cd9e" +url { + src: + "https://github.com/mirage/digestif/releases/download/v1.0.0/digestif-v1.0.0.tbz" + checksum: [ + "sha256=29450c1fecb93b3c5c19588f8abcbf4891ddf1f84a1bbd3fb860e96994472884" + "sha512=30f4e2ea85a0aa50dbafb7c52d55b49f5612fbeeaa4ed8bfbd1610848a8f397c4cd1589fe0bd7ab3f165974697151279d56c37bae44c7f29a2d5a514af9d4942" + ] +} From bfa9742aab187741bd0abffae163708c59512b83 Mon Sep 17 00:00:00 2001 From: Calascibetta Romain Date: Tue, 3 Nov 2020 23:42:28 +0100 Subject: [PATCH 2/3] Add constraints on Git.2.* about Digestif --- packages/git/git.2.0.0/opam | 2 +- packages/git/git.2.1.0/opam | 2 +- packages/git/git.2.1.1/opam | 5 ++++- packages/git/git.2.1.2/opam | 2 +- packages/git/git.2.1.3/opam | 2 +- 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/packages/git/git.2.0.0/opam b/packages/git/git.2.0.0/opam index 68c80e76d50..618a19af72f 100644 --- a/packages/git/git.2.0.0/opam +++ b/packages/git/git.2.0.0/opam @@ -30,7 +30,7 @@ depends: [ "lwt" {>= "2.4.7"} "angstrom" {>= "0.9.0" & < "0.14.0"} "fpath" {>= "0.7.0"} - "digestif" {>= "0.7"} + "digestif" {>= "0.7" & < "1.0.0"} "lru" {>= "0.2.0" & < "0.3.0"} "decompress" {>= "0.8.1" & < "0.9.0"} "checkseum" {>= "0.0.3"} diff --git a/packages/git/git.2.1.0/opam b/packages/git/git.2.1.0/opam index 3e778d58502..156ccc8fb17 100644 --- a/packages/git/git.2.1.0/opam +++ b/packages/git/git.2.1.0/opam @@ -30,7 +30,7 @@ depends: [ "lwt" {>= "2.4.7"} "angstrom" {>= "0.9.0" & < "0.14.0"} "fpath" {>= "0.7.0"} - "digestif" {>= "0.7.2"} + "digestif" {>= "0.7.2" & < "1.0.0"} "lru" {>= "0.3.0"} "decompress" {>= "0.9.0" & < "1.0.0"} "checkseum" {>= "0.1.0"} diff --git a/packages/git/git.2.1.1/opam b/packages/git/git.2.1.1/opam index e0d516c4e23..28c732fcba0 100644 --- a/packages/git/git.2.1.1/opam +++ b/packages/git/git.2.1.1/opam @@ -30,7 +30,7 @@ depends: [ "lwt" {>= "2.4.7"} "angstrom" {>= "0.9.0" & < "0.14.0"} "fpath" {>= "0.7.0"} - "digestif" {>= "0.7.2"} + "digestif" {>= "0.7.2" & < "1.0.0"} "lru" {>= "0.3.0"} "decompress" {>= "0.9.0" & < "1.0.0"} "checkseum" {>= "0.0.9"} @@ -51,6 +51,9 @@ depends: [ "tls" {with-test} "mtime" {with-test & >= "1.0.0"} ] +conflicts: [ + "digestif" {>= "1.0.0"} +] url { src: "https://github.com/mirage/ocaml-git/releases/download/2.1.1/git-2.1.1.tbz" diff --git a/packages/git/git.2.1.2/opam b/packages/git/git.2.1.2/opam index be68ca17d34..1adb2659de4 100644 --- a/packages/git/git.2.1.2/opam +++ b/packages/git/git.2.1.2/opam @@ -30,7 +30,7 @@ depends: [ "lwt" {>= "2.4.7"} "angstrom" {>= "0.9.0" & < "0.14.0"} "fpath" {>= "0.7.0"} - "digestif" {>= "0.7.2"} + "digestif" {>= "0.7.2" & < "1.0.0"} "lru" {>= "0.3.0"} "decompress" {>= "0.9.0" & < "1.0.0"} "checkseum" {>= "0.0.9"} diff --git a/packages/git/git.2.1.3/opam b/packages/git/git.2.1.3/opam index 228c066df38..7cdd963ddab 100644 --- a/packages/git/git.2.1.3/opam +++ b/packages/git/git.2.1.3/opam @@ -30,7 +30,7 @@ depends: [ "lwt" {>= "2.4.7"} "angstrom" {>= "0.14.0"} "fpath" {>= "0.7.0"} - "digestif" {>= "0.7.2"} + "digestif" {>= "0.7.2" & < "1.0.0"} "lru" {>= "0.3.0"} "decompress" {>= "0.9.0" & < "1.0.0"} "checkseum" {>= "0.0.9"} From 34c84b1de4481092524fd8a6f3a6ed6cc5368386 Mon Sep 17 00:00:00 2001 From: Kate Date: Thu, 5 Nov 2020 18:33:51 +0000 Subject: [PATCH 3/3] git.2.1.1: Remove duplicated constraint --- packages/git/git.2.1.1/opam | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/git/git.2.1.1/opam b/packages/git/git.2.1.1/opam index 28c732fcba0..fb957a67cf2 100644 --- a/packages/git/git.2.1.1/opam +++ b/packages/git/git.2.1.1/opam @@ -51,9 +51,6 @@ depends: [ "tls" {with-test} "mtime" {with-test & >= "1.0.0"} ] -conflicts: [ - "digestif" {>= "1.0.0"} -] url { src: "https://github.com/mirage/ocaml-git/releases/download/2.1.1/git-2.1.1.tbz"