Skip to content

Package plcairo.5.15.0.1 - #30297

Open
phstrauss wants to merge 1 commit into
ocaml:masterfrom
phstrauss:opam-publish-plcairo.5.15.0.1
Open

Package plcairo.5.15.0.1#30297
phstrauss wants to merge 1 commit into
ocaml:masterfrom
phstrauss:opam-publish-plcairo.5.15.0.1

Conversation

@phstrauss

Copy link
Copy Markdown

plcairo.5.15.0.1

Bindings for the PLplot Cairo support
Binding for the Cairo rendering layer of PLplot, a high quality scientific plotting library with long history



🐫 Pull-request generated by opam-publish v3.0.0

["plplot-devel"] {os-family = "suse"}
["plplot-devel" "epel-release"] {os-distribution = "centos"}
["plplot"] {os-distribution = "nixos"}
]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

This is also failing CI across the board.
4.14
plcairo.5.15.0.1 (failed: Library "cairo2" not found.)

#=== ERROR while compiling plcairo.5.15.0.1 ===================================#
# context              2.5.2 | linux/x86_64 | ocaml-base-compiler.4.14.4 | pinned(https://codeberg.org/catseyechandra/ocaml-plcairo/archive/v5.15.0.1.tar.gz)
# path                 ~/.opam/4.14/.opam-switch/build/plcairo.5.15.0.1
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p plcairo -j 71
# exit-code            1
# env-file             ~/.opam/log/plcairo-7-0acab0.env
# output-file          ~/.opam/log/plcairo-7-0acab0.out
### output ###
# File "src/dune", line 13, characters 19-25:
# 13 |  (libraries plplot cairo2)
#                         ^^^^^^
# Error: Library "cairo2" not found.
# -> required by library "plcairo" in _build/default/src
# -> required by _build/default/META.plcairo
# -> required by _build/install/default/lib/plcairo/META
# -> required by _build/default/plcairo.install
# -> required by alias install
# File "src/dune", lines 5-8, characters 0-95:
# 5 | (rule
# 6 |  (targets c_flags.sexp c_library_flags.sexp)
# 7 |  (action
# 8 |   (run ../configure/discover.exe)))
# (cd _build/default/src && ../configure/discover.exe)
# which: pkgconf
# -> found: /usr/bin/pkgconf
# run: /usr/bin/pkgconf --personality x86_64-pc-linux-gnu --print-errors 'plplot cairo'
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | Package cairo was not found in the pkg-config search path.
#  | Perhaps you should add the directory containing `cairo.pc'
#  | to the PKG_CONFIG_PATH environment variable
#  | Package 'cairo', required by 'virtual:world', not found
# run: /usr/bin/pkgconf --personality x86_64-pc-linux-gnu --print-errors 'plplotd cairo'
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | Package plplotd was not found in the pkg-config search path.
#  | Perhaps you should add the directory containing `plplotd.pc'
#  | to the PKG_CONFIG_PATH environment variable
#  | Package 'plplotd', required by 'virtual:world', not found
#  | Package 'cairo', required by 'virtual:world', not found
# compiling c program:
#  | 
#  | #include <plplot.h>
#  | #include <cairo.h>
#  | 
#  | int main()
#  | {
#  |   printf("plplot and cairo include test\n");
#  |   return 0;
#  | }
# run: gcc -O2 -fno-strict-aliasing -fwrapv -pthread -fPIC  -I /home/opam/.opam/4.14/lib/ocaml -o /opam-tmp/build_3647d9_dune/ocaml-configuratora9d2ea/c-test-2/test.exe /opam-tmp/build_3647d9_dune/ocaml-configuratora9d2ea/c-test-2/test.c -lm -lplplot -lcairo
# -> process exited with code 1
# -> stdout:
# -> stderr:
#  | /opam-tmp/build_3647d9_dune/ocaml-configuratora9d2ea/c-test-2/test.c:2:10: fatal error: plplot.h: No such file or directory
#  |     2 | #include <plplot.h>
#  |       |          ^~~~~~~~~~
#  | compilation terminated.
# Fatal error: exception Failure("No valid installation of plplot and cairo found.")

Again, I suggest removing the above depexts and adding a regular depends on
"conf-cairo" and "conf-plplot".

@jmid

jmid commented Sep 3, 2026

Copy link
Copy Markdown
Member

@phstrauss Have you had a chance to look at this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants