1 Commits

Author SHA256 Message Date
Alynx Zhou
44e112fa9b Add libplacebo-fix-python-3-14-build.patch 2026-01-08 21:20:37 +08:00
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
From 12509c0f1ee8c22ae163017f0a5e7b8a9d983a17 Mon Sep 17 00:00:00 2001
From: Nicolas Chauvet <kwizart@gmail.com>
Date: Tue, 29 Jul 2025 11:42:35 +0200
Subject: [PATCH] vulkan/utils_gen: fix for python 3.14
Python 3.14+ has added more type checking. This patch fixes usage
Fixes: https://github.com/haasn/libplacebo/issues/335
Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
---
src/vulkan/utils_gen.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/vulkan/utils_gen.py b/src/vulkan/utils_gen.py
index 9a97d35f3..9b803d82b 100644
--- a/src/vulkan/utils_gen.py
+++ b/src/vulkan/utils_gen.py
@@ -202,7 +202,8 @@ def find_registry_xml(datadir):
if not xmlfile or xmlfile == '':
xmlfile = find_registry_xml(datadir)
- registry = VkXML(ET.parse(xmlfile))
+ tree = ET.parse(xmlfile)
+ registry = VkXML(tree.getroot())
with open(outfile, 'w') as f:
f.write(TEMPLATE.render(
vkresults = get_vkenum(registry, 'VkResult'),

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jan 8 09:15:37 UTC 2026 - Alynx Zhou <alynx.zhou@suse.com>
- Add libplacebo-fix-python-3-14-build.patch: Fix build error with
Python 3.14 (bsc#1256308, gh#haasn/libplacebo#355).
-------------------------------------------------------------------
Wed May 21 22:46:00 UTC 2025 - llyyr <llyyr@yukari.in>

View File

@@ -30,6 +30,8 @@ URL: https://code.videolan.org/videolan/libplacebo
Source0: https://code.videolan.org/videolan/libplacebo/-/archive/v%{version}/libplacebo-v%{version}.tar.bz2
Source1: https://github.com/Immediate-Mode-UI/Nuklear/raw/c512ac886425f6b6b6c816d67f4cb1385cd4cc53/nuklear.h
Source9: baselibs.conf
# PATCH-FIX-UPSTREAM libplacebo-fix-python-3-14-build.patch bsc#1256308, gh#haasn/libplacebo#355 alynx.zhou@suse.com -- Fix build with Python 3.14
Patch0: libplacebo-fix-python-3-14-build.patch
%if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200
BuildRequires: gcc13
BuildRequires: gcc13-c++
@@ -92,6 +94,7 @@ help understand and demonstrate the various options provided by %{name}.
%prep
%setup -q -n %{name}-v%{version}
%patch -P 0 -p1
cp %{SOURCE1} ./demos/3rdparty/nuklear/
%build