Bug 257091 - graphics/cairo: cairo-1.17.4 failed to build
Summary: graphics/cairo: cairo-1.17.4 failed to build
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-10 05:16 UTC by crypt47
Modified: 2021-07-10 11:58 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (desktop)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description crypt47 2021-07-10 05:16:20 UTC
build with pourdrie, failed during install stage:

Making install in micro
/usr/bin/make  install-am
make[4]: "/wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/Makefile" line 1525: warning: duplicate script for target "recheck" ignored
make[4]: "/wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/Makefile" line 1164: warning: using previous script for "recheck" defined here
make[5]: "/wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/Makefile" line 1525: warning: duplicate script for target "recheck" ignored
make[5]: "/wrkdirs/usr/ports/graphics/cairo/work/cairo-1.17.4/Makefile" line 1164: warning: using previous script for "recheck" defined here
====> Compressing man pages (compress-man)
===========================================================================
=======================<phase: package        >============================
===>  Building package for cairo-1.17.4,3
pkg-static: Unable to access file /wrkdirs/usr/ports/graphics/cairo/work/stage/usr/local/libdata/pkgconfig/cairo-glx.pc:No such file or directory
*** Error code 1

Stop.
make: stopped in /usr/ports/graphics/cairo
=>> Cleaning up wrkdir
===>  Cleaning for cairo-1.17.4,3
Comment 1 crypt47 2021-07-10 05:23:36 UTC
OPTIONS_FILE_UNSET+=DOCS
OPTIONS_FILE_SET+=GLIB
OPTIONS_FILE_SET+=X11
OPTIONS_FILE_SET+=XCB
OPTIONS_FILE_SET+=OPENGL
OPTIONS_FILE_UNSET+=GLESV2
Comment 2 crypt47 2021-07-10 05:30:15 UTC
with

OPTIONS_FILE_UNSET+=OPENGL
OPTIONS_FILE_SET+=GLESV2

builds fine.
Comment 3 crypt47 2021-07-10 08:34:18 UTC
found a more recent report

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256800
Comment 4 Evgeniy Khramtsov 2021-07-10 11:14:53 UTC
pkg cluster with the unmodified options cannot reproduce:
http://beefy16.nyi.freebsd.org/data/130amd64-default/6e40bf8661e0/logs/cairo-1.17.4,3.log
http://www.ipv6proxy.net/go.php?u=http%3A%2F%2Fbeefy16.nyi.freebsd.org%2Fdata%2F130amd64-default%2F6e40bf8661e0%2Flogs%2Fcairo-1.17.4%2C3.log&b=0&f=norefer

In your case, the pkg-plist entry check
%%OPENGL%%%%X11%%libdata/pkgconfig/cairo-glx.pc
fails because you have X11 on for graphics/cairo, but cairo-glx.pc
does not build. In most cases, this is caused by a GL provider
(libglvnd and/or mesa-*) built without X11. Ports framework doesn't
check the required provider OPTIONS for consumers.

What are you trying to achieve, a headless server or a desktop?

OPTIONS_FILE_* seems to be obscure (an old/deprecated way of setting
OPTIONS?). Consider "OPTIONS_(UN)SET+=" for global and foo_bar_(UN)SET+=
(category/port -> category_port) for per port OPTIONS, e.g.:

OPTIONS_SET+=   FOO
OPTIONS_UNSET+= BAR
foo_bar_SET+=   BAZ
foo_bar_UNSET+= BZZ

Can you post your poudriere log file?