Package Details: ocaml-yojson 1.7.0-5

Git Clone URL: https://aur.archlinux.org/ocaml-yojson.git (read-only, click to copy)
Package Base: ocaml-yojson
Description: Low level JSON binary for OCaml
Upstream URL: https://github.com/ocaml-community/yojson
Keywords: json ocaml
Licenses: BSD
Conflicts: ocaml-yojson
Provides: ocaml-yojson
Submitter: nerflad
Maintainer: condy
Last Packager: condy
Votes: 5
Popularity: 0.008243
First Submitted: 2019-09-06 09:03 (UTC)
Last Updated: 2022-08-14 10:32 (UTC)

Latest Comments

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

Unfortunately ocaml-merlin requires yojson < 2.0.0

See https://github.com/ocaml/opam-repository/commit/63cbf66956bbd16de6ff7ad951d4f06aa64758d4

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)

Updated.

  • 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
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@

 _pkgname=yojson
 pkgname=ocaml-${_pkgname}
-pkgver=1.7.0
-pkgrel=3
+pkgver=2.0.0
+pkgrel=1
 pkgdesc="Low level JSON binary for OCaml"
 arch=('x86_64')
 url="https://github.com/ocaml-community/${_pkgname}"
@@ -12,20 +12,23 @@ license=('BSD')
 options=('!strip' 'staticlibs')
 provides=('ocaml-yojson')
 conflicts=('ocaml-yojson')
-depends=('ocaml-biniou' 'ocaml-easy-format')
+depends=('ocaml-biniou' 'ocaml-easy-format' 'ocaml-seq')
 makedepends=('dune' 'cppo')
 source=(https://github.com/ocaml-community/${_pkgname}/releases/download/${pkgver}/${_pkgname}-${pkgver}.tbz)
-sha256sums=('656fc65f794186274f8b961dc38daba9e2de2fc993829291defbda2186812cc6')
+sha256sums=('ab5d863f7f951a8f7fb4a708399ca2da2cf139a5e0af7818145c20295420cb1a')

 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().
    Aborting...

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().
    Aborting...

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