btrfs-progs/libbtrfsutil/python
Omar Sandoval d0ab8f55a5 libbtrfsutil: python: fix build on Python 3.13
Python 3.13, currently in beta, removed the internal
_PyObject_LookupSpecial function. The libbtrfsutil Python bindings use
it in the path_converter() function because it was based on internal
path_converter() function in CPython [1]. This is causing build failures
on Fedora Rawhide [2] and Gentoo [3]. Replace path_converter() with a
version that only uses public functions based on the one in drgn [4].

1: d9efa45d74/Modules/posixmodule.c (L1253)
2: https://bugzilla.redhat.com/show_bug.cgi?id=2245650
3: https://github.com/kdave/btrfs-progs/issues/838
4: 9ad29fd864/libdrgn/python/util.c (L81)

Issue: #838
Reported-by: Neal Gompa <neal@gompa.dev>
Reported-by: Sam James <sam@gentoo.org>
Reviewed-by: Neal Gompa <neal@gompa.dev>
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2024-07-30 20:01:38 +02:00
..
tests libbtrfsutil: fix accidentally closing fd passed to subvolume iterator 2024-06-25 17:42:18 +02:00
.gitignore
btrfsutilpy.h libbtrfsutil: python: fix build on Python 3.13 2024-07-30 20:01:38 +02:00
error.c libbtrfsutil: relicense to LGPLv2.1+ 2021-04-19 18:58:26 +02:00
filesystem.c libbtrfsutil: relicense to LGPLv2.1+ 2021-04-19 18:58:26 +02:00
module.c libbtrfsutil: python: fix build on Python 3.13 2024-07-30 20:01:38 +02:00
qgroup.c libbtrfsutil: relicense to LGPLv2.1+ 2021-04-19 18:58:26 +02:00
setup.py libbtrfsutil: add warning about autogenerated constants.c 2021-05-06 16:41:47 +02:00
subvolume.c libbtrfsutil: relicense to LGPLv2.1+ 2021-04-19 18:58:26 +02:00