From 52542a3dc10679f38fe297483650129f61e585a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCnzli?= Date: Tue, 4 Nov 2025 00:23:06 +0100 Subject: [PATCH 1/3] Add: bytesrw.0.3.0 --- packages/bytesrw/bytesrw.0.3.0/opam | 116 ++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100644 packages/bytesrw/bytesrw.0.3.0/opam diff --git a/packages/bytesrw/bytesrw.0.3.0/opam b/packages/bytesrw/bytesrw.0.3.0/opam new file mode 100644 index 000000000000..6201b5c86528 --- /dev/null +++ b/packages/bytesrw/bytesrw.0.3.0/opam @@ -0,0 +1,116 @@ +opam-version: "2.0" +synopsis: "Composable byte stream readers and writers for OCaml" +description: """\ +Bytesrw extends the OCaml `Bytes` module with composable, memory +efficient, byte stream readers and writers compatible with effect +based concurrency. + +Except for byte slice life-times, these abstractions intentionally +separate away ressource management and the specifics of reading and +writing bytes. + +Bytesrw distributed under the ISC license. It has no dependencies. + +Optional support for compressed, hashed and encrypted bytes depend, at +your wish, on the C [`zlib`], [`libzstd`], [`blake3`], [`libmd`], +[`xxhash`] and [`mbedtls`] libraries. + +[`blake3`]: https://blake3.io +[`libzstd`]: http://zstd.net +[`libmd`]: https://www.hadrons.org/software/libmd/ +[`xxhash`]: https://xxhash.com/ +[`zlib`]: https://zlib.net +[`mbedtls`]: https://www.trustedfirmware.org/projects/mbed-tls + +Homepage: """ +maintainer: "Daniel Bünzli " +authors: "The bytesrw programmers" +license: "ISC" +tags: [ + "bytes" + "entropy" + "streaming" + "zstd" + "zlib" + "gzip" + "deflate" + "random" + "csprng" + "sha1" + "sha2" + "compression" + "hashing" + "utf" + "xxhash" + "blake3" + "psa" + "tls" + "cryptography" + "sha3" + "org:erratique" +] +homepage: "https://erratique.ch/software/bytesrw" +doc: "https://erratique.ch/software/bytesrw/doc" +bug-reports: "https://github.com/dbuenzli/bytesrw/issues" +depends: [ + "ocaml" {>= "4.14.0"} + "ocamlfind" {build} + "ocamlbuild" {build} + "topkg" {build & >= "1.1.0"} +] +depopts: [ + "conf-mbedtls" + "conf-xxhash" + "conf-zlib" + "conf-zstd" + "conf-libmd" + "conf-libblake3" + "cmdliner" + "b0" +] +conflicts: [ + "conf-zstd" {< "1.3.8"} + "cmdliner" {< "2.0.0"} + "b0" {< "0.0.6"} +] +build: [ + [ + "ocaml" + "pkg/pkg.ml" + "build" + "--dev-pkg" + "%{dev}%" + "--with-cmdliner" + "%{cmdliner:installed}%" + "--with-b0" + "%{b0:installed}%" + "--with-conf-libblake3" + "%{conf-libblake3:installed}%" + "--with-conf-mbedtls" + "%{conf-mbedtls:installed}%" + "--with-conf-libmd" + "%{conf-libmd:installed}%" + "--with-conf-xxhash" + "%{conf-xxhash:installed}%" + "--with-conf-zlib" + "%{conf-zlib:installed}%" + "--with-conf-zstd" + "%{conf-zstd:installed}%" + ] + [ + "cmdliner" + "install" + "tool-support" + "--update-opam-install=%{_:name}%.install" + "_build/test/certown.native:certown" {ocaml:native} + "_build/test/certown.byte:certown" {!ocaml:native} + "_build/cmdliner-install" + ] {cmdliner:installed & b0:installed & conf-mbedtls:installed} +] +dev-repo: "git+https://erratique.ch/repos/bytesrw.git" +url { + src: "https://erratique.ch/software/bytesrw/releases/bytesrw-0.3.0.tbz" + checksum: + "sha512=388858b0db210a62a16f56655746fdfadbc64b22c2abb5ed5a12b2872e4f8c34f045cdb953a5dda9b92f0003c7f9f34d70fa5b5bb19fd32fb6121bbaeb7ceba0" +} +x-maintenance-intent: ["(latest)"] \ No newline at end of file From 1d90ee4af1ee600ee89f0a059cbe363c496c4cc9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCnzli?= Date: Wed, 5 Nov 2025 16:50:37 +0100 Subject: [PATCH 2/3] bytesrw.0.3.0: rule out alpine and constrain topkg >= 1.1.1 --- packages/bytesrw/bytesrw.0.3.0/opam | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/bytesrw/bytesrw.0.3.0/opam b/packages/bytesrw/bytesrw.0.3.0/opam index 6201b5c86528..5f9505f0ad1a 100644 --- a/packages/bytesrw/bytesrw.0.3.0/opam +++ b/packages/bytesrw/bytesrw.0.3.0/opam @@ -56,8 +56,9 @@ depends: [ "ocaml" {>= "4.14.0"} "ocamlfind" {build} "ocamlbuild" {build} - "topkg" {build & >= "1.1.0"} + "topkg" {build & >= "1.1.1"} ] +available: [ os-distribution != "alpine" ] depopts: [ "conf-mbedtls" "conf-xxhash" From 66646dfd5f0b28ef723334311123d524ca6252ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20B=C3=BCnzli?= Date: Wed, 5 Nov 2025 17:32:45 +0100 Subject: [PATCH 3/3] bytesrw.0.3.0: add dependency on conf-pkg-config --- packages/bytesrw/bytesrw.0.3.0/opam | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/bytesrw/bytesrw.0.3.0/opam b/packages/bytesrw/bytesrw.0.3.0/opam index 5f9505f0ad1a..193bba5c7069 100644 --- a/packages/bytesrw/bytesrw.0.3.0/opam +++ b/packages/bytesrw/bytesrw.0.3.0/opam @@ -57,6 +57,7 @@ depends: [ "ocamlfind" {build} "ocamlbuild" {build} "topkg" {build & >= "1.1.1"} + "conf-pkg-config" {build} ] available: [ os-distribution != "alpine" ] depopts: [