[Bug 256344] x11-toolkits/libadwaita: build error: vulkan/vulkan.h file not found

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 01 Jun 2021 17:24:29 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256344

            Bug ID: 256344
           Summary: x11-toolkits/libadwaita: build error: vulkan/vulkan.h
                    file not found
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: gnome_at_FreeBSD.org
          Reporter: jcfyecrayz_at_liamekaens.com
             Flags: maintainer-feedback?(gnome_at_FreeBSD.org)
          Assignee: gnome_at_FreeBSD.org

x11-toolkits/gtk40 has a VULKAN option which, when on, adds a build time
dependency on graphics/vulkan-headers.
It is on by default.
When on, it enables some vulkan related compite time features in installed
headers.  Such as:

/usr/local/include/gtk-4.0/gdk/gdkconfig.h:#define GDK_RENDERING_VULKAN


x11-toolkits/libadwaita depends on gtk40, but not vulkan-headers (optionally or
otherwise).  As a result, the following libadwaita build error occurs if the
vulkan-headers package is not installed (it is only a build time dependency for
gtk40).

===========
 .
 .
cc -Isrc/libadwaita-1.so.0.p -Isrc -I../src -I. -I.. -Isrc/stylesheet
-I/usr/loc/include/glib-2.0 -I/usr/loc/lib/glib-2.0/include -I/usr/loc/include
-I/usr/loc/include/fribidi -I/usr/loc/include/gtk-4.0
-I/usr/loc/include/pango-1.0 -I/usr/loc/include/harfbuzz
-I/usr/loc/include/freetype2 -I/usr/loc/include/cairo
-I/usr/loc/include/pixman-1 -I/usr/loc/include/libdrm
-I/usr/loc/include/libpng16 -I/usr/loc/include/gdk-pixbuf-2.0
-I/usr/loc/include/graphene-1.0 -I/usr/loc/lib/graphene-1.0/include
-I/usr/loc/include/gio-unix-2.0 -I/usr/loc/include/libepoll-shim
-I/wrkdirs/usr/ports/x11-toolkits/libadwaita/work/libadwaita-7f61711633dfd067f4928df80afe6b14f16f886e/_build
-fno-color-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch
-std=gnu11 -O3 -DHAVE_CONFIG_H -DADWAITA_COMPILATION -Wcast-align -Wdate-time
-Wdeclaration-after-statement -Werror=format-security -Werror=format=2
-Wendif-labels -Werror=incompatible-pointer-types -Werror=missing-declarations
-Werror=overflow -Werror=return-type -Werror=shift-count-overflow
-Wformat-nonliteral -Wformat-security -Winit-self -Wmissing-field-initializers
-Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs
-Wno-missing-field-initializers -Wno-sign-compare -Wno-strict-aliasing
-Wno-unused-parameter -Wold-style-definition -Wpointer-arith -Wredundant-decls
-Wshadow -Wstrict-prototypes -Wswitch-default -Wswitch-enum -Wtype-limits
-Wundef -Wunused-function -fstack-protector-strong -O2 -fstack-protector-strong
-fno-strict-aliasing -fPIC -mfpmath=sse -msse -msse2 -D_THREAD_SAFE -pthread
'-DG_LOG_DOMAIN="Adwaita"' -fvisibility=hidden -MD -MQ
src/libadwaita-1.so.0.p/meson-generated_.._adw-enums.c.o -MF
src/libadwaita-1.so.0.p/meson-generated_.._adw-enums.c.o.d -o
src/libadwaita-1.so.0.p/meson-generated_.._adw-enums.c.o -c src/adw-enums.c
In file included from src/adw-enums.c:7:
In file included from ../src/adw-flap.h:15:
In file included from /usr/local/include/gtk-4.0/gtk/gtk.h:31:
In file included from /usr/local/include/gtk-4.0/gdk/gdk.h:76:
/usr/local/include/gtk-4.0/gdk/gdkvulkancontext.h:32:10: fatal error:
'vulkan/vulkan.h' file not found
#include <vulkan/vulkan.h>
         ^~~~~~~~~~~~~~~~~
1 error generated.
===========

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Tue Jun 01 2021 - 17:24:29 UTC

Original text of this message