From bd04537abb28059580c84440c56a952d76067bd1 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Fri, 26 Jul 2024 15:23:06 +0200 Subject: archivers/py-borgbackup: unbreak on FreeBSD 13 import acl_extended_file_np.c from src/lib/libc/posix1e, taken from FreeBSD src branch as of 559a218c9b25, 2023-11-01T16:43:37Z and tell Cython to include it on FreeBSD before 1400033, i. e., before FreeBSD's libc had it. This fixes https://github.com/borgbackup/borg/issues/8269 and makes it unnecessary to look into PR: 280453 --- archivers/py-borgbackup/files/extrapatch-setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 archivers/py-borgbackup/files/extrapatch-setup.py (limited to 'archivers/py-borgbackup/files/extrapatch-setup.py') diff --git a/archivers/py-borgbackup/files/extrapatch-setup.py b/archivers/py-borgbackup/files/extrapatch-setup.py new file mode 100644 index 000000000000..f0128d2bb589 --- /dev/null +++ b/archivers/py-borgbackup/files/extrapatch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2024-07-02 22:06:38 UTC ++++ setup.py +@@ -181,7 +181,7 @@ if not on_rtd: + syncfilerange_ext = Extension( + "borg.platform.syncfilerange", [platform_syncfilerange_source], extra_compile_args=cflags + ) +- freebsd_ext = Extension("borg.platform.freebsd", [platform_freebsd_source], extra_compile_args=cflags) ++ freebsd_ext = Extension("borg.platform.freebsd", [platform_freebsd_source, 'src/borg/platform/acl_extended_file_np.c'], extra_compile_args=cflags) + darwin_ext = Extension("borg.platform.darwin", [platform_darwin_source], extra_compile_args=cflags) + windows_ext = Extension("borg.platform.windows", [platform_windows_source], extra_compile_args=cflags) + -- cgit v1.2.3