Package Details: ocaml-spawn 0.17.0-1

Git Clone URL: https://aur.archlinux.org/ocaml-spawn.git (read-only, click to copy)
Package Base: ocaml-spawn
Description: A small OCaml library for spawning sub-processes
Upstream URL: https://github.com/janestreet/spawn
Keywords: background command library ocaml process spawn spawning sub suprocess system
Licenses: MIT
Submitter: J5lx
Maintainer: dpeukert
Last Packager: dpeukert
Votes: 0
Popularity: 0.000000
First Submitted: 2018-06-28 19:33 (UTC)
Last Updated: 2024-11-13 22:21 (UTC)

Dependencies (4)

Required by (1)

Sources (1)

Pinned Comments

dpeukert commented on 2023-12-24 09:03 (UTC)

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

Latest Comments

dpeukert commented on 2023-12-24 09:03 (UTC)

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

eclairevoyant commented on 2022-12-03 15:46 (UTC) (edited on 2022-12-03 15:52 (UTC) by eclairevoyant)

This isn't installing to the correct directory when building in a clean chroot:

$ bsdtar tf ocaml-spawn-0.15.1-1-x86_64.pkg.tar.zst

.BUILDINFO
.MTREE
.PKGINFO
spawn/
spawn/META
spawn/dune-package
spawn/libspawn_stubs.a
spawn/opam
spawn/spawn.a
spawn/spawn.cma
spawn/spawn.cmi
spawn/spawn.cmt
spawn/spawn.cmti
spawn/spawn.cmx
spawn/spawn.cmxa
spawn/spawn.cmxs
spawn/spawn.ml
spawn/spawn.mli
stublibs/
stublibs/dllspawn_stubs.so
usr/
usr/share/
usr/share/doc/
usr/share/doc/spawn/
usr/share/doc/spawn/CHANGES.md
usr/share/doc/spawn/LICENSE.md
usr/share/doc/spawn/README.md
usr/share/licenses/
usr/share/licenses/ocaml-spawn/
usr/share/licenses/ocaml-spawn/LICENSE.md

Library files should go in usr/lib/ocaml/spawn not spawn. I suggest replacing the following lines:

  dune install --prefix "${pkgdir}/usr" --libdir "${pkgdir}$(ocamlfind printconf destdir)"
  mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"

with

  DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir '/usr/lib/ocaml' --docdir '/usr/share/doc' --release --verbose

See ocaml-ppx_expect and the OCaml package guidelines for comparison/example. This produces the correct output:

.BUILDINFO
.MTREE
.PKGINFO
usr/
usr/lib/
usr/lib/ocaml/
usr/lib/ocaml/spawn/
usr/lib/ocaml/spawn/META
usr/lib/ocaml/spawn/dune-package
usr/lib/ocaml/spawn/libspawn_stubs.a
usr/lib/ocaml/spawn/opam
usr/lib/ocaml/spawn/spawn.a
usr/lib/ocaml/spawn/spawn.cma
usr/lib/ocaml/spawn/spawn.cmi
usr/lib/ocaml/spawn/spawn.cmt
usr/lib/ocaml/spawn/spawn.cmti
usr/lib/ocaml/spawn/spawn.cmx
usr/lib/ocaml/spawn/spawn.cmxa
usr/lib/ocaml/spawn/spawn.cmxs
usr/lib/ocaml/spawn/spawn.ml
usr/lib/ocaml/spawn/spawn.mli
usr/lib/ocaml/stublibs/
usr/lib/ocaml/stublibs/dllspawn_stubs.so
usr/share/
usr/share/doc/
usr/share/doc/spawn/
usr/share/doc/spawn/CHANGES.md
usr/share/doc/spawn/LICENSE.md
usr/share/doc/spawn/README.md
usr/share/licenses/
usr/share/licenses/ocaml-spawn/
usr/share/licenses/ocaml-spawn/LICENSE.md

ldr709 commented on 2022-09-07 01:28 (UTC)

@gnaggnoyil I've added the dependencies. Thanks for pointing out the issue!

gnaggnoyil commented on 2022-09-06 18:48 (UTC)

I encountered the following error when building this package:

==> Retrieving sources...
  -> Found ocaml-spawn-:0.15.1-1.tar.gz
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
  -> Extracting ocaml-spawn-:0.15.1-1.tar.gz with bsdtar
==> Starting build()...
File "bench/dune", line 5, characters 7-16:
5 |   (pps ppx_bench)))
           ^^^^^^^^^
Error: Library "ppx_bench" not found.
-> required by _build/default/bench/bench.pp.ml
-> required by alias bench/all
-> required by alias default
File "test/dune", line 13, characters 7-17:
13 |   (pps ppx_expect)))
            ^^^^^^^^^^
Error: Library "ppx_expect" not found.
-> required by _build/default/test/tests.pp.ml
-> required by alias test/all
-> required by alias default
==> ERROR: A failure occurred in build().
    Aborting...

I then tried and installed aur/ocaml-ppx_expect and then the error goes:

File "bench/dune", line 5, characters 7-16:
5 |   (pps ppx_bench)))
           ^^^^^^^^^
Error: Library "ppx_bench" not found.
-> required by _build/default/bench/bench.pp.ml
-> required by alias bench/all
-> required by alias default

I then tried and installed aur/ocaml-ppx_bench and this time the makepkg process succeeded. I think ocaml-ppx_expect and ocaml-ppx_bench should be added as dependencies in PKGBUILD.