Subject: [bug#58014] [PATCH 03/15] gnu: tigervnc-server: Adjust PAM config.

From: Maxim Cournoyer <[email-masked]>
Date: Fri, 23 Sep 2022 01:00:30 -0400

* gnu/packages/vnc.scm (tigervnc-server)
[phases]{adjust-pam-config}: New phase.
---
 gnu/packages/vnc.scm | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gnu/packages/vnc.scm b/gnu/packages/vnc.scm
index e06dbcceb9..4795ccc72a 100644
--- a/gnu/packages/vnc.scm
+++ b/gnu/packages/vnc.scm
@@ -283,6 +283,11 @@ (define-public tigervnc-server
        ((#:phases phases)
         #~(modify-phases #$phases
             (delete 'check)             ;no test suite
+            (add-after 'unpack 'adjust-pam-config
+              (lambda _
+                (substitute* "tigervnc-client/unix/vncserver/tigervnc.pam"
+                  (("pam_systemd.so")
+                   "pam_elogind.so"))))
             (add-before 'build 'build-tigervnc
               (lambda* (#:key parallel-build? #:allow-other-keys)
                 (mkdir-p "tigervnc-client/build")
-- 
2.37.3