Package Details: cppo 1.8.0-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-3-Clause
Submitter: J5lx
Maintainer: hv15
Last Packager: hv15
Votes: 7
Popularity: 0.53
First Submitted: 2019-09-04 10:17 (UTC)
Last Updated: 2026-09-05 13:19 (UTC)

Latest Comments

1 2 3 Next › Last »

RubenKelevra commented on 2026-09-05 13:23 (UTC)

Great! Thanks for the quick response, @hv15

hv15 commented on 2026-09-05 13:20 (UTC)

Thanks @RubenKelevra for reporting, upstream already fixed this in https://github.com/ocaml-community/cppo/pull/106, so I apply the patch to the current release. Cheers, Hans

RubenKelevra commented on 2026-09-03 14:17 (UTC)

Does fail in check():

https://gist.github.com/RubenKelevra/a74943c06b73ac1e490eef4b7d0a925b

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