GNU bug report logs - #77485
[PATCH] gnu: swaynotificationcenter: Fix package

Previous Next

Package: guix-patches;

Reported by: Daniel Ziltener <dziltener <at> lyrion.ch>

Date: Thu, 3 Apr 2025 11:27:01 UTC

Severity: normal

Tags: patch

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 77485 in the body.
You can then email your comments to 77485 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#77485; Package guix-patches. (Thu, 03 Apr 2025 11:27:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Daniel Ziltener <dziltener <at> lyrion.ch>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 03 Apr 2025 11:27:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Daniel Ziltener <dziltener <at> lyrion.ch>
To: guix-patches <at> gnu.org
Cc: Daniel Ziltener <dziltener <at> lyrion.ch>
Subject: [PATCH] gnu: swaynotificationcenter: Fix package
Date: Thu,  3 Apr 2025 13:18:31 +0200
This fixes two hardcoded paths in swaynotificationcenter that prevented it from even starting on Guix.

---
 gnu/packages/wm.scm | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index 5e0dabe0b4..4adc3281b3 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -2444,7 +2444,20 @@ (define-public swaynotificationcenter
               (sha256
                (base32 "0cx3ql7qb2wajck1vip9sm2a122jv9x8g2r0bnw4rrxd91yca7a9"))))
     (build-system meson-build-system)
-    (arguments (list #:configure-flags #~(list "-Dsystemd-service=false")))
+    (arguments
+     (list
+      #:configure-flags
+      #~(list "-Dsystemd-service=false")
+      #:phases
+      #~(modify-phases %standard-phases
+          (add-after 'unpack 'fix-swaync-path
+            (lambda _
+              (substitute* "src/config.json.in"
+                (("@JSONPATH@")
+                 (string-append #$output "/etc/xdg/swaync/configSchema.json")))
+              (substitute* "src/functions.vala"
+                (("/usr/local/etc/xdg/swaync")
+                 (string-append #$output "/etc/xdg/swaync"))))))))
     (native-inputs
      (list `(,glib "bin")
            gobject-introspection
-- 
2.49.0





Information forwarded to guix-patches <at> gnu.org:
bug#77485; Package guix-patches. (Sun, 06 Apr 2025 18:07:01 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Daniel Ziltener via Guix-patches via <guix-patches <at> gnu.org>
Cc: 77485-done <at> debbugs.gnu.org, Daniel Ziltener <dziltener <at> lyrion.ch>
Subject: Re: [bug#77485] [PATCH] gnu: swaynotificationcenter: Fix package
Date: Sun, 06 Apr 2025 19:06:37 +0100
[Message part 1 (text/plain, inline)]
Daniel Ziltener via Guix-patches via <guix-patches <at> gnu.org> writes:

> This fixes two hardcoded paths in swaynotificationcenter that prevented it from even starting on Guix.
>
> ---
>  gnu/packages/wm.scm | 15 ++++++++++++++-
>  1 file changed, 14 insertions(+), 1 deletion(-)

Thanks for the patch, I've pushed this to master as
ed12cba2216599a35560ad4c43f2894872910f33.

Chris
[signature.asc (application/pgp-signature, inline)]

Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Sun, 06 Apr 2025 18:07:03 GMT) Full text and rfc822 format available.

Notification sent to Daniel Ziltener <dziltener <at> lyrion.ch>:
bug acknowledged by developer. (Sun, 06 Apr 2025 18:07:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 05 May 2025 11:24:15 GMT) Full text and rfc822 format available.

This bug report was last modified 45 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.