commit:     deddaae9b8866f03d8592348894e0cf2a4834865
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  8 23:31:10 2025 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri Aug  8 23:36:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=deddaae9

media-libs/libplacebo: backport for python changes, enable py3.14

Formerly meant to wait for a new libplacebo release given no urgency
to enable py3.14, but python backports this broke this for 3.13 as
well. So backport libplacebo's fix and also re-enable py3.14 right now.

Bug: https://bugs.gentoo.org/960115
Closes: https://bugs.gentoo.org/961230
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 .../files/libplacebo-7.351.0-vulkan-python-xml.patch     | 16 ++++++++++++++++
 media-libs/libplacebo/libplacebo-7.351.0.ebuild          |  4 ++--
 2 files changed, 18 insertions(+), 2 deletions(-)

diff --git 
a/media-libs/libplacebo/files/libplacebo-7.351.0-vulkan-python-xml.patch 
b/media-libs/libplacebo/files/libplacebo-7.351.0-vulkan-python-xml.patch
new file mode 100644
index 000000000000..9e78279c4c7a
--- /dev/null
+++ b/media-libs/libplacebo/files/libplacebo-7.351.0-vulkan-python-xml.patch
@@ -0,0 +1,16 @@
+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(

diff --git a/media-libs/libplacebo/libplacebo-7.351.0.ebuild 
b/media-libs/libplacebo/libplacebo-7.351.0.ebuild
index cee8ea26e0f3..c77814a969b9 100644
--- a/media-libs/libplacebo/libplacebo-7.351.0.ebuild
+++ b/media-libs/libplacebo/libplacebo-7.351.0.ebuild
@@ -3,8 +3,7 @@
 
 EAPI=8
 
-# py3.14: https://bugs.gentoo.org/960115
-PYTHON_COMPAT=( python3_{11..13} )
+PYTHON_COMPAT=( python3_{11..14} )
 inherit meson-multilib python-any-r1
 
 if [[ ${PV} == 9999 ]]; then
@@ -70,6 +69,7 @@ BDEPEND="
 
 PATCHES=(
        "${FILESDIR}"/${PN}-5.229.1-llvm-libunwind.patch
+       "${FILESDIR}"/${P}-vulkan-python-xml.patch
 )
 
 python_check_deps() {

Reply via email to