From e8bcbc34d461040773be27a5beffd7edb376f172abfd5bbc627cec7a18e14eb5 Mon Sep 17 00:00:00 2001 From: Giacomo Comes Date: Fri, 23 Jan 2026 11:56:06 -0400 Subject: [PATCH] add upstream patch 12509c0f1ee8c22ae163017f0a5e7b8a9d983a17.patch * fix build with python >= 3.13.6 --- ...9c0f1ee8c22ae163017f0a5e7b8a9d983a17.patch | 31 +++++++++++++++++++ libplacebo.changes | 6 ++++ libplacebo.spec | 3 +- 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 12509c0f1ee8c22ae163017f0a5e7b8a9d983a17.patch diff --git a/12509c0f1ee8c22ae163017f0a5e7b8a9d983a17.patch b/12509c0f1ee8c22ae163017f0a5e7b8a9d983a17.patch new file mode 100644 index 0000000..22d7029 --- /dev/null +++ b/12509c0f1ee8c22ae163017f0a5e7b8a9d983a17.patch @@ -0,0 +1,31 @@ +From 12509c0f1ee8c22ae163017f0a5e7b8a9d983a17 Mon Sep 17 00:00:00 2001 +From: Nicolas Chauvet +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 +--- + 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 @@ if __name__ == '__main__': + 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'), +-- +GitLab + diff --git a/libplacebo.changes b/libplacebo.changes index 42cb56f..719824b 100644 --- a/libplacebo.changes +++ b/libplacebo.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jan 23 15:54:42 UTC 2026 - Giacomo Comes + +- add upstream patch 12509c0f1ee8c22ae163017f0a5e7b8a9d983a17.patch + * fix build with python >= 3.13.6 + ------------------------------------------------------------------- Wed May 21 22:46:00 UTC 2025 - llyyr diff --git a/libplacebo.spec b/libplacebo.spec index 704a391..cef8edb 100644 --- a/libplacebo.spec +++ b/libplacebo.spec @@ -30,6 +30,7 @@ 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 +Patch0: https://code.videolan.org/videolan/libplacebo/-/commit/12509c0f1ee8c22ae163017f0a5e7b8a9d983a17.patch %if 0%{?suse_version} == 1500 && 0%{?sle_version} > 150200 BuildRequires: gcc13 BuildRequires: gcc13-c++ @@ -91,7 +92,7 @@ help understand and demonstrate the various options provided by %{name}. %endif %prep -%setup -q -n %{name}-v%{version} +%autosetup -p1 -n %{name}-v%{version} cp %{SOURCE1} ./demos/3rdparty/nuklear/ %build -- 2.51.1