GNU bug report logs - #72538
[PATCH] gnu: xmonad: Re-add xmonad.desktop file.

Previous Next

Package: guix-patches;

Reported by: EuAndreh <eu <at> euandre.org>

Date: Fri, 9 Aug 2024 10:14:01 UTC

Severity: normal

Tags: patch

Merged with 72540

Done: Lars-Dominik Braun <lars <at> 6xq.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 72538 in the body.
You can then email your comments to 72538 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#72538; Package guix-patches. (Fri, 09 Aug 2024 10:14:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to EuAndreh <eu <at> euandre.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 09 Aug 2024 10:14:01 GMT) Full text and rfc822 format available.

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

From: EuAndreh <eu <at> euandre.org>
To: guix-patches <at> gnu.org
Cc: EuAndreh <eu <at> euandre.org>, lars <at> 6xq.net
Subject: [PATCH] gnu: xmonad: Re-add xmonad.desktop file.
Date: Fri,  9 Aug 2024 07:09:54 -0300
* gnu/packages/wm.scm (xmonad)[arguments]: Add 'install-xsession phase
  that was removed in previous automated update.

Change-Id: Iac02b4c6e7a73c9b354c52b46eb39dca8156b1c3
---

Notes:
    The said automated update is 0bce74d458a343e61d054c4b25d6f67bd1086f3c,
    an upgrade to Stackage 20.26.
    
    After rebooting my computer and realizing what happened, I searched for
    discussions around this on the mailing lists, only to find a message
    from, wait a minute, me! haha
    
    This has happened before, and I was the one to send an equivalent patch
    to address the issue, 307d1b626be86ed21d48d44a131ce8490f370a17.
    
    I did take a quick look at this latest automated update, and all I could
    find were docstring typos spelling "httsp", and not much else.  Other
    packages with custom phases were either adjusted or kept as they were,
    so it does seem to have been a one-off in this update.
    
    Cc Lars-Dominik Braun:
    If you're so inclined, I may help to improve the upgrade script to avoid
    this in the future, but also feel free to decline or ignore.  And thanks
    for the maintenance work on the Haskell packages :)

 gnu/packages/wm.scm | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/gnu/packages/wm.scm b/gnu/packages/wm.scm
index ad74fb5cf7..da1695ff62 100644
--- a/gnu/packages/wm.scm
+++ b/gnu/packages/wm.scm
@@ -872,6 +872,24 @@ (define-public xmonad
         (base32 "19qz9a23377nzc0qq8nca45s745mfncd4i2vwba14gi7ipipfcil"))))
     (build-system haskell-build-system)
     (properties '((upstream-name . "xmonad")))
+    (arguments
+      (list
+       #:phases
+       #~(modify-phases %standard-phases
+           (add-after 'install 'install-xsession
+             (lambda _
+               (let* ((xsessions (string-append #$output "/share/xsessions"))
+                      (entry     (string-append xsessions "/xmonad.desktop")))
+                 (mkdir-p xsessions)
+                 (call-with-output-file
+                  entry
+                  (lambda (port)
+                    (format port "~
+                      [Desktop Entry]~@
+                      Name=xmonad~@
+                      Comment=xmonad window manager~@
+                      Exec=~a/bin/xmonad~@
+                      Type=Application~%" #$output)))))))))
     (inputs (list ghc-x11 ghc-data-default-class ghc-setlocale))
     (native-inputs (list ghc-quickcheck ghc-quickcheck-classes))
     (home-page "http://xmonad.org")

base-commit: 9c6353c5568a56620af43c2213a9f1cbdc2b4adf
-- 
2.45.2





Merged 72538 72540. Request was from Lars-Dominik Braun <lars <at> 6xq.net> to control <at> debbugs.gnu.org. (Sat, 10 Aug 2024 08:51:01 GMT) Full text and rfc822 format available.

Reply sent to Lars-Dominik Braun <lars <at> 6xq.net>:
You have taken responsibility. (Sat, 10 Aug 2024 09:32:01 GMT) Full text and rfc822 format available.

Notification sent to EuAndreh <eu <at> euandre.org>:
bug acknowledged by developer. (Sat, 10 Aug 2024 09:32:01 GMT) Full text and rfc822 format available.

Message #12 received at 72538-done <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: EuAndreh <eu <at> euandre.org>
Cc: 72538-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: xmonad: Re-add xmonad.desktop file.
Date: Sat, 10 Aug 2024 11:30:41 +0200
[Message part 1 (text/plain, inline)]
Hi,

merged as commit bc71034f789603349080c2f35570910c07d526ec. I also fixed
the typos I introduced.

>     This has happened before, and I was the one to send an equivalent patch
>     to address the issue, 307d1b626be86ed21d48d44a131ce8490f370a17.

I’m sorry :( My usual flow is to run my update script (which only
touches updated packages) and then manually revert unwanted changes,
but I did not catch the xmonad phase. Is there any way we can upstream
the .desktop file?

>     If you're so inclined, I may help to improve the upgrade script to avoid
>     this in the future, but also feel free to decline or ignore.  And thanks
>     for the maintenance work on the Haskell packages :)

See attached script. The thing is that we *want* to remove unnecessary
phases during package upgrades. So I don’t know how to differentiate
between wanted and unwanted changes, except for manually checking them.

Lars

[haskell-update.scm (application/vnd.lotus-screencam, attachment)]

Reply sent to Lars-Dominik Braun <lars <at> 6xq.net>:
You have taken responsibility. (Sat, 10 Aug 2024 09:32:02 GMT) Full text and rfc822 format available.

Notification sent to Saku Laesvuori <saku <at> laesvuori.fi>:
bug acknowledged by developer. (Sat, 10 Aug 2024 09:32:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#72538; Package guix-patches. (Sun, 25 Aug 2024 14:46:02 GMT) Full text and rfc822 format available.

Message #20 received at 72538-done <at> debbugs.gnu.org (full text, mbox):

From: EuAndreh <eu <at> euandre.org>
To: Lars-Dominik Braun <lars <at> 6xq.net>
Cc: 72538-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: xmonad: Re-add xmonad.desktop file.
Date: Sun, 25 Aug 2024 11:43:48 -0300
Hi, thanks for the very quick response!

Upstreaming the change is indeed than either improving the upgrade 
script or keeping the ad-hoc phase around.  I hadn't thought of that. 
I'll do that eventually when I get it :)

Thanks for the maintenance work.




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

This bug report was last modified 326 days ago.

Previous Next


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