Package Details: ocaml-yojson 2.1.2-1

Git Clone URL: (read-only, click to copy)
Package Base: ocaml-yojson
Description: Low level JSON binary for OCaml
Upstream URL:
Keywords: json ocaml
Licenses: BSD
Conflicts: ocaml-yojson
Provides: ocaml-yojson
Submitter: nerflad
Maintainer: condy
Last Packager: condy
Votes: 4
Popularity: 0.000000
First Submitted: 2019-09-06 09:03 (UTC)
Last Updated: 2024-04-02 16:00 (UTC)

Latest Comments

condy commented on 2022-06-17 12:50 (UTC)

Unfortunately ocaml-merlin requires yojson < 2.0.0


So I have to revert the last commit.

condy commented on 2022-06-17 12:09 (UTC) (edited on 2022-06-17 12:12 (UTC) by condy)


  • Since we're not using ocaml 4.07, installing ocaml-seq is not required.
  • 2.0.0 doesn't depend on biniou and easy-format anymore.

Score_Under commented on 2022-06-16 11:10 (UTC)

This builds for me & ydump test tool runs:

diff --git a/PKGBUILD b/PKGBUILD
index e539cb6..8b33cd9 100644
@@ -3,8 +3,8 @@

 pkgdesc="Low level JSON binary for OCaml"
@@ -12,20 +12,23 @@ license=('BSD')
 options=('!strip' 'staticlibs')
-depends=('ocaml-biniou' 'ocaml-easy-format')
+depends=('ocaml-biniou' 'ocaml-easy-format' 'ocaml-seq')
 makedepends=('dune' 'cppo')

 build() {
     cd ${_pkgname}-${pkgver}
+    rm -rf bench yojson-bench.opam  # Benchmark tests introduce extra buildtime dependencies
     make all

 package() {
     cd ${_pkgname}-${pkgver}

-    DESTDIR="${pkgdir}" dune install --prefix=/usr --libdir="lib/ocaml"
+    DESTDIR="${pkgdir}" dune install --prefix=/usr --libdir="/usr/lib/ocaml"

     # remove rogue dune-package file
     rm -r "${pkgdir}"/usr/doc

MarsSeed commented on 2022-06-14 16:40 (UTC) (edited on 2022-06-14 16:40 (UTC) by MarsSeed)

Also there's a brand new 2.0.0 version from two weeks ago. Maybe that would build more successfully?

MarsSeed commented on 2022-06-14 16:38 (UTC)

The build fails for me for a different reason than what was reported by others in the past:

==> Making package: ocaml-yojson 1.7.0-3 (2022-06-14, 18:36:14 CEST)
==> Starting package()...
dune install: option `--libdir': the path must be absolute to avoid ambiguity
Usage: dune install [OPTION]... [PACKAGE]...
Try `dune install --help' or `dune --help' for more information.
==> ERROR: A failure occurred in package().

matejdro commented on 2020-03-28 20:07 (UTC)

I managed to fix error below by:

  1. Updating ocaml-easy-format separately. Now I was getting ocaml-biniou errors
  2. Even though ocaml-biniou was already at the latest version, I rebuilt it
  3. Build of ocaml-yoson went through

matejdro commented on 2020-03-28 20:01 (UTC)

Build fails with

Building ocaml-yojson...
==> Making package: ocaml-yojson 1.7.0-2 (sob 28 mar 2020 20:59:51)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found yojson-1.7.0.tbz
==> Validating source files with sha256sums...
    yojson-1.7.0.tbz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting yojson-1.7.0.tbz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
File "_none_", line 1:
Error: Files /usr/lib/ocaml/easy-format/easy_format.cmxa
       and /usr/lib/ocaml/stdlib.cmxa
       make inconsistent assumptions over implementation Stdlib__string
make: *** [Makefile:3: all] Error 1
==> ERROR: A failure occurred in build().

quattro commented on 2020-02-22 11:02 (UTC)

reinstalling packages ocaml-biniou and ocaml-easy-format solved problem...

quattro commented on 2020-02-22 10:53 (UTC)

some error on build packet ocaml-yojson:

Error: Files /usr/lib/ocaml/biniou/biniou.cmxa and /usr/lib/ocaml/easy-format/easy_format.cmxa make inconsistent assumptions over implementation Easy_format make: *** [Makefile:3: all] Ошибка 1