GNU bug report logs -
#78428
[PATCH] gnu: elogind: Adjust patch for pkttyagent path.
Previous Next
To reply to this bug, email your comments to 78428 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#78428
; Package
guix-patches
.
(Wed, 14 May 2025 17:51:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Sergey Trofimov <sarg <at> sarg.org.ru>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 14 May 2025 17:51:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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'"))))
(add-after 'unpack 'use-global-hook-directory
;; XXX There is no run-time setting to set this per-process, only a
;; build-time, hard-coded list of global directories.
base-commit: c5265b90b055ee15908298c5d463301f1aae2eb1
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#78428
; Package
guix-patches
.
(Fri, 16 May 2025 15:24:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 78428 <at> debbugs.gnu.org (full text, mbox):
Hi,
Sergey Trofimov <sarg <at> sarg.org.ru> 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
Information forwarded
to
sarg <at> sarg.org.ru, maxim.cournoyer <at> gmail.com, guix-patches <at> gnu.org
:
bug#78428
; Package
guix-patches
.
(Fri, 16 May 2025 17:29:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 78428 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/freedesktop.scm (elogind/fixed): New variable.
[#:phases]<fix-pkttyagent-path>: Adjust the regexp to work with source
version 255.17.
* gnu/packages/freedesktop.scm (elogind): Replace with elogind/fixed.
Change-Id: I9c474291816aee7464db5cbe9398b589479e79cf
---
gnu/packages/freedesktop.scm | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
index de8fb975bc..bcddb6fd0c 100644
--- a/gnu/packages/freedesktop.scm
+++ b/gnu/packages/freedesktop.scm
@@ -879,6 +879,7 @@ (define-public elogind
(package
(name "elogind")
(version "255.17")
+ (replacement elogind/fixed)
(source (origin
(method git-fetch)
(uri (git-reference
@@ -1065,6 +1066,21 @@ (define-public elogind
of a the system to know what users are logged in, and where.")
(license license:lgpl2.1+)))
+(define-public elogind/fixed
+ (hidden-package
+ (package
+ (inherit elogind)
+ (replacement elogind/fixed)
+ (arguments
+ (substitute-keyword-arguments (package-arguments elogind)
+ ((#:phases phases)
+ `(modify-phases ,phases
+ (replace 'fix-pkttyagent-path
+ (lambda _
+ (substitute* "meson.build"
+ (("bindir / 'pkttyagent'")
+ "'/run/current-system/profile/bin/pkttyagent'")))))))))))
+
(define-public basu
(package
(name "basu")
base-commit: d6d03854b57b665ea42bc3e0a04b3e9be66798d8
--
2.49.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#78428
; Package
guix-patches
.
(Fri, 16 May 2025 17:37:05 GMT)
Full text and
rfc822 format available.
Message #14 received at 78428 <at> debbugs.gnu.org (full text, mbox):
Hi,
Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
> Hi,
>
> Sergey Trofimov <sarg <at> sarg.org.ru> writes:
>
>> * gnu/packages/freedesktop.scm (elogind):
>> [#:phases]<fix-pkttyagent-path>: Adjust the regexp to work with source
>> version 255.17.
>>
[...]
>
> Oof. It's terrible that these substitution fail silently.
I remember phases had to return #t, it got relaxed in https://codeberg.org/guix/guix-mirror/commit/9621809ce8d984fff6421cb55fc851a24954be06
>
> 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.
Sure, done.
Information forwarded
to
guix-patches <at> gnu.org
:
bug#78428
; Package
guix-patches
.
(Tue, 20 May 2025 07:59:02 GMT)
Full text and
rfc822 format available.
Message #17 received at 78428 <at> debbugs.gnu.org (full text, mbox):
Hi,
Sergey Trofimov <sarg <at> sarg.org.ru> writes:
> Hi,
>
> Maxim Cournoyer <maxim.cournoyer <at> gmail.com> writes:
>
>> Hi,
>>
>> Sergey Trofimov <sarg <at> sarg.org.ru> writes:
>>
>>> * gnu/packages/freedesktop.scm (elogind):
>>> [#:phases]<fix-pkttyagent-path>: Adjust the regexp to work with source
>>> version 255.17.
>>>
> [...]
>>
>> Oof. It's terrible that these substitution fail silently.
>
> I remember phases had to return #t, it got relaxed in
> https://codeberg.org/guix/guix-mirror/commit/9621809ce8d984fff6421cb55fc851a24954be06
Yeah, the return value wouldn't here though. What I meant was that it
would be nice if substitute* could fail when a pattern failed to match
(and thus substitute) anything. See for example bug#36772.
>>
>> 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.
>
> Sure, done.
Thanks. I'll take a look now.
--
Thanks,
Maxim
Reply sent
to
Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
:
You have taken responsibility.
(Tue, 20 May 2025 23:15:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Sergey Trofimov <sarg <at> sarg.org.ru>
:
bug acknowledged by developer.
(Tue, 20 May 2025 23:15:04 GMT)
Full text and
rfc822 format available.
Message #22 received at 78428-done <at> debbugs.gnu.org (full text, mbox):
Hi,
Sergey Trofimov <sarg <at> sarg.org.ru> writes:
> * gnu/packages/freedesktop.scm (elogind/fixed): New variable.
> [#:phases]<fix-pkttyagent-path>: Adjust the regexp to work with source
> version 255.17.
>
> * gnu/packages/freedesktop.scm (elogind): Replace with elogind/fixed.
>
> Change-Id: I9c474291816aee7464db5cbe9398b589479e79cf
> ---
> gnu/packages/freedesktop.scm | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/gnu/packages/freedesktop.scm b/gnu/packages/freedesktop.scm
> index de8fb975bc..bcddb6fd0c 100644
> --- a/gnu/packages/freedesktop.scm
> +++ b/gnu/packages/freedesktop.scm
> @@ -879,6 +879,7 @@ (define-public elogind
> (package
> (name "elogind")
> (version "255.17")
> + (replacement elogind/fixed)
> (source (origin
> (method git-fetch)
> (uri (git-reference
> @@ -1065,6 +1066,21 @@ (define-public elogind
> of a the system to know what users are logged in, and where.")
> (license license:lgpl2.1+)))
>
> +(define-public elogind/fixed
> + (hidden-package
> + (package
> + (inherit elogind)
> + (replacement elogind/fixed)
> + (arguments
> + (substitute-keyword-arguments (package-arguments elogind)
> + ((#:phases phases)
> + `(modify-phases ,phases
> + (replace 'fix-pkttyagent-path
> + (lambda _
> + (substitute* "meson.build"
> + (("bindir / 'pkttyagent'")
> + "'/run/current-system/profile/bin/pkttyagent'")))))))))))
> +
Modified like this:
--8<---------------cut here---------------start------------->8---
modified gnu/packages/freedesktop.scm
@@ -1070,16 +1070,15 @@ (define-public elogind/fixed
(hidden-package
(package
(inherit elogind)
- (replacement elogind/fixed)
(arguments
(substitute-keyword-arguments (package-arguments elogind)
((#:phases phases)
- `(modify-phases ,phases
- (replace 'fix-pkttyagent-path
- (lambda _
- (substitute* "meson.build"
- (("bindir / 'pkttyagent'")
- "'/run/current-system/profile/bin/pkttyagent'")))))))))))
+ #~(modify-phases #$phases
+ (replace 'fix-pkttyagent-path
+ (lambda _
+ (substitute* "meson.build"
+ (("bindir / 'pkttyagent'")
+ "'/run/current-system/profile/bin/pkttyagent'")))))))))))
(define-public basu
(package
--8<---------------cut here---------------end--------------->8---
(the most important part is that 'replacement' field should be on the
package *being* replaced only, not onthe replacement package itself).
And pushed!
--
Thanks,
Maxim
This bug report was last modified 25 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.