File: libplacebo-vulkan-python-xml.patch

package info (click to toggle)
haruna 1.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,512 kB
  • sloc: cpp: 8,532; xml: 1,048; sql: 14; sh: 4; makefile: 3
file content (17 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Formerly only needed with python-3.14.x but backports have broke
this with python-3.13.6 too.

https://bugs.gentoo.org/960115
https://bugs.gentoo.org/961230
https://code.videolan.org/videolan/libplacebo/-/commit/12509c0f1ee8
--- a/src/vulkan/utils_gen.py
+++ b/src/vulkan/utils_gen.py
@@ -203,5 +203,6 @@
         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(