GNU bug report logs - #50287
[PATCH] emacs-org-roam: Add new phase after unpack.

Previous Next

Package: guix-patches;

Reported by: Alexandr Vityazev <avityazev <at> posteo.org>

Date: Mon, 30 Aug 2021 21:43:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

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 50287 in the body.
You can then email your comments to 50287 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#50287; Package guix-patches. (Mon, 30 Aug 2021 21:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexandr Vityazev <avityazev <at> posteo.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 30 Aug 2021 21:43:02 GMT) Full text and rfc822 format available.

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

From: Alexandr Vityazev <avityazev <at> posteo.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] emacs-org-roam: Add new phase after unpack.
Date: Mon, 30 Aug 2021 21:42:43 +0000
* gnu/packages/emacs-xyz.scm (emacs-org-roam)[arguments]<phases>:
After the unpack phase add a move-source-files phase to include
the org-roam extensions to the package.
---
 gnu/packages/emacs-xyz.scm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 70c4c30bc2..679636c123 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -28227,6 +28227,15 @@ snippets for Emacs.")
     (arguments
      `(#:phases
        (modify-phases %standard-phases
+         ;; Move the extensions source files to the top level, which is included in
+         ;; the EMACSLOADPATH.
+         (add-after 'unpack 'move-source-files
+           (lambda _
+             (let ((el-files (find-files "./extensions" ".*\\.el$")))
+               (for-each (lambda (f)
+                           (rename-file f (basename f)))
+                         el-files))
+             #t))
          (add-after 'install 'install-image
            (lambda* (#:key outputs #:allow-other-keys)
              (let ((out (assoc-ref outputs "out")))
-- 
2.33.0



-- 

Alexandr Vityazev




Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Tue, 07 Sep 2021 14:00:02 GMT) Full text and rfc822 format available.

Notification sent to Alexandr Vityazev <avityazev <at> posteo.org>:
bug acknowledged by developer. (Tue, 07 Sep 2021 14:00:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Alexandr Vityazev <avityazev <at> posteo.org>
Cc: 50287-done <at> debbugs.gnu.org
Subject: Re: bug#50287: [PATCH] emacs-org-roam: Add new phase after unpack.
Date: Tue, 07 Sep 2021 15:58:54 +0200
Hi,

Alexandr Vityazev <avityazev <at> posteo.org> skribis:

> * gnu/packages/emacs-xyz.scm (emacs-org-roam)[arguments]<phases>:
> After the unpack phase add a move-source-files phase to include
> the org-roam extensions to the package.

Applied, thanks.

However, the newly installed files aren’t getting compiled.  Should we
do something about it?

Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#50287; Package guix-patches. (Wed, 08 Sep 2021 18:40:02 GMT) Full text and rfc822 format available.

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

From: Alexandr Vityazev <avityazev <at> posteo.org>
To: ludo <at> gnu.org
Cc: 50287-done <at> debbugs.gnu.org
Subject: Re: bug#50287: [PATCH] emacs-org-roam: Add new phase after unpack.
Date: Wed, 08 Sep 2021 18:32:52 +0000
uld we
 > do something about it?
 I installed this package on 2 different machines and in both cases all
 files were compiled. Perhaps I am missing something, and my knowledge is
 clearly not enough to understand when this can happen, so I have no
 solution.
 -- 
 Alexandr Vityazev




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

This bug report was last modified 2 years and 202 days ago.

Previous Next


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