Date: Sun, 13 Aug 2023 18:23:39 GMT From: Gleb Popov <arrowd@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 6553c93b0a7a - main - x11/sddm: Restore a patch for the Xsession script. Message-ID: <202308131823.37DINdeo018118@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by arrowd: URL: https://cgit.FreeBSD.org/ports/commit/?id=6553c93b0a7ae9491f9af84f63d3115cfa265bc5 commit 6553c93b0a7ae9491f9af84f63d3115cfa265bc5 Author: Gleb Popov <arrowd@FreeBSD.org> AuthorDate: 2023-08-13 13:19:17 +0000 Commit: Gleb Popov <arrowd@FreeBSD.org> CommitDate: 2023-08-13 18:23:35 +0000 x11/sddm: Restore a patch for the Xsession script. Make it start D-Bus and ConsoleKit again. PR: 272637 Sponsored by: Serenity Cybersecurity, LLC --- x11/sddm/Makefile | 6 ++++-- x11/sddm/files/patch-data_scripts_Xsession | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/x11/sddm/Makefile b/x11/sddm/Makefile index 25556e3135bb..f2563817f87c 100644 --- a/x11/sddm/Makefile +++ b/x11/sddm/Makefile @@ -1,6 +1,6 @@ PORTNAME= sddm PORTVERSION= 0.20.0 -PORTREVISION= 1 +PORTREVISION= 2 DISTVERSIONPREFIX= v CATEGORIES= x11 @@ -18,7 +18,8 @@ LICENSE_FILE_GPLv2+ = ${WRKSRC}/LICENSE LICENSE_FILE_CC-BY-3.0= ${WRKSRC}/LICENSE.CC-BY-3.0 BUILD_DEPENDS= rst2man.py-${PYTHON_VER}:textproc/py-docutils@${PY_FLAVOR} -RUN_DEPENDS= dbus-run-session:devel/dbus \ +RUN_DEPENDS= consolekit2>1.2.5:sysutils/consolekit2 \ + dbus-launch:devel/dbus \ xauth:x11/xauth \ xmessage:x11/xmessage @@ -51,6 +52,7 @@ post-patch: @${REINPLACE_CMD} -e 's#/etc/X11#${LOCALBASE}/etc/X11#' \ -e 's#/usr/bin/#${LOCALBASE}/bin/#g' \ -e 's#/usr/share/#${LOCALBASE}/share/#' \ + -e 's#%%LOCALBASE%%#${LOCALBASE}#g' \ ${WRKSRC}/data/scripts/Xsession \ ${WRKSRC}/src/common/Configuration.h diff --git a/x11/sddm/files/patch-data_scripts_Xsession b/x11/sddm/files/patch-data_scripts_Xsession new file mode 100644 index 000000000000..6c4b40a5cc37 --- /dev/null +++ b/x11/sddm/files/patch-data_scripts_Xsession @@ -0,0 +1,12 @@ +Start a session D-Bus before anything else. +Then register ourselves with ConsoleKit via $STARTUP + +--- data/scripts/Xsession.orig 2023-06-23 12:28:38 UTC ++++ data/scripts/Xsession +@@ -90,5 +90,5 @@ else + if [ -z "$*" ]; then + exec xmessage -center -buttons OK:0 -default OK "Sorry, $DESKTOP_SESSION is no valid session." + else +- exec $@ ++ exec %%LOCALBASE%%/bin/dbus-launch --exit-with-x11 -- $STARTUP "$@" + fi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308131823.37DINdeo018118>