Subject: Re: [bug#78188] [PATCH v2] gnu: kwallet-pam: Fix socat not in 'libexec/pam_kwallet_init' wrapper path.

From: Z572 <[email-masked]>
Date: Fri, 02 May 2025 02:17:19 +0800

Sergio Pastor Pérez <[email-masked]> writes:

> * gnu/packages/kde-plasma.scm (kwallet-pam)[phase]: Wrapper phase not setting
> PATH variable to access 'socat' input.
>
> Change-Id: I6e7a421af3dbbc844e319b7852246c89d979609c
> ---
>  gnu/packages/kde-plasma.scm | 10 +++++++++-
>  1 file changed, 9 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/kde-plasma.scm b/gnu/packages/kde-plasma.scm
> index 679a68cef6..400296f5da 100644
> --- a/gnu/packages/kde-plasma.scm
> +++ b/gnu/packages/kde-plasma.scm
> @@ -1305,7 +1305,15 @@ (define-public kwallet-pam
>      (arguments
>       (list
>        #:qtbase qtbase
> -      #:tests? #f)) ;no tests
> +      #:tests? #f ;no tests
> +      #:phases
> +      #~(modify-phases %standard-phases
> +          (add-after 'install 'fix-socat-path
> +            (lambda* _
> +              (substitute* (string-append #$output
> +                                          "/libexec/pam_kwallet_init")
> +                (("socat")
> +                 (string-append #$socat "/bin/socat"))))))))

should

#~(modify-phases
   (add-after 'unpack 'fix-socat-path
    (lambda* (#:key inputs #:allow-other-keys)
      (substitute* "pam_kwallet_init"
         (("socat") (search-input-file inputs "bin/socat"))))))

>      (native-inputs (list extra-cmake-modules pkg-config))
>      (inputs (list linux-pam kwallet libgcrypt socat))
>      (synopsis "PAM Integration with KWallet")
>
> base-commit: 881d46eb386c2de8bc6f1405972ee1e115eeb3a1