Subject: Re: [bug#78428] [PATCH] gnu: elogind: Adjust patch for pkttyagent path.

From: Maxim Cournoyer <[email-masked]>
Date: Sat, 17 May 2025 00:23:36 +0900

Hi,

Sergey Trofimov <[email-masked]> writes:

> * gnu/packages/freedesktop.scm (elogind):
> [#:phases]<fix-pkttyagent-path>: Adjust the regexp to work with source
> version 255.17.
>
> Change-Id: I259c93d806482d10bd438a8ba47dcf5a270feeca
> ---
>  gnu/packages/freedesktop.scm | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> index de8fb975bc..281c8b33ec 100644
> --- a/gnu/packages/freedesktop.scm
> +++ b/gnu/packages/freedesktop.scm
> @@ -949,8 +949,8 @@ (define-public elogind
>           (add-after 'unpack 'fix-pkttyagent-path
>             (lambda _
>               (substitute* "meson.build"
> -               (("join_paths\\(bindir, 'pkttyagent'\\)")
> -                "'\"/run/current-system/profile/bin/pkttyagent\"'"))))
> +               (("bindir / 'pkttyagent'")
> +                "'/run/current-system/profile/bin/pkttyagent'"))))

Oof.  It's terrible that these substitution fail silently.  This
packages rebuilds about 4K, so we'll need to make a 'elogind-fixed'
package and use it as a replacement (graft).  Would you like to do so in
this same change?  You can send a v2.

-- 
Thanks,
Maxim