[vlc-commits] [Git][videolan/vlc][master] contrib: libplacebo: fix compilation with Python 3.14

Steve Lhomme (@robUx4) gitlab at videolan.org
Tue Oct 7 14:28:57 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
0598fd1f by Steve Lhomme at 2025-10-07T13:25:11+00:00
contrib: libplacebo: fix compilation with Python 3.14

The patch is merged in the main branch but not part of any release yet.

- - - - -


2 changed files:

- + contrib/src/libplacebo/0001-vulkan-utils_gen-fix-for-python-3.14.patch
- contrib/src/libplacebo/rules.mak


Changes:

=====================================
contrib/src/libplacebo/0001-vulkan-utils_gen-fix-for-python-3.14.patch
=====================================
@@ -0,0 +1,31 @@
+From 37088af8d779600fcd915618e4867c328b3d181e Mon Sep 17 00:00:00 2001
+From: Nicolas Chauvet <kwizart at 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 at 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 4bbe185b..27204fe6 100644
+--- a/src/vulkan/utils_gen.py
++++ b/src/vulkan/utils_gen.py
+@@ -238,7 +238,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'),
+-- 
+2.45.1.windows.1
+


=====================================
contrib/src/libplacebo/rules.mak
=====================================
@@ -40,6 +40,7 @@ libplacebo: $(PLACEBO_ARCHIVE) .sum-libplacebo
 	$(APPLY) $(SRC)/libplacebo/0001-vulkan-meson-add-the-clang-gcc-C-runtime.patch
 	$(APPLY) $(SRC)/libplacebo/0001-meson-allow-overriding-python3-path.patch
 	$(APPLY) $(SRC)/libplacebo/0001-meson-allow-forcing-the-path-to-look-for-libraries.patch
+	$(APPLY) $(SRC)/libplacebo/0001-vulkan-utils_gen-fix-for-python-3.14.patch
 	$(MOVE)
 
 .libplacebo: libplacebo crossfile.meson .python-venv



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0598fd1f852ad26be53c2f16195855ce6017f9da

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/0598fd1f852ad26be53c2f16195855ce6017f9da
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list