Package Details: ocaml-cryptokit 1.19-1

Git Clone URL: (read-only, click to copy)
Package Base: ocaml-cryptokit
Description: Cryptographic primitives for OCaml
Upstream URL:
Licenses: LGPL
Submitter: None
Maintainer: pricechrispy
Last Packager: pricechrispy
Votes: 64
Popularity: 0.000000
First Submitted: 2009-12-31 17:31 (UTC)
Last Updated: 2024-02-26 06:27 (UTC)

Latest Comments

1 2 3 4 5 Next › Last »

cedricroijakkers commented on 2023-03-14 11:23 (UTC)

You can fix the build by changing this line:

     DESTDIR="$pkgdir" dune install --prefix "/usr" --libdir "lib/ocaml" -p cryptokit


    DESTDIR="$pkgdir" dune install --prefix "/usr" --libdir "/usr/lib/ocaml" -p cryptokit

oriba commented on 2023-03-13 13:28 (UTC)

I tried pushing an alternative branch for testing changes/patchfiles, but AUR didn't allowed it. :-(

oriba commented on 2023-01-14 03:56 (UTC)

File "src/dune", line 2, characters 17-23:
2 |  (libraries unix zarith)
Error: Library "zarith" not found.
-> required by library "cryptokit" in _build/default/src
-> required by _build/default/META.cryptokit
-> required by _build/install/default/lib/cryptokit/META
-> required by _build/default/cryptokit.install
-> required by alias install
(cd _build/default/src && config/flags.exe)    
ZLib: ............................... enabled
Hardware support for AES and GCM: ... enabled
==> ERROR: A failure occurred in build().      

oriba commented on 2023-01-14 03:55 (UTC)

I use opem aince a while. I have dune installed via opam, and the script says, it misses dune as dependency - so I installed dune via pacman.

When then running the patched PKGBUILD, I got error messages. Not by makepkg, but by dune, started from makepkg.

"Error: Library "zarith" not found".

This should not pop up that late in the process, but the package "ocaml-zarith" I have installed via pacman, which is, why makepkg does not have problems here. Nevertheless, the package is not detected and the build does not work.

oriba commented on 2023-01-10 00:59 (UTC)

Thanks for the feedback, will try it again soon.

sshaikh commented on 2023-01-09 18:59 (UTC)

Patch works for me too.

bordam commented on 2022-10-30 17:15 (UTC)

@oriba patch works for me

oriba commented on 2022-10-18 13:09 (UTC) (edited on 2022-10-18 13:18 (UTC) by oriba)

@pricechrispy: thanks for the patch. But the patched PKGBUILD does not work either.

"Error: Library "zarith" not found."

pricechrispy commented on 2022-10-16 07:21 (UTC)


Package not installing correctly, please apply the following patch:

diff --git a/PKGBUILD b/PKGBUILD
index 3fdf80c..95fa746 100644
@@ -21,14 +21,17 @@ build() {

     #tar -xzvf release1161.tar.gz
     cd cryptokit-"${_srcname}"
-    ./configure
+#    ./configure
+    export OCAMLPATH="$(ocamlfind printconf destdir)"

     dune build -p cryptokit

 package() {
     cd cryptokit-"${_srcname}"
-    DESTDIR="$pkgdir" dune install --prefix "/usr" --libdir "lib/ocaml" -p cryptokit
-    install -dm755 "${pkgdir}/usr/share"
-    mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share"
+    dune install "cryptokit" --destdir="${pkgdir}" --prefix="/usr" --libdir="$(ocamlfind printconf destdir)"
+    install -dm755 "${pkgdir}/usr/share/"
+    mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"