From b9cdfca7ea49d7e533e58fa46c3df1be27818d99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20M=2E=20Basto?= Date: Sun, 7 Apr 2024 03:17:07 +0100 Subject: [PATCH] Fix build failure due to OGLCompiler being removed from glslang and shaderc --- libplacebo-OGLCompiler.patch | 12 ++++++++++++ libplacebo.spec | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 libplacebo-OGLCompiler.patch diff --git a/libplacebo-OGLCompiler.patch b/libplacebo-OGLCompiler.patch new file mode 100644 index 0000000..2761281 --- /dev/null +++ b/libplacebo-OGLCompiler.patch @@ -0,0 +1,12 @@ +https://github.com/haasn/libplacebo/issues/226 +--- libplacebo/src/glsl/meson.build 2023-12-02 20:48:51.445273381 -0400 ++++ libplacebo_patch/src/glsl/meson.build 2023-12-05 10:56:49.083295970 -0400 +@@ -44,7 +44,7 @@ elif not glslang_req.disabled() + # Always required for static linking + cxx.find_library('MachineIndependent', required: true, static: true), + cxx.find_library('OSDependent', required: true, static: true), +- cxx.find_library('OGLCompiler', required: true, static: true), ++# cxx.find_library('OGLCompiler', required: true, static: true), + cxx.find_library('GenericCodeGen', required: true, static: true), + # SPIRV-Tools are required only if optimizer is enabled in glslang build + cxx.find_library('SPIRV-Tools', required: false, static: true), diff --git a/libplacebo.spec b/libplacebo.spec index 960f876..fc33f6d 100644 --- a/libplacebo.spec +++ b/libplacebo.spec @@ -8,6 +8,8 @@ Summary: Reusable library for GPU-accelerated video/image rendering primi License: LGPL-2.0-or-later URL: https://github.com/haasn/libplacebo Source0: %{url}/archive/v%{version}%{?prerelease}/%{name}-%{version}%{?prerelease}.tar.gz +# https://github.com/haasn/libplacebo/issues/226 +Patch1: https://github.com/haasn/libplacebo/files/13562418/libplacebo-OGLCompiler.patch BuildRequires: gcc BuildRequires: gcc-c++