The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/ocaml-lwt
Search Criteria
Package Details: ocaml-lwt 5.7.0-2
Package Actions
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: | 16 |
Popularity: | 0.000000 |
First Submitted: | 2010-07-22 14:30 (UTC) |
Last Updated: | 2024-06-02 18:06 (UTC) |
Dependencies (9)
- dune
- libev
- ocaml
- ocaml-ocplib-endianAUR
- ocaml-ppxlibAUR
- ocaml-reactAUR
- zstd (zstd-gitAUR, zstd-staticAUR)
- cppoAUR (make)
- ocaml-ppx_letAUR (check)
Required by (16)
- flow (make)
- flow-git (make)
- ocaml-alcotest
- ocaml-csv (make)
- ocaml-curl (make)
- ocaml-inotify
- ocaml-js_of_ocaml
- ocaml-lambda-term
- ocaml-logs_lwt
- ocaml-lwt_domain
- ocaml-lwt_log
- ocaml-markup
- ocaml-mdx (check)
- ocaml-ounit
- ocaml-utop
- zeroinstall-injector
Sources (1)
dpeukert commented on 2020-04-09 22:09 (UTC) (edited on 2020-09-26 18:11 (UTC) by dpeukert)
dpeukert commented on 2020-04-09 22:05 (UTC) (edited on 2020-04-09 22:06 (UTC) by dpeukert)
@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"
}
pha-qu commented on 2020-04-08 17:28 (UTC)
Hi, Build bunked by a dependency test failure: Testing library 'unix'... .................................SSSSSS............................................................................................................................................................F................... Test 'mcast-join-loop' in suite 'unix_mcast' produced 'false' ==> ERROR: A failure occurred in check(). Aborting...
When building ocaml-utop the process halts with an error that appears to be caused by post-build testing in this package i.e. this package isn't functioning/building correctly. I'm using an up to date Ocaml toplevel from the community repos: The OCaml toplevel, version 4.09.1
All other dependencies are sourced by the ocaml-utop package build script, I've posted there too, just in case the fault is there's. Thnx
ogghi commented on 2020-03-23 19:00 (UTC)
@dpeukert thanks, that helped :) I love this OS and the kind people maintaining it and helping out!
dpeukert commented on 2020-03-22 11:26 (UTC) (edited on 2020-03-22 11:27 (UTC) by dpeukert)
@ogghi This is likely caused by an update of ocaml causing the code compiled with the previus version to no longer be compatible with the newly compiled code. I've bumped the pkgrel of all my affected packages, but you'll have to rebuild any other ocaml packages (ocaml-react in this case) manually.
ogghi commented on 2020-03-22 10:58 (UTC)
Ain't working here:
File "none", line 1: Error: Files /usr/lib/ocaml/react/react.cmxa and /usr/lib/ocaml/stdlib.cmxa make inconsistent assumptions over implementation Stdlib__weak
kureta commented on 2020-03-21 12:38 (UTC)
It is fixed now. I guess I was too hasty with the update. Thanks!
kureta commented on 2020-03-21 11:50 (UTC) (edited on 2020-03-21 11:50 (UTC) by kureta)
Build fails with this error:
File ".ppx/788f1000e783f5c1c765995f909d851d/_ppx.ml", line 1:
Error: Files /usr/lib/ocaml/ppx_tools_versioned/metaquot_410/ppx_tools_versioned_metaquot_410.cmxa
and /usr/lib/ocaml/ocaml-migrate-parsetree/migrate_parsetree.cmxa
make inconsistent assumptions over interface Migrate_parsetree__Migrate_parsetree_driver
J5lx commented on 2018-02-05 13:33 (UTC)
Please note that it’s currently (as of 2018-02-05) impossible to update this package as the new version depends on ocaml-migrate-parsetree which can’t be built due to bug FS#57200.
Pinned Comments
dpeukert commented on 2020-04-09 22:09 (UTC) (edited on 2020-09-26 18:11 (UTC) by dpeukert)
The PKGBUILD for this package is hosted here (contributions are welcome!): https://gitlab.com/dpeukert/pkgbuilds/tree/main/ocaml-lwt