Package Details: ocaml-lwt 5.3.0-2

Git Clone URL: https://aur.archlinux.org/ocaml-lwt.git (read-only, click to copy)
Package Base: ocaml-lwt
Description: A library for cooperative threads in OCaml
Upstream URL: https://github.com/ocsigen/lwt
Keywords: concurrent coop cooperative event io library ocaml promise promises threads
Licenses: MIT
Submitter: SerP
Maintainer: dpeukert
Last Packager: dpeukert
Votes: 14
Popularity: 0.000000
First Submitted: 2010-07-22 14:30
Last Updated: 2020-05-18 18:23

Pinned Comments

dpeukert commented on 2020-04-09 22:09

The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/master/ocaml-lwt

Latest Comments

1 2 3 4 Next › Last »

crave commented on 2020-05-29 19:44

Unfortunately I'm getting a build error for this package:

Running[103]: (cd _build/default/test/core && ./main.exe)

Output[103]:

Testing library 'core'...

...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................SSSSSSSSSSSSSSSSSSSSSSS................................................................................................................

Ok. 639 tests ran, 23 tests skipped in 0.01 seconds

Output[94]:

Testing library 'ppx'...

................

Ok. 16 tests ran, 0 tests skipped in 1.20 seconds

Output[99]:

Testing library 'react'...

...........

Ok. 11 tests ran, 0 tests skipped in 4.51 seconds

Command [100] exited with code 1:

$ (cd _build/default/test/unix && ./main.exe)

Testing library 'unix'...

.................................SSS...............................................................................................................................................................F...................

Test 'mcast-join-loop' in suite 'unix_mcast' produced 'false'

==> ERROR: A failure occurred in check().

Aborting...

Error making: ocaml-lwt

muddy79 commented on 2020-05-24 16:56

@zxcv I have had the same issue, for me re-installing ocaml-react package solved it.

zxcv commented on 2020-05-02 00:12

@pelopor tried rebuilding cppo - did not make a difference

@dpeukert I pasted log here https://pastebin.com/rT01kNci Should you need more information I will try to provide it.

edit@20200503 after ocaml-ppx_tools_versioned update ocaml-lwt build without error. No idea if it made anything different or just a in between reboot helped.

pelopor commented on 2020-04-28 07:48

@zxcv Rebuilding "cppo" did help for me.

dpeukert commented on 2020-04-27 21:24

@zxcv I wasn't able to reproduce this, can you post the entire build log?

zxcv commented on 2020-04-27 08:12

Build fails after: Running[279]: (cd _build/default && /usr/bin/ocamlopt.opt -w -40 -g -shared -linkall -I src/unix -o src/unix/lwt_unix.cmxs src/unix/lwt_unix.cmxa)

huyizheng commented on 2020-04-19 07:05

It seems that this package cannot build against dune 2.1.3 (currently in community-testing)

pha-qu commented on 2020-04-09 23:25

@dpeukert.. Thanks I'll give it try.

PS I believe pamac also lets you edit PKGBUILD files before building :D

dpeukert commented on 2020-04-09 22:09

The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/master/ocaml-lwt

dpeukert commented on 2020-04-09 22:05

@pha-qu Hey, I tried reproducing the test failure, but I wasn't able to so far. I'll try looking into it some more, but for now, you can change the PKGBUILD to skip that test, which should let you build this package:

diff --git a/PKGBUILD b/PKGBUILD
index d966b2a..3b961e5 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,54 +1,55 @@
 # Maintainer: Daniel Peukert <dan.peukert@gmail.com>
 # Contributor: Jakob Gahde <j5lx@fmail.co.uk>
 # Contributor: Serge Zirukin <ftrvxmtrx@gmail.com>
 # Contributor: Sergei Lebedev <superbobry@gmail.com
 # Contributor: serp <serp256 at gmail dot com>
 _projectname='lwt'
 pkgname="ocaml-$_projectname"
 pkgver='5.2.0'
 pkgrel='2'
 pkgdesc='A library for cooperative threads in OCaml'
 arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64')
 url="https://github.com/ocsigen/lwt"
 license=('MIT')
 depends=('libev' 'ocaml>=4.02.0' 'ocaml-mmap>=1.1.0' 'ocaml-ocplib-endian' 'ocaml-result' 'ocaml-seq' 'ocaml-migrate-parsetree>=1.5.0' 'ocaml-ppx_tools_versioned>=5.3.0' 'ocaml-react>=1.0.0')
 makedepends=('cppo>=1.1.0' 'dune>=1.7.0')
 options=('!strip')
 source=(
    "$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz"
    'no-bisect_ppx.diff'
 )
 sha256sums=('97c12b3da3d0db019dbdb97950b72f6fd1226ded7519c36ebfe2787574a9b132'
             '23de90bf80e7985b5749043c2dddd913bf9a1c3f08fe7a8a86b5e542aa46e279')

 _sourcedirectory="$_projectname-$pkgver"

 prepare() {
    cd "$srcdir/$_sourcedirectory/"
    # This is currently the only way to not have a runtime bisect_ppx dep
    # https://github.com/aantron/bisect_ppx#dune
    # https://github.com/ocaml/dune/issues/57
    patch --forward -p1 < '../no-bisect_ppx.diff'
+   sed -i '/Test_mcast.suite/d' 'test/unix/main.ml'
 }

 build() {
    cd "$srcdir/$_sourcedirectory/"
    LWT_DISCOVER_ARGUMENTS='--use-libev true' dune build -p "$_projectname,${_projectname}_ppx,${_projectname}_react" --verbose
 }

 check() {
    cd "$srcdir/$_sourcedirectory/"
    dune runtest -p "$_projectname,${_projectname}_ppx,${_projectname}_react" --verbose
 }

 package() {
    cd "$srcdir/$_sourcedirectory/"
    DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir 'lib/ocaml'

    install -dm755 "$pkgdir/usr/share/doc/$pkgname"
    mv "$pkgdir/usr/doc/$_projectname/"* "$pkgdir/usr/share/doc/$pkgname/"
    rm -r "$pkgdir/usr/doc/"

    install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
    ln -sf "/usr/share/doc/$pkgname/LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"
 }