Package Details: ocaml-easy-format 1.3.2-6

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
Provides: ocaml-easy-format
Submitter: nerflad
Maintainer: condy
Last Packager: condy
Votes: 4
Popularity: 0.108719
First Submitted: 2019-09-06 08:56
Last Updated: 2020-03-22 07:30

Latest Comments

1 2 Next › Last »

condy commented on 2020-02-11 11:28

@Poscat

Thanks for your suggestion. Updated!

Poscat commented on 2020-02-11 11:14

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

@snakeroot

Thanks for your solution! Applied in current PKGBUILD.

snakeroot commented on 2020-02-07 16:23

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

@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

@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

@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.

snakeroot commented on 2020-02-07 14:02

@condy.

Used aur sync, but after that failed I tried building it without helper by running makepkg in the directory and then by deleting the downloaded files and running makepkg again (neither of which worked).

Also ran your recommended commands, with the same result.

condy commented on 2020-02-07 13:58

@snakeroot

What's your aur helper?

It works fine with yay.

Try with git and makepkg directly.

git clone https://aur.archlinux.org/ocaml-easy-format.git
cd ocaml-easy-format
makepkg -sic

snakeroot commented on 2020-02-07 13:45

ocaml-easy-format 1.3.2-2 build fails as follows

==> Making package: ocaml-easy-format 1.3.2-2 (2020-02-07T08:42:11 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...