Opened 16 months ago
Closed 16 months ago
#21749 closed defect (fixed)
graphviz FTBFS with cmake 4.x
| Reported by: | Zhang Wen | Owned by: | blfs-book |
|---|---|---|---|
| Priority: | normal | Milestone: | 12.4 |
| Component: | BOOK | Version: | git |
| Severity: | medium | Keywords: | |
| Cc: |
Description
The error message is as follows:
CMake Error at cmake/config_checks.cmake:18 (if): if given arguments: "PANGOCAIRO_FOUND" "AND" "VERSION_GREATER_EQUAL" "1.4" "AND" "Linux" "MATCHES" "Linux" Unknown arguments specified
I've created a patch and submitted it to the upstreamhttps://gitlab.com/graphviz/graphviz/-/merge_requests/4405
Attachments (1)
Change History (5)
by , 16 months ago
| Attachment: | graphviz-13.0.1-cmake4-1.patch added |
|---|
comment:1 by , 16 months ago
comment:3 by , 16 months ago
I certainly did not have a problem with building with cmake.
All the options for graphviz are optionsal. the first entry is:
Pango-1.56.3, with Cairo-1.18.4, Xorg Libraries, Fontconfig-2.16.2, libpng-1.6.49, to generate images in bitmap SVG, postscript, PNG, and PDF formats, or to display the image on screen. The PNG output is required for building gegl-0.4.62.
Perhaps we should promote that line to recommended.
comment:4 by , 16 months ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Promote Pango and friends to recommended in graphviz.
Note:
See TracTickets
for help on using tickets.

The problem is "AND" in cmake has no short-circuit semantic but the upstream developer didn't understand that. Thus this only happens when pango is not installed.