ports/archivers/py-borgbackup/files/extrapatch-setup.py
Matthias Andree bd04537abb 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
2024-07-26 15:43:31 +02:00

11 lines
707 B
Python

--- 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)