Package Details: cppo 1.6.9-2

Git Clone URL: https://aur.archlinux.org/cppo.git (read-only, click to copy)
Package Base: cppo
Description: C-style preprocessor for OCaml
Upstream URL: https://github.com/ocaml-community/cppo
Keywords: ocaml
Licenses: BSD
Submitter: J5lx
Maintainer: hv15
Last Packager: hv15
Votes: 6
Popularity: 0.005238
First Submitted: 2019-09-04 10:17 (UTC)
Last Updated: 2022-05-21 10:03 (UTC)

Latest Comments

1 2 Next › Last »

hv15 commented on 2022-05-21 10:04 (UTC)

@patlefort thanks, I was still on dune 3.1.0, the --libdir flag behavior changed in 3.2.0 for some reason. Pushed PKGBUILD fix for this.

patlefort commented on 2022-05-21 01:35 (UTC) (edited on 2022-05-21 01:36 (UTC) by patlefort)

Small problem:

dune install: option --libdir: the path must be absolute to avoid ambiguity

From dune's manual:

       --libdir=PATH
           Directory where library files are copied, relative to prefix or absolute. If --prefix is specified the
           default is $prefix/lib. Only absolute path accepted.

It's rather confusing, it says it can be relative to $prefix and then says it must be absolute.

XDjackieXD commented on 2022-03-08 21:53 (UTC)

I can confirm this issue. Downgrading dune to 2.9.3 fixes it for me. I voted on the bug you opened in the issue tracker in the hopes that it will get fixed soon ^^

hv15 commented on 2022-03-08 14:57 (UTC) (edited on 2022-03-08 17:15 (UTC) by hv15)

@jaywalker, I've now been able to recreate the error message... its really weird as I can find ocamlbuild with ocamlfind, but not with dune. This is either something with how the ArchLinux ocamlbuild package is built/installed, or something with dune. I've create an upstream issue for this https://github.com/ocaml-community/cppo/issues/82.

To make things even weirder, if I have a opam environment setup with ocamlbuild installed locally, I can build cppo just fine. I am not sure if this latter detail is helpful or not.

EDIT: seems to be with dune, created https://bugs.archlinux.org/task/74061

jaywalker commented on 2022-03-07 16:15 (UTC)

Thanks for the update @hv15. This was on a fresh system, so I'm pretty up-to-date. I got to installing this package by trying to install the google-drive fuse package. When it failed on cppo, I tried building the PKGBUILD manually, and then tried reproducing its steps manually; All resulted in the same error

hv15 commented on 2022-03-01 08:17 (UTC)

hi @jaywalker, on my system I'm not able to replicate your issue but I'm also not using the latest releases --- I haven't done a full upgrade since january. Once I've done this (maybe later today), I'll look more closely at this.

jaywalker commented on 2022-03-01 03:50 (UTC) (edited on 2022-03-01 03:50 (UTC) by jaywalker)

I'm having a problem building this and I'm not sure what to try now...

[jaywalker@gazelle ~/AUR/cppo/cppo-1.6.8]$ make
File "ocamlbuild_plugin/dune", line 6, characters 12-22:
6 |  (libraries ocamlbuild))
                ^^^^^^^^^^
Error: Library "ocamlbuild" not found.
-> required by library "cppo_ocamlbuild" in _build/default/ocamlbuild_plugin
-> required by _build/default/META.cppo_ocamlbuild
-> required by _build/install/default/lib/cppo_ocamlbuild/META
-> required by _build/default/cppo_ocamlbuild.install
-> required by alias install
-> required by alias default
make: *** [Makefile:2: all] Error 1

J5lx commented on 2020-03-10 20:50 (UTC) (edited on 2020-03-10 20:52 (UTC) by J5lx)

@hv15 A small tip: the changelog field in the PKGBUILD is actually for package changelogs, i.e. the changes to the package itself rather than the changes to the software contained in the package. The latter usually goes into /usr/share/doc ^^ (Edit: Actually this is also the reason why files retrieved from the sources can't be assigned to the changelog field)

condy commented on 2020-02-07 09:51 (UTC)

PKGBUILD works well.

It specifies --prefix /usr --libdir lib/ocaml flags.

hv15 commented on 2020-01-24 14:40 (UTC) (edited on 2020-01-24 14:40 (UTC) by hv15)

@J5lx FYI following the example PKGBUILD given here, I'm able to build and install cppo correctly. Specifically using the --prefix flag makes it unnecessary to build in chroot or remove opam.