Diff below updates py-platformdirs to 3.8.1, which addresses an issue with user_runtime_dir on OpenBSD. Changes: https://github.com/platformdirs/platformdirs/releases
This update is needed for sysutils/borgbackup-2.0.0b6 to pass all tests (without patching borg). Comments/OK? diff --git Makefile Makefile index 81c1b7a38a1..52e392f52a1 100644 --- Makefile +++ Makefile @@ -1,6 +1,6 @@ COMMENT= determine appropriate platform-specific directories -MODPY_EGG_VERSION= 3.7.0 +MODPY_EGG_VERSION= 3.8.1 DISTNAME= platformdirs-${MODPY_EGG_VERSION} PKGNAME= py-${DISTNAME} diff --git distinfo distinfo index c5413eb4d35..1b1a67cb5dc 100644 --- distinfo +++ distinfo @@ -1,2 +1,2 @@ -SHA256 (platformdirs-3.7.0.tar.gz) = h/v2Rz6HwHjVNpgLqXCkckIulPF7dSz60XAkwYh21IE= -SIZE (platformdirs-3.7.0.tar.gz) = 18322 +SHA256 (platformdirs-3.8.1.tar.gz) = +Hyk/P99Kw+BxqdIp3lz168PTVJvmPMIR3w8Q2x01Sg= +SIZE (platformdirs-3.8.1.tar.gz) = 18533 diff --git patches/patch-tests_test_unix_py patches/patch-tests_test_unix_py new file mode 100644 index 00000000000..31de31dec1d --- /dev/null +++ patches/patch-tests_test_unix_py @@ -0,0 +1,14 @@ +Fix failing test. + +Index: tests/test_unix.py +--- tests/test_unix.py.orig ++++ tests/test_unix.py +@@ -94,7 +94,7 @@ def _func_to_path(func: str) -> XDGVariable | None: + "user_cache_dir": XDGVariable("XDG_CACHE_HOME", "~/.cache"), + "user_state_dir": XDGVariable("XDG_STATE_HOME", "~/.local/state"), + "user_log_dir": XDGVariable("XDG_STATE_HOME", "~/.local/state"), +- "user_runtime_dir": XDGVariable("XDG_RUNTIME_DIR", "/run/user/1234"), ++ "user_runtime_dir": XDGVariable("XDG_RUNTIME_DIR", "/tmp/runtime-1234"), + } + return mapping.get(func) +