From 45d28cff1b0b68ac02c3e544db9d79ee80c5843b Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Wed, 1 May 2024 14:15:42 +0200 Subject: devel/busd: unbreak without XDG_RUNTIME_DIR $ busd Error: No such file or directory (os error 2) $ truss busd [...] socket(PF_LOCAL,SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK,0) = 9 (0x9) bind(9,{ AF_UNIX "/run/user/1234/busd-session" },30) ERR#2 'No such file or directory' [...] May still fail if /var/run/user doesn't exist e.g., if neither pam_xdg nor consolekit2 are installed. FreeBSD >= 14.1 always sets XDG_RUNTIME_DIR. (cherry picked from commit 8b8f18da222dc7c8a23c73bf40f9d09924e436ea) --- devel/busd/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/devel/busd/Makefile b/devel/busd/Makefile index a9b3f8805a5f..e84bf9cc22f3 100644 --- a/devel/busd/Makefile +++ b/devel/busd/Makefile @@ -1,6 +1,6 @@ PORTNAME= busd DISTVERSION= 0.2.0 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= devel MAINTAINER= jbeich@FreeBSD.org @@ -15,4 +15,9 @@ USE_GITHUB= yes GH_ACCOUNT= dbus2 PLIST_FILES= bin/${PORTNAME} +post-patch: +# Respect consolekit2 as XDG_RUNTIME_DIR fallback + @${REINPLACE_CMD} 's,/run,/var&,' \ + ${WRKSRC}/src/bus/mod.rs + .include -- cgit v1.2.3