#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 upstream​https://gitlab.com/graphviz/graphviz/-/merge_requests/4405

Attachments (1)

graphviz-13.0.1-cmake4-1.patch​ (1.8 KB ) - added by Zhang Wen 16 months ago.

Download all attachments as: .zip

Change History (5)

by Zhang Wen, 16 months ago

comment:1 by Xi Ruoyao, 16 months ago

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.

comment:2 by Xi Ruoyao, 16 months ago

And I'm almost sure this is not related to cmake-4 vs cmake-3.

comment:3 by Bruce Dubbs, 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 Bruce Dubbs, 16 months ago

Resolution: → fixed
Status: new → closed

Promote Pango and friends to recommended in graphviz.

Note: See TracTickets for help on using tickets.