From 1e06978a0f009f105e54f63b83b764f4e05b9a80 Mon Sep 17 00:00:00 2001 From: Joseph Kogut Date: Sun, 7 Jun 2026 19:06:06 -0700 Subject: [PATCH] package/libepoxy: remove gl/egl dependency Libepoxy is a library for handling OpenGL function pointer management. It has backends for egl/glx, which may at one point have been mandatory to enable, but the library now builds with none of the above enabled features, as seen below. libepoxy 1.5.10 User defined options Cross files : /home/joseph/br-test-pkg/arm-aarch64/build/libepoxy-1.5.10//buildroot-build/cross-compilation.conf b_pie : false b_staticpic : true buildtype : release build.cmake_prefix_path: /home/joseph/br-test-pkg/arm-aarch64/host/lib/cmake default_library : shared docs : false egl : no glx : no libdir : lib build.pkg_config_path : /home/joseph/br-test-pkg/arm-aarch64/host/lib/pkgconfig prefix : /usr strip : false tests : false x11 : false Removing these dependencies allows for some applications that require it as a build dependency, but otherwise can run headless or without GL, to build and function, using other graphics APIs or display pipelines. Weston, for example, can still use Vulkan and DRM when linked to libepoxy without GL/EGL/X11 support. Acked-by: Arnout Vanecappelle Signed-off-by: Joseph Kogut Signed-off-by: Romain Naour (cherry picked from commit cd2583ca0a993cb44e8822966f101e820ac2619e) Signed-off-by: Thomas Perale --- package/libepoxy/Config.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package/libepoxy/Config.in b/package/libepoxy/Config.in index 9da190b895..4b23497d46 100644 --- a/package/libepoxy/Config.in +++ b/package/libepoxy/Config.in @@ -1,12 +1,12 @@ config BR2_PACKAGE_LIBEPOXY bool "libepoxy" - depends on BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL select BR2_PACKAGE_XUTIL_UTIL_MACROS help Epoxy is a library for handling OpenGL function pointer management for you. - https://github.com/anholt/libepoxy + It can be built without EGL or GLX support for packages + that use libepoxy as a mandatory dependency but do not need + OpenGL entry points at runtime. -comment "libepoxy needs an OpenGL and/or OpenGL EGL backend" - depends on !BR2_PACKAGE_HAS_LIBEGL && !BR2_PACKAGE_HAS_LIBGL + https://github.com/anholt/libepoxy