Package Details: ocaml-easy-format 1.3.4-4

Git Clone URL: https://aur.archlinux.org/ocaml-easy-format.git (read-only, click to copy)
Package Base: ocaml-easy-format
Description: Pretty-printing library for OCaml
Upstream URL: https://github.com/ocaml-community/easy-format
Keywords: format ocaml
Licenses: BSD
Submitter: nerflad
Maintainer: condy
Last Packager: condy
Votes: 6
Popularity: 0.000043
First Submitted: 2019-09-06 08:56 (UTC)
Last Updated: 2022-12-03 18:20 (UTC)

Latest Comments

1 2 Next › Last »

eclairevoyant commented on 2022-12-03 15:01 (UTC) (edited on 2022-12-03 15:07 (UTC) by eclairevoyant)

You can remove provides, it doesn't make sense for a package to provide itself. This also applies to several of the other packages you currently maintain (and they shouldn't conflict with themselves either).

condy commented on 2022-08-13 20:37 (UTC)

@dctxmei

Fixed.

dctxmei commented on 2022-08-12 16:25 (UTC)

This is the result obtained through the extra-x86_64-build:

==> Starting build()...
Error: Program ocamlc not found in the tree or in PATH
 (context: default)
==> ERROR: A failure occurred in build().

You need to add ocaml to makedepends=.

condy commented on 2020-02-11 11:28 (UTC)

@Poscat

Thanks for your suggestion. Updated!

Poscat commented on 2020-02-11 11:14 (UTC) (edited on 2020-02-11 11:15 (UTC) by Poscat)

I think you should be using the compile.patch in ${srcdir}, that is
patch src/easy_format.ml ${srcdir}/compile.patch instead of
patch src/easy_format.ml ../../compile.patch.
The latter will fail to build when using devtools

condy commented on 2020-02-07 16:27 (UTC) (edited on 2020-02-07 16:29 (UTC) by condy)

@snakeroot

Thanks for your solution! Applied in current PKGBUILD.

snakeroot commented on 2020-02-07 16:23 (UTC) (edited on 2020-02-07 16:24 (UTC) by snakeroot)

Still failed, but I fixed it locally by adding compile.patch to the sources array and regenerating the sha256sums:

source=(${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}.tbz compile.patch)

sha256sums=('3440c2b882d537ae5e9011eb06abb53f5667e651ea4bb3b460ea8230fa8c1926' 'ef631f2298d6ac15762f35a6eb3ff7e018d12cc86f4073e514bef24ebb212ecc')

condy commented on 2020-02-07 14:24 (UTC) (edited on 2020-02-07 14:33 (UTC) by condy)

@snakeroot

PKGBUILD updated.

previous

build() {
    cd ${_pkgname}-${pkgver}
    patch src/easy_format.ml ../../compile.patch
    dune build -p easy-format
}

current

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    patch src/easy_format.ml ../../compile.patch
    dune build -p easy-format
}

It's a path error. But I can't reproduce it. weird!

If it still failed, PM condy @ freenode.

snakeroot commented on 2020-02-07 14:15 (UTC) (edited on 2020-02-07 14:18 (UTC) by snakeroot)

@condy

The patch exists, but does not apply.

[chris@gaura build]$ ls ocaml-easy-format/

PKGBUILD compile.patch easy-format-1.3.2.tbz

[chris@gaura build]$ cd ocaml-easy-format/

[chris@gaura ocaml-easy-format]$ makepkg

==> Making package: ocaml-easy-format 1.3.2-2 (2020-02-07T09:13:56 EST)

==> Checking runtime dependencies...

==> Checking buildtime dependencies...

==> Retrieving sources...

-> Found easy-format-1.3.2.tbz

==> Validating source files with sha256sums...

easy-format-1.3.2.tbz ... Passed

==> Extracting sources...

-> Extracting easy-format-1.3.2.tbz with bsdtar

==> Removing existing $pkgdir/ directory...

==> Starting build()...

patch: **** Can't open patch file ../../compile.patch : No such file or directory

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

Aborting...

condy commented on 2020-02-07 14:10 (UTC)

@snakeroot

Make sure the compile.patch file exists.

git clone <https://aur.archlinux.org/ocaml-easy-format.git>, and you will see the compile.patch file.