Package Details: gapi-ocaml 0.4.5-1

Git Clone URL: https://aur.archlinux.org/gapi-ocaml.git (read-only, click to copy)
Package Base: gapi-ocaml
Description: A simple OCaml client for Google Services.
Upstream URL: https://astrada.github.io/gapi-ocaml/
Keywords: api gapi google ocaml
Licenses: MIT
Submitter: whynothugo
Maintainer: pricechrispy
Last Packager: pricechrispy
Votes: 46
Popularity: 0.000000
First Submitted: 2013-07-08 03:56 (UTC)
Last Updated: 2024-02-26 02:52 (UTC)

Pinned Comments

nerflad commented on 2019-09-10 10:13 (UTC)

@caseyjp1 It's not a problem with the build. Read the error message. You have updated ocaml since the last time you compiled this package so you need to recompile all the dependencies. Use "pacman -Qo [.cmi filename]" to find which packages to rebuild. Or if you're brave, pacman -Rsc gapi-ocaml && pacman -Sc and start from scratch.

Latest Comments

1 2 3 4 5 6 .. 9 Next › Last »

3xploiton3 commented on 2024-04-20 12:16 (UTC)

==> ERROR: Could not resolve all dependencies.
 -> error making: ocaml-ppx_let-exit status 8
 -> Failed to install the following packages. Manual intervention is required:
ocaml-ppx_here - exit status 4
gapi-ocaml - exit status 8
ocaml-curl - exit status 8
ocaml-ounit - exit status 8
ocaml-lwt - exit status 8
ocaml-ppx_let - exit status 8

cedricroijakkers commented on 2023-03-30 08:55 (UTC) (edited on 2023-03-30 08:55 (UTC) by cedricroijakkers)

Please fix the dependency, remove: 'ocaml-yojson<2.0.0' and replace it with: 'ocaml-yojson'.

Version 0.4.3 supports yojson 2.0.0 and up, see this closed issue: https://github.com/astrada/gapi-ocaml/issues/43

Also, about ocaml-cryptokit, see my last comment on https://aur.archlinux.org/packages/ocaml-cryptokit. This can also be fixed, but you need to modify the PKGBUILD yourself, since the maintainer is not responding.

<deleted-account> commented on 2023-03-24 21:42 (UTC)

I do : Or if you're brave, pacman -Rsc gapi-ocaml && pacman -Sc and start from scratch.

It don't result.


 -> Error:
    ocaml-yojson<2.0.0 (Need: gapi-ocaml)

Can we do it? I think no.


'ocaml-yojson>=1.6.0'
'ocaml-yojson<2.0.0'

and aur has only ocaml-cryptokit < 1.3

Sorry. I don't know how do it right.

cedricroijakkers commented on 2023-03-15 07:58 (UTC)

If you are experiencing problems with upgrading because of ocaml-yojson which is already version 2.x in the AUR, and this package still requires a version < 2.0, you can upgrade to 0.4.3 which fixes this problem. The following PKGBUILD works just fine:

# Maintainer: Christopher Price <pricechrispy at gmail dot com>
# Contributor: nerflad (nerflad@gmail.com)
pkgname=gapi-ocaml
pkgver=0.4.3
pkgrel=1
pkgdesc='A simple OCaml client for Google Services.'
arch=('x86_64')
url='https://astrada.github.io/gapi-ocaml/'
license=('MIT')
depends=(
'ocaml>=4.02.3'
'ocaml-findlib>=1.2.7'
'ocamlnet>=4.1.4'
'ocaml-curl>=0.5.3'
'ocaml-cryptokit>=1.3.14'
'ocaml-yojson>=2.0.0'
)
makedepends=(
'dune'
'ocaml-ounit'
)
options=('!strip' 'staticlibs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/astrada/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('d8d551fae40494e0042bf25335e04fee57df38f490a0e4e8f6ec189fbfdada0d')

build() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    export OCAMLPATH="$(ocamlfind printconf destdir)"

    dune build -p "$pkgname"

    sed -i '/doc:\s\[/,$d' _build/default/gapi-ocaml.install
}

package() {
    cd "${srcdir}/${pkgname}-${pkgver}"

    dune install "$pkgname" --destdir="${pkgdir}" --prefix="/usr" --libdir="$(ocamlfind printconf destdir)"

    install -dm755 "${pkgdir}/usr/share/"

    #mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}

bordam commented on 2022-09-27 15:44 (UTC)

Working PKGBUILD:

pkgname=gapi-ocaml
pkgver=0.4.2
pkgrel=2
pkgdesc="A simple OCaml client for Google Services."
arch=("x86_64" "i686" "armv7h")
url="https://astrada.github.io/gapi-ocaml/"
license=('MIT')
makedepends=('dune' 'ocaml-ounit>=1.1.0')
depends=(
'ocaml>=4.02.3'
'ocaml-findlib>=1.2.7'
'ocamlnet>=4.1.4'
'ocaml-curl>=0.5.3'
'ocaml-cryptokit>=1.3.14'
'ocaml-yojson>=1.6.0'
'ocaml-xmlm>=1.0.2'
)
source=("$pkgname-$pkgver.tar.gz::https://github.com/astrada/$pkgname/archive/v$pkgver.tar.gz")
options=('!strip' 'staticlibs')
sha256sums=('9c4c6dfa43443675d2ac0a14ec6ff5a105e274dc8bb4cdef657fb5f6e0af5b2a')

build() {
  cd $pkgname-$pkgver
  dune build @install
  sed -i '/doc:\s\[/,$d' _build/default/gapi-ocaml.install
}

package() {
  cd $pkgname-$pkgver
  DESTDIR="${pkgdir}" dune install --prefix "/usr"
  install -dm755 "${pkgdir}/usr/share/"
}

hectorconte commented on 2022-07-23 18:37 (UTC) (edited on 2022-07-23 18:38 (UTC) by hectorconte)

@Glitchyme I changed the ocaml lib ownership but I also had to modify the PKGBUILD package() cause 'dune' kept asking for dir definitions, so I changed it from this:


package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
  install -dm755 "$OCAMLFIND_DESTDIR"

  dune install 
}
To this:


package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  export OCAMLFIND_DESTDIR="$pkgdir/$(ocamlfind printconf destdir)"
  install -dm755 "$OCAMLFIND_DESTDIR"

  dune install --mandir /usr/share/man --docdir=/usr/share/doc --etcdir=/etc --datadir=/usr/data --sbindir=/usr/sbin --bindir=/usr/bin
}

Since I use 'yay' to manage aur packages, it was tricky to modify the PKGBUILD (if anyone knows how I would be grateful), but after all, that worked.

Glitchyme commented on 2022-05-21 21:27 (UTC) (edited on 2022-05-21 21:31 (UTC) by Glitchyme)

@webdawg does installing through opam work in the meantime? opam install gapi-ocaml

If not you can get around it the same way I did (though probably not recommended):

sudo chown -R user:user /usr/lib/ocaml # temporarily own for your user
yay -S gapi-ocaml
sudo chown -R root:root /usr/lib/ocaml # set back to root

webdawg commented on 2022-05-13 14:44 (UTC)

fails to create directories

webdawg commented on 2022-05-13 14:42 (UTC)

Installing /usr/lib/ocaml/gapi-ocaml/META Error: /usr/lib/ocaml/gapi-ocaml/META: Is a directory

Wodger commented on 2021-07-05 23:44 (UTC)

@Galacta_dm Nice one mate - It's been giving me a bit of a headache (and fiddling around updating other packages using AURutils manually as -u would stop on these packages). For anyone using aurutils, while following the instructions outlined by Galacta_dm, ensure you -Syyy and then reinstall the modified cryptokit package via pacman BEFORE trying to install gapi-ocaml etc, else it will present you with "cryptokit library not found" if you try gapi-ocaml install. After this, Aur sync -u worked like a charm for gapi-ocaml. Thanks again Galacta_dm