Package Details: ocaml-cryptokit 1.19-1

Git Clone URL: https://aur.archlinux.org/ocaml-cryptokit.git (read-only, click to copy)
Package Base: ocaml-cryptokit
Description: Cryptographic primitives for OCaml
Upstream URL: http://pauillac.inria.fr/~xleroy/software.html#cryptokit
Licenses: LGPL
Submitter: None
Maintainer: pricechrispy
Last Packager: pricechrispy
Votes: 63
Popularity: 0.000000
First Submitted: 2009-12-31 17:31 (UTC)
Last Updated: 2024-02-26 06:27 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 Next › Last »

mayakandersen commented on 2021-09-18 14:51 (UTC)

I'm getting this error:


ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: der kræves en adgangskode

"der kræves en adgangskode" is a danish text. It rougly translates to "a password is required"

snakeroot commented on 2021-06-26 01:24 (UTC) (edited on 2021-06-26 01:28 (UTC) by snakeroot)

Thanks @souravdas. Unfortunately, that resulted in some weird side effects like neither pacman nor ocaml knowing about the files installed by the PKGBUILD.

I deleted the files manually and was able to get it working by copypasta-ing the commands from the Ocaml packaging guidelines page in the Wiki.

As tweaked, the package() section now reads:

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

souravdas142 commented on 2021-06-16 14:59 (UTC)

@snakeroot below is a workaround, and may be its not a solution, Edit the PKGBUILD and append sudo before dune install

package() {
    cd cryptokit-release1161
    sudo dune install -p cryptokit
}

snakeroot commented on 2021-06-12 15:04 (UTC) (edited on 2021-06-12 15:12 (UTC) by snakeroot)

1.161-1 fails in package() with:

      ==> Starting package()...
        opam (internal)
        [WARNING] Running as root is not recommended
       [ERROR] Opam has not been initialised, please run `opam init'
        Deleting /usr/lib/ocaml/cryptokit/META
      Error: Permission denied  
      Installing /usr/lib/ocaml/cryptokit/META 
      Error: /usr/lib/ocaml/cryptokit/META: Permission denied
      ==> ERROR: A failure occurred in package().
         Aborting...

oriba commented on 2021-01-29 20:14 (UTC)

The package is available via OPAM. Not sure when I would fix this package here.

Maybe someone here is faster than me and might want to create a PKGBUILD from this here: https://github.com/ocaml/opam-repository/blob/master/packages/cryptokit/cryptokit.1.16.1/opam

silence911 commented on 2020-12-02 23:39 (UTC) (edited on 2020-12-02 23:43 (UTC) by silence911)

After rebuilding Zarith, I updated the PKGBUILD file with the following changes

pkgver='1.16' pkgrel=1

source=("https://github.com/xavierleroy/cryptokit/archive/release1161.tar.gz") md5sums=('18591fc3f467bc33681be2cede36b8f1')

releaseshort cd "$srcdir/${srcname}-release1161"

env DESTDIR="$pkgdir" \ OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \ dune build }

package() { releaseshort cd "$srcdir/${srcname}-release1161"

mkdir -p "$pkgdir/$(ocamlfind printconf destdir)"
mkdir -p "$pkgdir/$(ocamlfind printconf destdir)/stublibs"
#cd "$srcdir/${srcname}-${pkgver}"
cd "$srcdir/${srcname}-release1161"
env DESTDIR="$pkgdir" \
    OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)" \
    dune install

}

pricechrispy commented on 2020-12-01 03:35 (UTC) (edited on 2020-12-01 05:55 (UTC) by pricechrispy)

I have filed a bug report to fix this package: https://bugs.archlinux.org/task/68805

dependent package has been fixed, ocaml-cryptokit now builds

quattro commented on 2020-10-23 11:39 (UTC) (edited on 2020-10-23 12:13 (UTC) by quattro)

Package don't install ((

==> Продолжить сборку ocaml-cryptokit ? Да/нет [Y/n] ==> ------------------------------------------------ ==> ==> Сборка и установка пакета ==> Сборка пакета ocaml-cryptokit 1.13-2 (Пт 23 окт 2020 15:01:42) ==> Проверка зависимостей для запуска... ==> Проверка зависимостей для сборки... ==> Получение исходных файлов... -> Загрузка release113.tar.gz... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 133 100 133 0 0 300 0 --:--:-- --:--:-- --:--:-- 300 100 161k 0 161k 0 0 154k 0 --:--:-- 0:00:01 --:--:-- 154k ==> Проверка файлов source с использованием md5sums... release113.tar.gz ... Готово ==> Распаковка исходных файлов... -> Распаковка 'release113.tar.gz' с помощью bsdtar ==> Запускается build()... File "./setup.ml", line 1775, characters 22-40: 1775 | let compare = Pervasives.compare ^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "setup.ml", line 3467, characters 16-34: Alert deprecated: module Stdlib.Pervasives Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims

Configuration: ocamlfind: ...................................................... /usr/bin/ocamlfind ocamlc: ......................................................... /usr/bin/ocamlc.opt ocamlopt: ....................................................... /usr/bin/ocamlopt.opt ocamlbuild: ..................................................... /usr/bin/ocamlbuild Package name: ................................................... cryptokit Package version: ................................................ 1.13 os_type: ........................................................ Unix system: ......................................................... linux architecture: ................................................... amd64 ccomp_type: ..................................................... cc ocaml_version: .................................................. 4.11.1 standard_library_default: ....................................... /usr/lib/ocaml standard_library: ............................................... /usr/lib/ocaml bytecomp_c_compiler: ............................................ gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT native_c_compiler: .............................................. gcc -O2 -fno-strict-aliasing -fwrapv -fPIC -D_FILE_OFFSET_BITS=64 -D_REENTRANT model: .......................................................... default ext_obj: ........................................................ .o ext_asm: ........................................................ .s ext_lib: ........................................................ .a ext_dll: ........................................................ .so default_executable_name: ........................................ a.out systhread_supported: ............................................ true Install architecture-independent files dir: ..................... /usr/local Install architecture-dependent files in dir: .................... $prefix User executables: ............................................... $exec_prefix/bin System admin executables: ....................................... $exec_prefix/sbin Program executables: ............................................ $exec_prefix/libexec Read-only single-machine data: .................................. $prefix/etc Modifiable architecture-independent data: ....................... $prefix/com Modifiable single-machine data: ................................. $prefix/var Object code libraries: .......................................... $exec_prefix/lib Read-only arch-independent data root: ........................... $prefix/share Read-only architecture-independent data: ........................ $datarootdir Info documentation: ............................................. $datarootdir/info Locale-dependent data: .......................................... $datarootdir/locale Man documentation: .............................................. $datarootdir/man Documentation root: ............................................. $datarootdir/doc/$pkg_name HTML documentation: ............................................. $docdir DVI documentation: .............................................. $docdir PDF documentation: .............................................. $docdir PS documentation: ............................................... $docdir findlib_version: ................................................ 1.8.1 is_native: ...................................................... true suffix_program: ................................................. Remove a file.: ................................................. rm -f Remove a directory.: ............................................ rm -rf Turn ocaml debug flag on: ....................................... true Turn ocaml profile flag on: ..................................... false Compiler support generation of .cmxs.: .......................... true OCamlbuild additional flags: .................................... Enable ZLib: .................................................... true Enable hardware support for AES and GCM (needs GCC or Clang): ... true Build and run benchmark: ........................................ false Create documentations: .......................................... true Compile tests executable and library and run them: .............. false ocamldoc: ....................................................... /usr/bin/ocamldoc pkg_unix: ....................................................... /usr/lib/ocaml pkg_zarith: ..................................................... /usr/lib/ocaml/zarith

ocaml setup.ml -build File "./setup.ml", line 1775, characters 22-40: 1775 | let compare = Pervasives.compare ^^^^^^^^^^^^^^^^^^ Alert deprecated: module Stdlib.Pervasives Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims File "setup.ml", line 3467, characters 16-34: Alert deprecated: module Stdlib.Pervasives Use Stdlib instead.

If you need to stay compatible with OCaml < 4.07, you can use the stdlib-shims library: https://github.com/ocaml/stdlib-shims + /usr/bin/ocamlopt.opt unix.cmxa -I /usr/lib/ocaml/ocamlbuild /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa myocamlbuild.ml /usr/lib/ocaml/ocamlbuild/ocamlbuild.cmx -o myocamlbuild File "myocamlbuild.ml", line 1: Error: Files /usr/lib/ocaml/ocamlbuild/ocamlbuildlib.cmxa and /usr/lib/ocaml/stdlib.cmxa make inconsistent assumptions over implementation Stdlib__sys Command exited with code 2. Compilation unsuccessful after building 1 target (0 cached) in 00:00:00. E: Failure("Command ''/usr/bin/ocamlbuild' src/libcryptokit_stubs.a src/dllcryptokit_stubs.so src/cryptokit.cma src/cryptokit.cmxa src/cryptokit.a src/cryptokit.cmxs -tag debug' terminated with error code 10") make: *** [Makefile:7: build] Ошибка 1 ==> ОШИБКА: Произошел сбой в build(). Прерывание... ==> ОШИБКА: Makepkg не смог собрать ocaml-cryptokit. ==> Перезапустить сборку ocaml-cryptokit ? да/Нет [y/N] ==> ---------------------------------------------------

Kunda commented on 2018-05-15 16:28 (UTC)

First there is a new dependency ocaml-zarith and ocaml-zarith is failing on install:

Preparing...

Building ocaml-zarith...
Cloning into 'ocaml-zarith'...
remote: Counting objects: 4, done.        
remote: Compressing objects: 100% (4/4), done.        
remote: Total 4 (delta 0), reused 4 (delta 0)        
Unpacking objects: 100% (4/4), done.
==> Making package: ocaml-zarith 1.7-1 (Tue May 15 12:27:40 EDT 2018)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading release-1.7.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   125    0   125    0     0    576      0 --:--:-- --:--:-- --:--:--   573
100 89617  100 89617    0     0   176k      0 --:--:-- --:--:-- --:--:--  176k
==> Validating source files with md5sums...
    release-1.7.tar.gz ... Passed
==> Validating source files with sha256sums...
    release-1.7.tar.gz ... Passed
==> Extracting sources...
  -> Extracting release-1.7.tar.gz with bsdtar
==> Starting build()...
binary ocaml: found in /usr/bin
binary ocamlc: found in /usr/bin
binary ocamldep: found in /usr/bin
binary ocamlmklib: found in /usr/bin
binary ocamldoc: found in /usr/bin
binary ar: found in /usr/bin
binary perl: found in /usr/bin
binary gcc: found in /usr/bin
binary ocamlopt: found in /usr/bin
checking compilation with gcc -O3 -Wall -Wextra -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt: working
include caml/mlvalues.h: found
library dynlink.cmxa: found
binary ocamlfind: found in /usr/bin
OCaml's word size is 64
binary uname: found in /usr/bin
include gmp.h: found
library gmp: found
OCaml extended comparison supported
OCaml new hash functions available

detected configuration:

  native-code:          yes
  dynamic linking:      yes
  asm path:             x86_64
  defines:              -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_ELF -DZ_DOT_LABEL_PREFIX 
  libraries:            -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lgmp
  C options:            -O3 -Wall -Wextra -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt
  asm options           
  installation path:    /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml
  installation method   findlib

configuration successful!
now type "make" to build
then type "make install" or "sudo make install" to install
./z_pp.pl x86_64
Name "main::extra" used only once: possible typo at ./z_pp.pl line 29.
found assembly file caml_z_x86_64.S
  found abs
  found add
  found div
  found divexact
  found logand
  found lognot
  found logor
  found logxor
  found mul
  found neg
  found pred
  found rem
  found shift_left
  found shift_right
  found sub
  found succ
ocamldep -native  z.ml q.ml big_int_Z.ml z.mli q.mli big_int_Z.mli > depend
ocamlc   -c z.mli
ocamlc   -c z.ml
ocamlc   -c q.mli
ocamlc   -c q.ml
ocamlc   -c big_int_Z.mli
ocamlc   -c big_int_Z.ml
ocamlmklib -failsafe -o zarith z.cmo q.cmo big_int_Z.cmo -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lgmp
Unknown option -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
gcc -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_ELF -DZ_DOT_LABEL_PREFIX   -D_FORTIFY_SOURCE=2  -c -o caml_z_x86_64.o caml_z_x86_64.S
ocamlc -ccopt "-I/usr/lib/ocaml -D_FORTIFY_SOURCE=2 -DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_ELF -DZ_DOT_LABEL_PREFIX  -O3 -Wall -Wextra -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt" -c caml_z.c
ocamlmklib -failsafe -o zarith caml_z_x86_64.o caml_z.o -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lgmp
Unknown option -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
ocamlopt   -c z.ml
ocamlopt   -c q.ml
ocamlopt   -c big_int_Z.ml
ocamlmklib -failsafe -o zarith z.cmx q.cmx big_int_Z.cmx -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -lgmp
Unknown option -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now
ocamlopt -shared -o zarith.cmxs -I . zarith.cmxa -linkall
==> Entering fakeroot environment...
==> Starting package()...
ocamlfind install -destdir "/tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml" zarith META zarith.h zarith.cma libzarith.a z.mli q.mli big_int_Z.mli z.cmi q.cmi big_int_Z.cmi zarith.a zarith.cmxa z.cmx q.cmx big_int_Z.cmx zarith.cmxs -optional dllzarith.so
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/dllzarith.so
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.cmxs
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/big_int_Z.cmx
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/q.cmx
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/z.cmx
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.cmxa
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.a
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/big_int_Z.cmi
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/q.cmi
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/z.cmi
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/big_int_Z.mli
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/q.mli
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/z.mli
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/libzarith.a
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.cma
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/zarith.h
Installed /tmp/pamac-build-beast/ocaml-zarith/pkg/ocaml-zarith/usr/lib/ocaml/zarith/META
==> Tidying install...
  -> Removing libtool files...
  -> Purging unwanted files...
  -> Removing static library files...
  -> Stripping unneeded symbols from binaries and libraries...
  -> Compressing man and info pages...
==> Checking for packaging issue...
==> Creating package "ocaml-zarith"...
  -> Generating .PKGINFO file...
  -> Generating .BUILDINFO file...
  -> Generating .MTREE file...
  -> Compressing package...
==> Leaving fakeroot environment.
==> Finished making: ocaml-zarith 1.7-1 (Tue May 15 12:27:44 EDT 2018)
==> Cleaning up...

Resolving dependencies...
Checking inter-conflicts...
Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...

Failed to commit transaction:
conflicting files:
ocaml-zarith: /usr/lib/ocaml/zarith/META already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/big_int_Z.cmi already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/big_int_Z.cmx already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/big_int_Z.mli already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/dllzarith.so already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/libzarith.a already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/q.cmi already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/q.cmx already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/q.mli already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/z.cmi already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/z.cmx already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/z.mli already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.a already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.cma already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.cmxa already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.cmxs already exists in filesystem
ocaml-zarith: /usr/lib/ocaml/zarith/zarith.h already exists in filesystem

guicolorado commented on 2018-05-14 20:37 (UTC)

Para corrigir o problema, instale a dependência 'ocaml-zarith'.